GTMScripts

Useful scripts for Google Tag Manager

Geolocation

Step 1 – Create a new Custom HTML tag

Step 2 – Add the following code

 

Result:

The script determines the user’s city and country and pushes it to the dataLayer.

Next Post

Previous Post

Leave a Reply

© 2020 GTMScripts