Support » Plugin: CAOS | Host Google Analytics Locally » Question/Feature Request: Track certain internal links as outbound links.

  • Resolved Achim Kirchmeier

    (@kirchmeier)


    Hi!

    I’m really tempted to give this plugin a try, as i love the idea of the local GA-script. But πŸ™‚

    I’m using Monster Insights (MI) now. The only function, that i really need and can’t find here in CAOS is the Affiliate-Link-function. That gives me the opportunity to track my cloacked affilite-links properly. E.G. every link with “/ext/” in URL will be tracked as an external Link. That will track an event in GA and let me set event-based goals.

    Any chance to get this added here or does anybody know, how i can substitue this function?

    Thanks and best regards!
    Achim

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Daan van den Bergh

    (@daanvandenbergh)

    Could you provide me with a link from Google’s documentation about this function? I could have a look to see how to implement this.

    Thread Starter Achim Kirchmeier

    (@kirchmeier)

    Hi Dan0sz and thanks for your fast answer!

    To be honest, i think it’s not exclusively a GA-function. For me it seems to be something the plugin does and then sends an event to GA (sorry for being unclear, but i don’t really know more).

    The function in MI is described here:
    https://www.monsterinsights.com/how-to-set-up-affiliate-link-tracking-in-wordpress/

    Basically, when recognizing a defined part of an URL (e.g. /out/) inside an internal Link, when somebody clicks on that link it sends an external Link-Click-Event to GA. Based on this event it’s possible to set goals. I guess this event-function is used, but i’m not sure about that:
    https://developers.google.com/analytics/devguides/collection/analyticsjs/events

    If i’m not clear enough, please ask again.

    Thank you very much for Support and best regards!
    Achim

    Thread Starter Achim Kirchmeier

    (@kirchmeier)

    Diggin deeper i found this script in the sourcecode of my website (https://www.top-wp-hosting.de). I guess that’s responsible for the event:
    <script type=’text/javascript’>
    /* <![CDATA[ */
    var monsterinsights_frontend = {“js_events_tracking”:”true”,”is_debug_mode”:”false”,”download_extensions”:”doc,exe,js,pdf,ppt,tgz,zip,xls”,”inbound_paths”:”\/top\/”,”home_url”:”https:\/\/www.top-wp-hosting.de”,”track_download_as”:”event”,”internal_label”:”aff”,”hash_tracking”:”false”};
    /* ]]> */
    </script>

    Plugin Author Daan van den Bergh

    (@daanvandenbergh)

    @kirchmeier,

    Just to let you know, in recent updates CAOS is now fully compatible with Monster Insights. So you can keep that plugin, but host it locally by running CAOS in compatibility mode!

    Thread Starter Achim Kirchmeier

    (@kirchmeier)

    Cool, thank you very much for keeping me in the loop πŸ™‚

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Question/Feature Request: Track certain internal links as outbound links.’ is closed to new replies.