Home »
» Facebook Instant Articles: how to use the Google Analytics gtag.js tracking code
Facebook Instant Articles: how to use the Google Analytics gtag.js tracking code
In a previous post I described how to use the Google Analytics analytics.js tracking code with Facebook Instant Articles. However, Google Analytics recently updated its tracking code to the Global Site Tag or gtag.js format.
gtag.js:
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments)};
gtag('js',