Custom HTML for Search and Replace https://gist.github.com/measureschool/a7d6b3aede48acd1ec05471958510e5e
Container Download: https://measureschool.com/wp-content/uploads/2018/12/ChangeLinks.json
Geolocation with Google Tag Manager – Use the users Country or City in your Analytics
🎓 Learn more from Measureschool: http://measureschool.com/products
🚀Looking to kick-start your data journey? Hire us: https://measureschool.com/services/
📚 Recommended Measure Books: https://kit.com/Measureschool/recommended-measure-books
📷 Gear we used to produce this video: https://kit.com/Measureschool/measureschool-youtube-gear
Let’s go ahead and build a new trigger on the geo event where the country is Germany. Now, we’ll utilize our custom event here. Since it’s coming from our listener, so the geo and only when our dlv country equals Germany.
Let’s save this and try it out. Whoops. Right now it’s still paused.
Let’s refresh, go back to a page and if the users from Germany we should now see all our product links leading to Amazon.de.
So we have successfully geolocated the user and then led him on to the desired destination based on where the users are from. This is how you could utilize such a technique to replace a link or at least part of the link inside of your webpage. This script will be available in a download down below in the description. In the next lesson, we’re going to take a look at how we can attach something to a link to pass on tracking information to another page.