Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Custom code for Google Universal Analytics in DTM

jjstok
Level 1
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
jjstok
Correct answer by
Level 1
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
jjstok
Correct answer by
Level 1
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