Tagged: google analytics
Hi!
The new Google Universal Analytics works fine with Enfold but in order to get demographics, interests and remarketing data you need a slightly upgraded code as described here: https://support.google.com/analytics/answer/2444872?hl=en&utm_id=ad.
Any chance that Enfold will implement it? Or maybe give users a choice between “Universal Analytics Basic” and “Universal Analytics Plus”?
In terms of content, Google recommends that users of the Plus version describe their privacy policy based on guidelines found here: https://support.google.com/analytics/answer/2700409
Rgds ///Peter
Hi peterfagerberg!
You can put whatever analytics code you want into the themes analytics field.
Regards,
Devin
Ah, misunderstanding. The Google script has to be modified to this:
<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>
Rgds, ///Peter
You can add the entire script except the script tags to the analytics field. You don’t need to use the account number and let the theme wrap it for you and instead add in your own.
You can also choose not to use the themes field and add it directly to your footer or use another plugin which supports the format you want.