WordPress.org

Ready to get started?Download WordPress

Forums

Google Analyticator
[resolved] Enhanced Link Attribution (7 posts)

  1. stillingen
    Member
    Posted 1 year ago #

  2. Video User Manuals
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  3. Ian Slater
    Member
    Posted 1 year ago #

    Yes, but should the code be placed "after tracker initialization" or "before tracker initialization"???

  4. schindyguy
    Member
    Posted 1 year ago #

    I'd like to know this as well. Thanks!

  5. schindyguy
    Member
    Posted 1 year ago #

    The google documentation 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.

  6. wilderbee
    Member
    Posted 1 year ago #

    --

  7. wilderbee
    Member
    Posted 1 year ago #

    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']);

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.