5

I've been following numerous implementation guides on this feature and have yet to see the final result. What i'm trying to do is very standard: Add a custom dimension called User type to UA. My site uses Google Tag Manager.

Here are my implementation steps:

  1. Created a custom dimension in UA enter image description here

  2. Created a Data Layer Variable name userType enter image description here

  3. Added the dimension to my Analytics page view tag

enter image description here

  1. Added the following code to page load:

var dimensionValue =$('#user_type').data('type');
dataLayer.push({'userType': dimensionValue});
  1. Published the tag manager changes

  2. When debugging through tag manager I see the following output:

enter image description here

  1. All looks legit right? So, why oh why, when I go to my custom report, do I see this:

enter image description here

I'd be grateful for any idea as to what the problem might be.

Thanks,

Uri

Uri Klar
  • 3,800
  • 3
  • 37
  • 75
  • Are you checking right away with your reports or are you giving some time for the data to process, which takes about 24 hours? – nyuen May 05 '15 at 14:00
  • It's been a few hours... Not 24 though – Uri Klar May 05 '15 at 14:06
  • 1
    OK i suggest to give it more time. You can check every few hours, but don't start panicking until it's been more than 24 hours, or sometimes more. ;) – nyuen May 05 '15 at 14:10
  • Thanks for following up. Sorry to say that there's still no data :-/ – Uri Klar May 06 '15 at 17:04
  • Use the [Google Analytics Debugger](https://chrome.google.com/webstore/detail/google-analytics-debugger/jnkmfdileelhofjcijamephohjechhna) and verify that the custom dimension is fired with an hit. – Francesco May 08 '15 at 16:32
  • In the google analytics debugger it indeed shows the dimension value is undefined. But in the GTM debugger it has the correct value. Any idea why the difference? – Uri Klar May 12 '15 at 07:56

1 Answers1

0

You are trying to combine user based dimension and hit based metric. Try other metrics for your report

mrbubu
  • 474
  • 3
  • 9
  • Tried it with Avg. sessions duration, no data as well. That's a user based metric right? – Uri Klar May 07 '15 at 06:35
  • Try to change scope of your custom dimension. For example, session scope with avg. session duration. – mrbubu May 07 '15 at 11:49
  • 1
    Do you push dimension value to dataLayer before GTM container or after? – mrbubu May 09 '15 at 19:54
  • I might have pushed to data Layer before GTM has been initialized, even though the dataLayer variable exists at the time of pushing so it sounds weird.. I'm trying to change to order of the rows. – Uri Klar May 12 '15 at 07:55