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:
Thanks & Regards
Mandar Apte