SHOW:
|
|
- or go back to the newest paste.
| 1 | - | // Fire this dataLayer event when a successful submission of the webinar sign-up form occurs. The event should fire only for successful submissions. The event shouldn't fire again if the user reloads or revisits the thank-you page. |
| 1 | + | // Fire this dataLayer event when a user clicks to download a publication. (clicks the button that leads to the publication file) |
| 2 | ||
| 3 | <script> | |
| 4 | window.dataLayer = window.dataLayer || []; | |
| 5 | window.dataLayer.push({
| |
| 6 | - | 'event': 'webinar_sign_up', |
| 6 | + | 'event': 'file_download', |
| 7 | - | 'webinarName': 'webinar_name' // Variable value - the name of the webinar the user signed-up for. |
| 7 | + | 'publicationName': 'Nordic Equilibrium', // Variable value - the name of the publication the user clicked to download. |
| 8 | 'publicationType': 'State of the Brand' // Variable value - e.g. State of the Brand, Don’t Panic!, The Roundtable | |
| 9 | }); | |
| 10 | </script> |