• While using “Enable custom embed code” for the analytics portion. Is there a way to pass the author name? I can do it on our website using the functions.php file, but not sure how to accomplish the same via Instant Articles. Any help here?

    <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','//www.google-analytics.com/analytics.js','ga');
     
    ga('create', 'UA-XXXXXXX-1', 'auto');
    ga('set', 'dimension1', 'Author Name');
      ga('send', 'pageview');
    
    </script>
    • This topic was modified 8 years, 10 months ago by jayo.
Viewing 1 replies (of 1 total)
  • I know that MonsterInsights provides a mechanism for doing this, and that plugin also provides integration for InstantArticles in GA. Maybe that’s worth a look? Trying to get support from these guys is like trying to get blood out of a stone.

Viewing 1 replies (of 1 total)

The topic ‘Pass Author Name in Google Analytics’ is closed to new replies.