• I’m having trouble getting a tag to fire on category pages. I’ve been able to get the tag to fire for the posts filed in that category by using a trigger that targets the pageCategory dataLayer variable. But I can’t make a working trigger for the category page (i.e. the page that lists all the posts filed under that category).

    What I’m working with:
    The category page doesn’t have the pageCategory variable
    The category name is part of the pageTitle variable, and is part of the URL for that page (e.g. mywebsite.com/category_name)

    What I’ve tried:

      I made a dataLayer variable in GTM for pageTitle and tried using a trigger targeting pageTitle contains ‘Category Name’
      I tried using a trigger targeting pageURL contains category_name
      I tried using a trigger targeting pagePath contains category_name
      I tried using a trigger targeting pageURL ends with category_name/
      I tried using a trigger targeting pagePath ends with category_name/
      I tried testing pageURL and pagePath by targeting mywebsite.com, which didn’t work either

    Can someone help me figure out what’s going on?

    https://wordpress.org/plugins/duracelltomi-google-tag-manager/

  • The topic ‘Tags don't fire for category pages’ is closed to new replies.