Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- // Add this when the page loads, as high as possible in the source code
- window.dataLayer = window.dataLayer || [];
- window.dataLayer.push({
- 'event': 'dataLayer-init',
- 'user_id': '1234', // the user id as kept in the backend. only for logged in users.
- 'is_customer': false, // true or false, depending if the user has bought something or not. only when info is known
- 'is_subscriber': true, // true or false, depending if the user is subscribed to newsletter or not. only if info is known
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement