Support » Plugin: Google Analytics for WordPress by MonsterInsights » Enhanced Link Attribution

  • Something I’ve been experimenting with recently is the option for Enhanced Link Attribution (within Google Analytics, Profile -> Property Settings. Check the relevant box).

    You can tag your pages to implement an enhanced link-tracking functionality that lets you:

    See separate information for multiple links on a page that all have the same destination. For example, if there are two links on the same page that both lead to the Contact Us page, then you see separate click information for each link.

    See when one page element has multiple destinations. For example, a Search button on your page is likely to lead to multiple destinations.

    Track buttons, menus, and actions driven by javascript.

    More details from Google here:

    You can add this to the Yoast plugin by amending the file


    (Line 273 in current release. Look for the first reference to the _gaq variable)

    <script type="text/javascript">//<![CDATA[
                // Google Analytics for WordPress by Yoast v<?php echo GAWP_VERSION;  ?> |
                var _gaq = _gaq || [];
    			var pluginUrl = '//';
    			_gaq.push(['_require', 'inpage_linkid', pluginUrl]);
                _gaq.push(['_setAccount', '<?php echo trim( $this->options["uastring"] ); ?>']);

    It would be really handy if this could be available as a configurable option in a future release of the plugin. Needs an extra option defined on the admin screen and some conditional logic to insert the extra two lines (which are not profile-specific)

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Enhanced Link Attribution’ is closed to new replies.