View difference between Paste ID: vrs93UUE and MtQYMEzF
SHOW: | | - or go back to the newest paste.
1-
// Fire this dataLayer event when a user clicks to download a publication. (clicks the button that leads to the publication file)
1+
// Fire this dataLayer event when a successful registration happens. If the event fires on the next page, it should fire after the GA4 configuration tag.
2
3
<script>
4
window.dataLayer = window.dataLayer || [];
5
window.dataLayer.push({
6-
 'event': 'file_download',
6+
 'event': 'register',
7-
 'publicationName': 'Nordic Equilibrium',  // Variable value - the name of the publication the user clicked to download.
7+
 'user_id': '123456789',  // Variable value - the user ID from the website database.
8-
 'publicationType': 'State of the Brand'  // Variable value - e.g. State of the Brand, Don’t Panic!, The Roundtable
8+
 'user_type': 'user'  // Variable value - the type of user, e.g. user or business.
9
 });
10
</script>