Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom dimensions not working in Google Analytics

I have a problem with setting up & showing Google Analytics Custom Dimensions. I have successfully setup a dimension in the web interface called "Client" In code I am sending a view properly like this:

    [tracker setCustom:1 dimension:@"Client"];
    [tracker sendView:@"my view"];

GAI dispatch says that data has been sent successfully. But when I try to view my data in reporting - Screens tab and apply "Client" dimension. All my data disappear from table saying "There is no data for this view." Also there are some bugs when switching number of rows per page.

Anyone who has custom dimensions successfully applying, how you do that?

like image 457
ren6 Avatar asked Mar 28 '13 15:03

ren6


People also ask

How do I set custom dimensions in Google Analytics?

Sign in to Google Analytics. Click Admin, and navigate to the property to which you want to add custom dimensions. In the PROPERTY column, click Custom Definitions > Custom Dimensions. Click New Custom Dimension.


1 Answers

Did you define a segment with a condition that matches your dimension value? It did the trick for me.

See this guide for creating segments: https://support.google.com/analytics/answer/3124493?hl=en

You can select the segment you've created in the reports, and if the dimension was set correctly and GA received data correctly, then your segment should show hits.

Note that you might see data with a delay of a day or so.

like image 163
haimlit Avatar answered Oct 18 '22 10:10

haimlit