Title: Enhanced Link Attribution
Last modified: August 20, 2016

---

# Enhanced Link Attribution

 *  Resolved [stillingen](https://wordpress.org/support/users/stillingen/)
 * (@stillingen)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/enhanced-link-attribution/)
 * Any plan to support this as part of your plugin?
 * [http://support.google.com/analytics/bin/answer.py?hl=en&answer=2558867](http://support.google.com/analytics/bin/answer.py?hl=en&answer=2558867)
 * [http://wordpress.org/extend/plugins/google-analyticator/](http://wordpress.org/extend/plugins/google-analyticator/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [Video User Manuals](https://wordpress.org/support/users/videousermanuals/)
 * (@videousermanuals)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/enhanced-link-attribution/#post-3206388)
 * Hi stillingen – you could try putting this code under “Additional Tracking Code”
   in the settings area. I haven’t personally used this function in Analytics, so
   I can’t support it. But it should work nicely.
 *  [Ian Slater](https://wordpress.org/support/users/ianslater/)
 * (@ianslater)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/enhanced-link-attribution/#post-3206411)
 * Yes, but should the code be placed “after tracker initialization” or “before 
   tracker initialization”???
 *  [schindyguy](https://wordpress.org/support/users/schindyguy/)
 * (@schindyguy)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/enhanced-link-attribution/#post-3206416)
 * I’d like to know this as well. Thanks!
 *  [schindyguy](https://wordpress.org/support/users/schindyguy/)
 * (@schindyguy)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/enhanced-link-attribution/#post-3206417)
 * The [google documentation](https://support.google.com/analytics/bin/answer.py?hl=en&utm_id=ad&answer=2558867)
   says
 * Add the new tag to your tracking code, before _trackPageview, as illustrated 
   by the bold text in the example below:
 * var _gaq = _gaq || [];
    **var pluginUrl = ‘//www.google-analytics.com/plugins/
   ga/inpage_linkid.js’; _gaq.push([‘_require’, ‘inpage_linkid’, pluginUrl]); _gaq.
   push([‘_setAccount’, ‘UA-XXXXXX-Y’]); _gaq.push([‘_trackPageview’]);
 * **So I don’t think the solution of adding it before or after would work.** It
   looks like it requires modification.
 *  [wilderbee](https://wordpress.org/support/users/beetree/)
 * (@beetree)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/enhanced-link-attribution/#post-3206418)
 * —
 *  [wilderbee](https://wordpress.org/support/users/beetree/)
 * (@beetree)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/enhanced-link-attribution/#post-3206419)
 * Posted through, but not exactly per Google example. I used the “before” box which
   has inserted the code after the ‘_setAccount’ line, as shown below. But it is
   ahead of ‘_trackPageview’ so hopefully will be good enough for Google:
 * var _gaq = _gaq || [];
    _gaq.push([‘_setAccount’, ‘~~~~~~~~~’]); _gaq.push([‘
   _addDevId’, ‘~~~~~’]); // Google Analyticator App ID with Google
 * ** var pluginUrl =
    ‘//www.google-analytics.com/plugins/ga/inpage_linkid.js’;
   _gaq.push([‘_require’, ‘inpage_linkid’, pluginUrl]); _gaq.push([‘_trackPageview’]);

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Enhanced Link Attribution’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/google-analyticator_fefefe.svg)
 * [Analyticator](https://wordpress.org/plugins/google-analyticator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-analyticator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-analyticator/)
 * [Active Topics](https://wordpress.org/support/plugin/google-analyticator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-analyticator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-analyticator/reviews/)

 * 6 replies
 * 5 participants
 * Last reply from: [wilderbee](https://wordpress.org/support/users/beetree/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/enhanced-link-attribution/#post-3206419)
 * Status: resolved