SHOW:
|
|
- or go back to the newest paste.
1 | - | //Fire this event on every page load before the Google Tag Manager container loads. Fire it only if user is logged-in. |
1 | + | //Fire this event when the digitalization survey form is successfully submitted. |
2 | ||
3 | <script> | |
4 | window.dataLayer = window.dataLayer || []; | |
5 | window.dataLayer.push({ | |
6 | - | 'event': 'user_info', |
6 | + | 'event': 'digitalization_survey_form_submit', |
7 | - | 'user_plan': 'pro', //Variable value. E.g. "free", "basic", "pro", etc. |
7 | + | 'form_name': 'Hybrid Workplace' //Variable value, based on which version of the form is submitted. E.g. "Hybrid Workplace", "Cyber Security", etc. |
8 | - | 'total_items': '12', //The total count of items that a user has in the platform. |
8 | + | |
9 | - | 'user_id': 'asdf1234' //User ID from your website database. |
9 | + |