Analytics
2.2K members online now
2.2K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
 
Guide Me
star_border
Reply

Google Analytics custom dimensions not working

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi,
I have set custom dimensions for website - http://prescription2learn.org/
When the page loads google analytics is set.
But it is not displayed in my analytics dashboard.
Please help.

Thanks.

1 Expert replyverified_user

Google Analytics custom dimensions not working

Top Contributor
# 2
Top Contributor

There are no out of the box reports for custom dimensions.

Go to Customization > Custom reports and create a report that's based on your custom dimension (green) and then add related metrics (blue)

VP & Chief Evangelist at Hub'Scan | Contact me
Level 80 Digital Analytics Warrior, KPI Therapist and Keeper of the One True Tagging Plan

Google Analytics custom dimensions not working

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭

Hi Julien,

I have checked that too but could not get any data.
I have added following code:
ga('create', 'UA-XXXXXXX-1', 'auto');

ga('set', 'dimension1', '0');
ga('set', 'dimension4', 'test');
ga('send', 'pageview');

Is there any mistake in sending ?
Is it necessary we have to add custom metrics for every dimension we add ?

 

Thanks.

Re: Google Analytics custom dimensions not working

Top Contributor
# 4
Top Contributor

Custom metrics are not required.

Your tracking code is ok, although I prefer a more elegant syntax:

 

ga('create', 'UA-XXXXXXX-1', 'auto');
ga('send', 'pageview',{
  'dimension1': '0',
  'dimension4': 'test'
});

From there, go to your Custom Report creation dialogue and select the custom dimensions from the dimensions (green) dropdown menu.

 

VP & Chief Evangelist at Hub'Scan | Contact me
Level 80 Digital Analytics Warrior, KPI Therapist and Keeper of the One True Tagging Plan