Set up Custom Dimensions using GA, GTM, and the Data Layer


  1. I followed your guide to set-up a pages topic – with the topic itself being auto-generated in the datalayer based upon the category selected when creating the WordPress page/post.

    However when I view the secondary dimension within Google Analytics the homepage (and other pages) seems to be picking up sessions against multiple topics which is incorrect as core can only be selected for it (and is confirmed in the HTML).

    Any idea what’s going on?



    1. Hi Sam, is your dimension in GA set to hit-scoped? Session and user-scoped dimensions will take on the final value in a session so could lead to some unexpected results. If that’s not the issue and you’d like me to take a closer look, please email me your URL, a screenshot of your tag setup, and your custom dimension page in GA.

Leave a Reply

Your email address will not be published.