FB IA prikazivanje na Google Analytics


#1

Kako podesiti da posete sa FB IA prikazuje na Google Analytics.


#2

Ukjuči custom embed code na postavkama Instant articles plugina u WP. Dodaj ovaj kod

<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-dodajtvojUA', 'auto');
  ga('send', 'pageview');

</script>
<!--    instant articles   -->
<script type="text/javascript">
/* <![CDATA[ */
(function() {
  window.dm=window.dm||{AjaxData:[]};
  window.dm.AjaxEvent=function(et,d,ssid,ad){
    dm.AjaxData.push({et:et,d:d,ssid:ssid,ad:ad});
    window.DotMetricsObj&&DotMetricsObj.onAjaxDataUpdate();
  };
  var d=document,
  h=d.getElementsByTagName('head')[0],
  s=d.createElement('script');
  s.type='text/javascript';
  s.async=true;
  s.src=document.location.protocol + '//script.dotmetrics.net/door.js?id=3453';
  h.appendChild(s);
}());
/* ]]> */
</script>


#3

Ja sam dodao ovaj kod. Kako ce mi sada stojati na Analyticsu? Mislim kako ce prikazivati posjete preko IA pod kojim nazivom?