StephenCollins
StephenCollins

Reputation: 805

Google Analytics custom dimensions not reporting

The reporting of my custom dimensions is very inconsistent and seemingly just not being reported sometimes, making our reports almost useless. Here is an example.

This is how the GA code is formatted on the page...

ga('create', 'UA-XXXXX-1', 'auto');
ga('require', 'displayfeatures');
ga('set', 'dimension1', 'Iowa DOT');
ga('set', 'dimension4', 'editorial');
ga('send', 'pageview');

and here is what I see in GA.

enter image description here enter image description here

The same exact page, but totally different dimension results. Can anyone shine a light on something I may be missing, or point me an a direction to get this straightened out.

Upvotes: 2

Views: 673

Answers (1)

Dmitry
Dmitry

Reputation: 792

Are your Custom Dimensions in question Session Scoped or Hit Scope. From your description, I would assume they are Session Scope which is causing the problem. Session Scope custom dimensions are recorded once per session. If you add to the report a Session Scope Custom Dimension and use a Hit Scope dimension (such as Page, in your example) instead of a Custom Dimension value set on a current pageview (seems to be your expectation) you would see a value attached to the latest pageview in a session. Practically speaking, results in reports mixing Session and Hit Scoped dimensions could be quite bizarre.

Please check the scope of your Custom dimensions with index 1 and 4. Should be Hit scope if you plan on using it with Page (url) dimension

Upvotes: 1

Related Questions