Last active
January 11, 2022 15:21
-
-
Save kmclaugh/33205b1a9c95e4a594b42e74d1149f95 to your computer and use it in GitHub Desktop.
Cleeng.com Account Signup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* action: signup | |
* description: fire whenever a new user signs up for the first time (ie creates an account) | |
* notes: fill in the necessary information in brackets {{}} | |
*/ | |
window.dataLayer = window.dataLayer || []; | |
window.dataLayer.push({ | |
event: "User Signed Up", | |
userId: "{{userId}}", // The user id | |
emailAddress: "{{emailAddress}}", // The user's email address | |
company: "{{company}}", // The user's company | |
firstName: "{{firstName}}", // The user's first name | |
lastname: "{{lastname}}", // The user's last name | |
country: "{{country}}", // The user's country | |
currency: "{{currency}}", // The user's currency | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Add as high in the <head> as possible --> | |
<!-- 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-5K8X96V');</script> | |
<!-- End Google Tag Manager --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment