Support » Plugins » Enhanced Link Attribution not working with Yoast Google Analytics 4.3.2

  • I have tried setting up enhanced link attribution using the Yoast Google analytics plugin and entering in a custom line of code as described in this article.

    Withought the code in-page analytics works fine. but with it it returns the following message.

    Problem loading In-Page Analytics
    We tried looking for a few common problems with your setup, but couldn’t find what’s wrong. Please try again later.

    This is the code loaded in the page header. Any ideas why its not working? I have enabled enhanced link attribution within analytics too.

    // Google Analytics for WordPress by Yoast v4.3.2 |
    var _gaq = _gaq || [];
    _gaq.push([‘_setAccount’, ‘UA-38678774-1’]);
    var pluginUrl = ‘//’; _gaq.push([‘_require’, ‘inpage_linkid’, pluginUrl]);
    (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);

  • The topic ‘Enhanced Link Attribution not working with Yoast Google Analytics 4.3.2’ is closed to new replies.