Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Push this dataLayer event when a user clicks on a campaign link. This usually happens on a solution page.
- <script>
- window.dataLayer = window.dataLayer || [];
- window.dataLayer.push({
- 'event': 'campaign_click',
- 'page_section': 'dive deeper', //Section of the page where the event happened. This is usually the title of the hero banner or heading for the part of the page. (H1 or H2 tags)
- 'solution': 'methane elimination', //Solution name.
- 'campaign': '<campaign>' //Name of the campaign.
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment