Modify your ga.js tracking code to enable Remarketing and Advertising Reporting Features for Standard Analytics

If you're still using ga.js, you can enable Remarketing and Advertising Reporting Features for Standard Analytics by replacing the bold text in this example:

Standard tracking code

<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-xxxxx-y']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;


ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';

var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>

 

with the bold text in the example below:

Code modified to enable these features

<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-xxxxx-y']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;


ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';

var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
To revert the change, simply modify your tracking code to match the standard tracking code example in this section.

For ga.js, you can override the property settings to turn off Advertising Reporting Features by adding
_gaq.push(['_set', 'displayFeatures', false]);
after the create command, and before the hit is sent.

If you're using Google Tag Manager, follow these instructions to edit the Analytics tag.

Was this helpful?

How can we improve it?
Search
Clear search
Close search
Main menu
5731493050674438303
true
Search Help Center
true
true
true
true
true
69256
false
false