Facebook Instant Articles: how to use the Google Analytics analytics.js tracking code









Facebook Instant Articles allows you to use third-party analytics, such as Google Analytics, to track the performance of your articles. Here I demonstrate how to use the Google Analytics analytics.js tracking code with Instant Articles.

analytics.js:




(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(