Display Advertiser Features i.e. Demographics and Interest Reports & Use enhanced link attribution not working Google’s new Universal Analytics, Here is how to fix it & make it work & show relevant data by tweaking tracking code

Hope you have enabled & upgraded to Google’s new Universal Analytics under your preferred domain’s admin tab.

 
After a while you may realise under Home > Your Domain > Audience > Demographics / Interest Google Analytics is showing no data feed is empty.

 
But there is way how to fix this fault by following below steps,

 

Step 01:

 
Go to Admin tab > Property > Select your preferred domain > Property Settings > Enable ‘Demographics and Interest Reports’ & ‘Use enhanced link attribution’ > Now save the settings

 

Step 02:

 
Now go to Admin > Property > Your preferred domain > Tracking Info > Tracking Code

 
Now implement given code to reletive website’s header or footer

 
Your code should look like this:

 

<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-XXXXXX-XX', 'example.com');
ga('send', 'pageview');
</script>

 

Step 03:

 
Now step 03 has three possibilities,

 

Possibility One:

 
You want to enable only ‘Demographics and Interest Reports’

 
Now add below code

 

ga('require', 'displayfeatures');

 
to line between ‘create’ & ‘send’,

 
Your code should look like this:

 

<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-XXXXXX-XX', 'example.com');
ga('require', 'displayfeatures');
ga('send', 'pageview');
</script>

 

Possibility Two:

 
You want to enable only ‘enhanced link attribution’

 
Now add below code

 

ga('require', 'linkid', 'linkid.js');

 
to line between ‘create’ & ‘send’,

 
Your code should look like this:

 

<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-XXXXXX-XX', 'example.com');
ga('require', 'linkid', 'linkid.js');
ga('send', 'pageview');
</script>

 

Possibility Three:

 
You want to enable both features including ‘Demographics and Interest Reports’ & ‘enhanced link attribution’

 
Add below code

 

ga('require', 'displayfeatures', 'linkid', 'linkid.js');

 
to line between ‘create’ & ‘send’,

 
Just replace your preferred website’s current Google Analytics Tracking code to something like this

 

<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-XXXXXX-XX', 'example.com');
ga('require', 'displayfeatures', 'linkid', 'linkid.js');
ga('send', 'pageview');
</script>

 

Note: Don’t forget to enter your profile ID & website address at respective field & locations.

 
Hope it helps,

 

Further Reading:

 
Article 01:
 
Google Analytics Audience Demographics Overview not showing, displaying, appearing any website traffic Data age & gender wise

 
Article 02:
 
How to enable Audience Demographics Overview by Age & Gender for your website domain’s Google Analytics Property

 
Article 03:
 
Display Advertiser Features i.e. Demographics and Interest Reports & Use enhanced link attribution not working Google’s new Universal Analytics, Here is how to fix it & make it work & show relevant data by tweaking tracking code

 
Thanks & Regards
Mandar Apte

Leave a Reply

Your email address will not be published. Required fields are marked *