Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

gtag.js ?

$
0
0

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!


Viewing all articles
Browse latest Browse all 59525

Trending Articles