rw-book-cover

Metadata

Highlights

If you’re working on a regular website (that refreshes the entire page when the user is navigating), then it’s preferred to have this code placed above the GTM container (that way, you’ll have it available even with the All Pages GTM trigger). (View Highlight)

If you’re working on a Single Page Application, then the location of this code does not matter. Also, the ‘event’ parameter is not required. But if implemented, you can use it as a trigger to track Login events. (View Highlight)

push the User ID every time new page loads (I mean when the page entirely refreshes and the previous values in the Data Layer are wiped out). (View Highlight)