The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Affiliate Marketing
    4. Setting up external link goals in GA

    Setting up external link goals in GA

    Affiliate Marketing
    4 3 2.0k
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Gavin.Atkinson
      Gavin.Atkinson last edited by

      I have recently switched all my travel affiliate links to TripAdvisor using their javascript code that converts the natural links (direct links to TA URLs) to affiliate links. I have set up goal tracking in GA to try to put a monetary value on clicks through to these links (based on the known conversion rate to commissionable bookings) but GA is over-reporting the goals by a very large margin. I'm wondering what I've done wrong.

      The first screen shot below is of the goal settings I used in GA.

      The second screenshot shows that GA is reporting 7125 goal completions since I set up the goal on 7 August.

      The third screenshot shows the actual number of GA events recorded on outbound clicks to TA URLs in the same period, which is just 97.

      So the goal completions being recorded far exceed the actual goal completions, but I'm not sure why. I know I've done something wrong but as this is the first time I've used goals, I'd appreciate some help to see what I've done wrong.

      Thank you.

      3f7dc3de6f9f1373d47994144a5cb016 56aa39130a7d54b07d8f2ce9cf1d7fb0 35ee827275928ca8c4d4c941f0672ef8

      1 Reply Last reply Reply Quote 0
      • Alick300
        Alick300 last edited by

        Hi,

        I think you are doing wrong because you are using tripadvisor.com as destination URL.

        You can track affiliate clicks using event tracking. I'm sharing  a video tutorial link for this @ http://www.matthewwoodward.co.uk/tutorials/how-to-track-anything-with-google-analytics/

        *****You have to change on thing only from above tutorial -onclick="_gaq.push(['_trackEvent', 'category', 'action', 'label']);"  to  onClick="ga('send','event','category','action');"

        Or if you have difficulty use this tool to create the event tracking code @ https://gaconfig.com/google-analytics-event-tracking/affiliate-link/

        Hope this helps.

        Thanks

        1 Reply Last reply Reply Quote 1
        • Gavin.Atkinson
          Gavin.Atkinson last edited by

          Thanks for the suggestion, I am very familiar with event tracking codes but that approach means having to add tracking code to 1000s of outbound links on my website, which is something I was trying to avoid.

          I recall there used to be a way to do this automatically with javascript but I can't find it at the moment.

          1 Reply Last reply Reply Quote 0
          • john4math
            john4math last edited by

            I'm with Alick300, using an event on the onclick event on the link is the way to go.  If you run jQuery on your pages, it should be pretty easy to select all the links going to tripadvisor.com and attach the goal tracking event code after the page has loaded.  It'll be 1 line of jQuery code... you shouldn't need to go through and add this to thousands of links by hand.

            1 Reply Last reply Reply Quote 3
            • 1 / 1
            • First post
              Last post
            • Blocking external links in Robots.txt - need advice on Best Practice
              GlobeRunner
              GlobeRunner
              0
              2
              2.4k

            • What impact do affiliate links have on SEO
              TomRayner
              TomRayner
              0
              2
              1.8k

            • Affiliate program links
              juris_l
              juris_l
              0
              3
              1.4k

            • What kind of links they are?
              Chris.Menke
              Chris.Menke
              0
              3
              706

            • Where to look for relevant links
              BenFox
              BenFox
              0
              2
              423

            • Link Building Intricacies
              firstconversion
              firstconversion
              0
              3
              579

            • Hiding Affiliate Links
              Everett
              Everett
              0
              4
              1.4k

            • Does an affiliate link bring the same SEO juice as a standard link?
              maciek-
              maciek-
              0
              4
              987

            Get started with Moz Pro!

            Unlock the power of advanced SEO tools and data-driven insights.

            Start my free trial
            Products
            • Moz Pro
            • Moz Local
            • Moz API
            • Moz Data
            • STAT
            • Product Updates
            Moz Solutions
            • SMB Solutions
            • Agency Solutions
            • Enterprise Solutions
            • Digital Marketers
            Free SEO Tools
            • Domain Authority Checker
            • Link Explorer
            • Keyword Explorer
            • Competitive Research
            • Brand Authority Checker
            • Local Citation Checker
            • MozBar Extension
            • MozCast
            Resources
            • Blog
            • SEO Learning Center
            • Help Hub
            • Beginner's Guide to SEO
            • How-to Guides
            • Moz Academy
            • API Docs
            About Moz
            • About
            • Team
            • Careers
            • Contact
            Why Moz
            • Case Studies
            • Testimonials
            Get Involved
            • Become an Affiliate
            • MozCon
            • Webinars
            • Practical Marketer Series
            • MozPod
            Connect with us

            Contact the Help team

            Join our newsletter
            Moz logo
            © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
            • Accessibility
            • Terms of Use
            • Privacy