Expand my Community achievements bar.

Join us on September 25th for a must-attend webinar featuring Adobe Experience Maker winner Anish Raul. Discover how leading enterprises are adopting AI into their workflows securely, responsibly, and at scale.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

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