SHOW:
|
|
- or go back to the newest paste.
1 | - | // Fire this event each time a user successfully logs in. |
1 | + | // Fire this event when a user successfully upgrades from the free plan to a paid plan. |
2 | ||
3 | <script> | |
4 | window.dataLayer = window.dataLayer || []; | |
5 | window.dataLayer.push({ | |
6 | - | 'event': 'login', |
6 | + | 'event': 'free_to_paid', |
7 | - | 'login_method': 'email', //Variable value based on the method used to register, e.g. "email" or "google". |
7 | + | 'user_plan': 'pro', //Variable value based on the plan the user selected. E.g. "basic", "pro", etc. |
8 | 'payment_frequency': 'monthly', //Variable value. E.g. "monthly" or "annually". | |
9 | 'user_id': 'asdf1234' //User ID from your website database. | |
10 | }); | |
11 | </script> |