How to Integrate ShareASale with Wordpress WP-Members

 How to Use ShareASale to Track New Leads in WP-Members

You can track membership requests in WP-Members with ShareASale, treating each new membership signup as a 1.00 transaction.  It's very easy using WP-members registration post data array upon signup.  The first thing to do is to add the header code in your theme's header.php file. That's easy enough. Finally, add the tracking img code into:  class-wp-members-shortcodes.php.  This will activate if you are using shortcodes to signup new members.  Example:  [wpmem_form register]  will show the registration form on your pages.  

Finally, you must add the tracking img code into your successful signup page. WP-members will drop into this page class-wp-members-shortcodes.php in this logic block starting with case in_array( 'register', $atts ): 

The key to all of this working is to find the lead-id from $wpmem->user->post_data['display_name'] and use it as the lead_id in shareasale.

Find the line that contains:  if ($wpmem->regchk == 'success') { and insert your shareasale img code in there. 


Popular posts from this blog

Microsoft Visio 2010 Premium Product Keys

Fix: The Diagnostic Service Host service failed to start due to the following error. [ solved, no kidding ]

Mercedes Benz Diesel CDI EGR Emulator Circuit Diagrams