Fire GTM tag only if on homepage of the site

Grin picture Grin · Jul 18, 2016 · Viewed 10.6k times · Source

The homepage can also have extra GET params (e.g. utm tags and similar marketing variables). How can I make it work? Simple "end with http://example.com or http://example.com/" doesn't work cause the url might be http://example.com/?utm_campaign=text&...

Thanks!

Answer

Kemen Paulos Plaza picture Kemen Paulos Plaza · Jul 21, 2016

The best practice is always install the GTM along you domain and execute it whenever you need. To launch a tag only in the home you need to use the following trigger. Add this on you custom HTML tag, take care of the equals.

enter image description here