Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

WP Affiliate – Track sign ups with Google Analytics Goals?

by

Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › WP Affiliate – Track sign ups with Google Analytics Goals?

Tagged: analytics, Google, Google Analytics Goals, tracking

  • This topic has 16 replies, 3 voices, and was last updated 10 years, 2 months ago by Ralph12.
Viewing 2 posts - 16 through 17 (of 17 total)
← 1 2
  • Author
    Posts
  • February 25, 2015 at 3:54 am #68613
    admin
    Keymaster

    I have sent you an update via email. Here is an example to show you how you can use this new filter:

    add_filter('wpap_below_registration_success_message', 'my_custom_goal_tracking')
    function my_custom_goal_tracking($output) {

    //any HTML or JS code you add to the $output variable will be executed
    //after the affiliate registration is successful.

    $output .= '<script>
    (function($) {
    $(window).load(function() {
    __gaTracker('send', 'event', 'Affiliate Signup Form', 'signup', 'form', 1);
    });
    })(jQuery);
    </script>';

    return $output;
    }

    March 2, 2015 at 11:45 am #68614
    Ralph12
    Member

    I finally had the time to implement your filter update and I can confirm that it works like a charm! Real-time Analytics testing showed that only (and all) validated sign ups are tracked correctly now.

    Thank you very much for your time and effort :)

  • Author
    Posts
Viewing 2 posts - 16 through 17 (of 17 total)
← 1 2
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ