Expand my Community achievements bar.

SOLVED

Custom code for Google Universal Analytics in DTM

Avatar

Level 1

Hi, 

We would like to modify our Universal Analytics code for display-function and demographic data. To activate this the code "ga('require', 'displayfeatures');" should be added to the tracking code. 

I did this by simply adding the code in the "Customize page code" field of the UA tool. But this doesn't seem to be working. 

1 Accepted Solution

Avatar

Correct answer by
Level 1

jjstok wrote...

Hi, 

We would like to modify our Universal Analytics code for display-function and demographic data. To activate this the code "ga('require', 'displayfeatures');" should be added to the tracking code. 

I did this by simply adding the code in the "Customize page code" field of the UA tool. But this doesn't seem to be working. 

 

Solved it. For others who run into this issue. DTM uses a custom trackername. By adding the the custom trackername to the code (or using the standard GA trackername) it works. ga('trackername.require', 'displayfeatures');

View solution in original post

1 Reply

Avatar

Correct answer by
Level 1

jjstok wrote...

Hi, 

We would like to modify our Universal Analytics code for display-function and demographic data. To activate this the code "ga('require', 'displayfeatures');" should be added to the tracking code. 

I did this by simply adding the code in the "Customize page code" field of the UA tool. But this doesn't seem to be working. 

 

Solved it. For others who run into this issue. DTM uses a custom trackername. By adding the the custom trackername to the code (or using the standard GA trackername) it works. ga('trackername.require', 'displayfeatures');