How to track affiliate signup form

If you would like to track successful affiliate signup of your Post Affiliate Pro signup form into some 3rd party application (like Google Analytics, etc.), you can do it by customizing the design of the affiliate signup page.

To do that, in your merchant panel navigate to the Configuration > Design > Signup page theme

Edit the theme and find the "footer.stpl" file. Place the following code into this file and replace the red part of the code with your custom (tracking) code:  

<script type="text/javascript">
$( document ).ready(function() {
    window.addEventListener('popstate', function(e){  
         var urlParams = new URLSearchParams(window.location);
         if(window.location.hash.substring(1) == "SignupSuccess") {
         
            //add your signup success JS code here
             
        }
    });
});
</script>


NOTE: if you don't want to use the default Post Affiliate Pro signup form, you can use HTML signup form and place it to your own website. More information about this option can be found HERE.