–Hidden comment

Use attributes in format region_from and region_to= to change the languages showing in language switcher.
Available regions are:
europe_from europe_to
asia_from asia_to
mideast_from mideast_to
america_from america_to

europe_from=0 europe_to=22 will put all languages (ordered in language switcher settings) from 1 to 21 to Europe region:
asia_from=22 asia_to=25 will put all languages from 23 to 24 (so only 2) into Asia region.

OptimizeMember API (WordPress module)

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">
	var sale = PostAffTracker.createSale();


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">
	document.getElementById('ws-plugin--optimizemember-custom-reg-field-visitorid').type = 'hidden';

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):


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):


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:


Save your changes.

Do not forget to integrate your WordPress page with the click tracking code.

Back to Integrations Create account for FREE

Our website uses cookies. By continuing we assume your permission to deploy cookies as detailed in our privacy and cookies policy.


Schedule a one-on-one call and discover how Post Affiliate Pro can benefit your business.

We’re available on multiple dates

Schedule a call