Update Google Analyticator Tracking to Support Display Advertising
-
How would I go about implementing the changes on this help doc with Google Analyticator?
https://support.google.com/analytics/answer/2444872?hl=en&utm_id=ad
It requires a change to the middle of the code, not something additional after the code.
To implement Remarketing or GDN Impression Reporting, replace the bold text in this example:
<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’ : ‘https://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:<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://’ : ‘https://’) + ‘stats.g.doubleclick.net/dc.js’;
var s = document.getElementsByTagName(‘script’)[0]; s.parentNode.insertBefore(ga, s);
})();
</script>Thanks!
- The topic ‘Update Google Analyticator Tracking to Support Display Advertising’ is closed to new replies.