OptimizeMember API (WordPress module) integration
A fully functioning membership system giving you powerful features you need to run a membership site.
OptimizePress is the new way to create high converting landing pages, sales pages and membership portals.
The integration method uses OptimizeMember API to communicate with built-in plugin. You can track sales, recurring sales and refunds. You can automatically create an affiliate account for the new registering customer. It is also possible to use Lifetime Commissions.
Place the tracking code
The first step to integrate the sale tracking code into your OptimizePress is to place the following code to OptimizePress section API / Tracking> Signup Tracking Codes:
<script id="pap_x2s6df8d" src="https://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script>
<script type="text/javascript">
PostAffTracker.setAccountId('Account_ID');
var sale = PostAffTracker.createSale();
sale.setTotalCost('%%initial%%');
sale.setOrderID('%%subscr_id%%');
sale.setProductID('%%item_number%%');
PostAffTracker.register();
</script>
In case you need to track also some other details, you can see variables available right below this section (in OptimizePress).
Modify registration form
This will save a tracking value for every new member. The tracking value will be used for every sale notification. Thanks to this, Post Affiliate Pro will be able to recognize who is the referring affiliate and which campaign to use to compute commissions.
Before we start with setup, you have to enable OptimizeMember plugin in your Post Affiliate Pro first. Set a secret word – it will be used for communication between OptimizeMember and Post Affiliate Pro.
The first step is to create an additional (optional) field in your OptimizeMember registration form (General Options > Registration/Profile Fields) and name it ‘visitorID‘ (the same for unique field ID).
The next step is to set a custom script in Footer Design section of General Options > Login/Registration Design. Please insert this code there:
<script id="pap_x2s6df8d" src="https://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script>
<script type="text/javascript">
PostAffTracker.track();
document.getElementById('ws-plugin--optimizemember-custom-reg-field-visitorid').type = 'hidden';
PostAffTracker.writeCookieToCustomField('ws-plugin--optimizemember-custom-reg-field-visitorid');
document.getElementById('ws-plugin--optimizemember-custom-reg-field-visitorid').parentNode.style.display='none';
</script>
This code will make sure the parent affiliate info (a cookie value) is stored in this field, and the field itself is hidden from the form.
Payment tracking
Navigate to your OptimizeMember admin, to API / Notifications> Payment Notifications and use this notification URL (use the same secret word here as you’ve set in the plugin):
http://URL_TO_PostAffiliatePro/plugins/OptimizeMember/optimizemember.php?secret=THE_SECRET_WORD&subscrId=%%subscr_id%%&orderId=%%txn_id%%&total=%%amount%%&productId=%%item_number%%&email=%%user_email%%&visitorID=%%visitorID%%&user_ip=%%user_ip%%&type=order
Save your changes.
Refund tracking
To track refunds and automatically mark commission as refunded when payment is refunded, you have to navigate to your OptimizeMember admin, to API / Notifications> Refund/Reversal Notifications and use this notification URL (set the secret word there):
http://URL_TO_PostAffiliatePro/plugins/OptimizeMember/optimizemember.php?secret=THE_SECRET_WORD&order=%%parent_txn_id%%&type=refund
Save your changes.
Register affiliates
As you can see in the plugin configuration, there is a checkbox for affiliate registrations. In case you want to create an affiliate account for every new member, you have to check the checkbox in the plugin and then, in your s2Member administration navigate to API / Notifications> Signup Notifications and set this URL there:
http://URL_TO_PostAffiliatePro/plugins/OptimizeMember/optimizemember.php?secret=THE_SECRET_WORD&fname=%%user_first_name%%&lname=%%user_last_name%%&email=%%user_email%%&city=%%city%%&street=%%street_address%%&user_ip=%%user_ip%%&visitorID=%%visitorID%%&type=signup
Save your changes.
Do not forget to integrate your WordPress page with the click tracking code.
OptimizePress / OptimizeMember (WordPress module)
Discover seamless integration of OptimizePress and OptimizeMember with PayPal in WordPress using Post Affiliate Pro. Create high-converting landing pages and membership portals with ease. Enjoy exceptional support and user-friendly affiliate management. Start your free trial today!
Premise (WordPress membership module)
Discover how to seamlessly integrate Premise, a WordPress membership module, with Post Affiliate Pro using an easy plugin installation. Boost your membership site and landing pages with efficient click tracking and comprehensive affiliate management. Download and activate the plugin to enhance your WordPress functionality today!
s2Member (WordPress membership module)
Discover how to seamlessly integrate the s2Member WordPress membership module with Post Affiliate Pro for efficient tracking, recurring commissions, and affiliate registration. Learn step-by-step instructions for code placement, PayPal integration, and refund tracking to enhance your affiliate program. Start optimizing your membership management today!
WishList Member (WordPress membership module)
Transform your WordPress site into a robust membership platform with WishList Member. Effortlessly integrate with PayPal for seamless payment processing using Post Affiliate Pro. Explore a free trial today and see how it can enhance your business.