Implementing Enhanced Link Attribution
-
How to add the following bold tag “var pluginUrl” by Google Analytics for WordPress plugin?
-------------------
var _gaq = _gaq || [];
var pluginUrl =
‘//www.google-analytics.com/plugins/ga/inpage_linkid.js’;
_gaq.push([‘_require’, ‘inpage_linkid’, pluginUrl]);
_gaq.push([‘_setAccount’, ‘UA-XXXXXX-Y’]);
_gaq.push([‘_trackPageview’]);
-------------------Now, My header tags appears like this.
Because configured these settings.
‘advanced settings’.> ‘Host ga.js locally:’ + turn it on. >
enter this: https://stats.g.doubleclick.net/dc.js
-------------------
<script type=”text/javascript”>//<![CDATA[
// Google Analytics for WordPress by Yoast v4.3.5 | http://yoast.com/wordpress/google-analytics/
var _gaq = _gaq || [];
_gaq.push([‘_setAccount’, ‘UA-XXXXXX-Y’]);
_gaq.push([‘_trackPageview’]);
(function () {
var ga = document.createElement(‘script’);
ga.type = ‘text/javascript’;
ga.async = true;
ga.src = ‘https://stats.g.doubleclick.net/dc.js’;var s = document.getElementsByTagName(‘script’)[0];
s.parentNode.insertBefore(ga, s);
})();
//]]></script>
-------------------https://wordpress.org/plugins/google-analytics-for-wordpress/
- The topic ‘Implementing Enhanced Link Attribution’ is closed to new replies.