gtag.js ?
-
Your plugin gives us three options:
1. analytics.js (Recommended)
2. ga.js
3. Google Analytics by MonsterInsights plugin AND Universal TrackingMy 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!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘gtag.js ?’ is closed to new replies.