When using Google Tag Manager you have various tags, triggers and filters. If you want to use the Page View firing Trigger with a filter only for the home page which one is more politically correct:

  • Page Path /
  • Page URL https://www.example.com
  • Page Hostname www.example.com
  • Google documentation uses url equals example.com/index.html for a home page trigger. – Stephen Ostermiller Oct 24 '16 at 17:30
  • I've tried without www. and https://, sadly there examples are vague and not exact. I very much doubt it would work with index.html for a site that does not have one. – Simon Hayter Oct 24 '16 at 17:37
  • I agree about that. I've never used GTM, but in GA, Page Path / works reliably. – Stephen Ostermiller Oct 24 '16 at 17:38
  • GTM rocks for Schema JSON-LD learning the varibles now, so much easier than messing around with inline code. – Simon Hayter Oct 24 '16 at 17:55

The correct answer is Page URL equals to url_of_main page. Other variants can contain pages on different hosts or on entire host.

  • Should the URL of the main page end in a slash, or not for GTM? – Stephen Ostermiller Oct 30 '16 at 10:49
  • It can be just /. You can always check what is stored in variables using debug window in GTM. – mrbubu Oct 30 '16 at 19:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.