Scenario:
I am trying to use custom dimensions to capture metadata of article postings (date, author, type, tags). I need to make an ajax call on page load to get this metadata, so I cannot send the custom dimensions (CDs) on page view.
Issue:
I can't see any data from my CDs outside of the Event metrics. I want to be able view the CDs with my other metrics (page views, bounce rates, etc.).
Setup:
Right now, I have a trigger set in GTM to fire on DOM Ready, which then kicks off my Custom HTML tag to retrieve the metadata to pass to the CDs. When that data is retrieved it is pushed to the dataLayer
, matching the variable names used in GTM.
Then I push my event, which initiates my trigger for my event tag to set my CDs. Here's what my event that is setting the CDs looks like:
I know that the data is coming through to GA as I can see it in the Events reporting. It just doesn't show up if I add any other metrics or dimensions.
I have the CDs set at a Hit-level scope as I want them to be logged for each hit an article receives.
Do the CDs need to be applied on a Page View
Track Type
for them to be used in reporting that way?
References: