Custom code for Google Universal Analytics in DTM

Avatar

Avatar

jjstok

Avatar

jjstok

jjstok

15-10-2015

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. 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

jjstok

Avatar

jjstok

jjstok

15-10-2015

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');

Answers (0)