Custom code for Google Universal Analytics in DTM

Avatar

Avatar
Validate 1
Level 1
jjstok
Level 1

Likes

0 likes

Total Posts

2 posts

Correct reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
jjstok
Level 1

Likes

0 likes

Total Posts

2 posts

Correct reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile
jjstok
Level 1

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
Validate 1
Level 1
jjstok
Level 1

Likes

0 likes

Total Posts

2 posts

Correct reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
jjstok
Level 1

Likes

0 likes

Total Posts

2 posts

Correct reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile
jjstok
Level 1

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)