• hello,
    if i add a mycode of google analytics receive error from facebook and posts non published.
    this is a my steps.
    1 AMP setting -> Facebook Instant Articles
    2 Enable Analytics
    3 Paste this code:

    <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&#8217;,’ga’);

    ga(‘create’, ‘MY-ANALYTICS-ID’, ‘auto’);
    ga(‘send’, ‘pageview’);

    </script>

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Problem with Analytics in a Facebook Instant Articles’ is closed to new replies.