Replies: 0
Your plugin gives us three options:
1. analytics.js (Recommended)
2. ga.js
3. Google Analytics by MonsterInsights plugin AND Universal Tracking
My analytics code looks like the below as per Google’s newest recommendations:
<!– Global site tag (gtag.js) – Google Analytics –>
<script async src=”https://www.googletagmanager.com/gtag/js?id=UA-XXXXXXXX-14″></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag(‘js’, new Date());
gtag(‘config’, ‘UA-XXXXXXXX-14’);
</script>
Which of the three options should I be using, or does your plugin need an update?
Many thanks for the help!