Support » Plugin: Google Analytics for WordPress by MonsterInsights » issue with author tracking in GA

  • airujo



    i set up author name tracking within the custom variables but analytics doesn’t track it. i manually inserted the tracking code into the header, not sure if that has anything to do with it.

    <script type=”text/javascript”>

    var _gaq = _gaq || [];
    _gaq.push([‘_setAccount’, ‘UA-2639852-1’]);
    _gaq.push([‘_setDomainName’, ‘’]);

    (function() {
    var ga = document.createElement(‘script’); ga.type = ‘text/javascript’; ga.async = true;
    ga.src = (‘https:’ == document.location.protocol ? ‘https://ssl’ : ‘http://www’) + ‘’;
    var s = document.getElementsByTagName(‘script’)[0]; s.parentNode.insertBefore(ga, s);


    do i also need to add the following text snippet because i inserted the GA code manually? i wouldn’t think so…

    1 <?php
    2 if ( function_exists( ‘yoast_analytics’ ) ) {
    3 yoast_analytics();
    4 }
    5 ?>

    any other ideas or advice?


  • The topic ‘issue with author tracking in GA’ is closed to new replies.