Skip to content

Instantly share code, notes, and snippets.

@kmclaugh
Last active May 2, 2023 16:27
Show Gist options
  • Save kmclaugh/45943deed6194ca585935534e47640a4 to your computer and use it in GitHub Desktop.
Save kmclaugh/45943deed6194ca585935534e47640a4 to your computer and use it in GitHub Desktop.
tax reg funnel
// On login
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
'event': 'login', // constant
'partnerName': 'Intuit',
'partnerId': 123,
'user_id: '24073'
});
// On signup
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
'event': 'signup', // constant
'partnerName': 'Intuit',
'partnerId': 123,
'user_id: '24073'
});
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-MS495F');</script>
<!-- End Google Tag Manager -->
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
'event': 'tax_reg_step_completed', // constant
'stepName': 'Company Details' // name of the step, you can use the names in the link below starting with company details
'partnerName': 'Intuit',
'partnerId': 123
});
https://lookerstudio.google.com/u/0/reporting/eb4bce71-77a9-4249-83cd-e313116f2453/page/p_k45f6nvuxc/edit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment