Documentation

Auto-Importing Transactions using Post-Back URL / Pixels

Default Process (Store / Campaign Level Postback)

Almost every affiliate program worldwide supports Post-Back URL / Pixels to pull all related information to each transaction on real time basis. ClipMyDeals Cash-Back plugin not only supports this system but also has a separate panel for admins to create URLs & Pixels (see below image).

ClipMyDeals Postback

To use a Post-Back URL / Pixel, below is the process:
  1. Go to Cashback > Postback in your WordPress admin area.
  2. Select the store from drop down for which you want to auto import transactions.
  3. Select whether you wish to Auto-Approve pulled transactions. If you select 'Yes', then transactions status will be 'Approved' immediately once it gets pulled in system. If you select 'No', then the transactions will carry status 'Pending' until they are manually 'Approved' by the admin.
  4. Add Sub ID Variable. This should be the same Sub-ID where you passed [user] short-code in affiliate links.
  5. Add Transaction ID Variable. This should ideally be transaction ID from the store, or a unique record identifier in your affiliate panel.
  6. Add Transaction Amount Variable. This is the total sale amount and not the commission amount.
  7. Add Transaction Date Variable which gives the Transaction Date in a valid date format or in UNIX Timestamp. If you leave this blank, system will auto apply current date - so you will see transactions with dates when they were auto pulled in cashback plugin.
  8. Simply copy & paste the Post Back URL / Pixel into your affiliate program panel or in the specified store panel on affiliate network.

Exception (Global / Universal / Account Level Postback)

Default process suits better when there is option to add campaign level postback URLs & Pixels especially when the store itself has a affiliate panel. However, some affiliate networks only have a universal postback option i.e. they allow only one pixel / url for all campaigns.

Exception Method 1

In case where only one postback is allowed i.e. at the account level (in other words - campaign level postback isn't available); there we will have to pass the 'store ID' of your website as second Sub ID in affiliate links. Follow the below steps to complete this type of postback setup:

  1. Go to Cashback > Postback in your WordPress admin area. Select the store from drop down for which you want to auto import transactions and click on 'Create'.
  2. Note the numerical 'store ID' following the parameter 'store=' in postback URL / pixel section.
  3. Modify your affiliate link to include the earlier noted 'store ID' as Sub ID along with your '[user]' tag. So if your earlier affiliate link was like:
  4. https://www.example.com/some-inner-page/?aid=123&s1=[user]
    It will now change to something like below, where 123 is assumed to be our 'store ID':
    https://www.example.com/some-inner-page/?aid=123&s1=[user]&s2=123
  5. Do 'Step 3' for all the stores you want to import transactions for.
  6. Now go back to Cashback > Postback in your WordPress admin area and create a postback URL / Pixel as specified in 'Default Process' above. This time however select store as 'Global Pixel' for our better understanding.
  7. Copy the newly created postback URL / pixel in a notepad and replace 'store=0' part with 'store={subid2}'. Where '{subid2}' is the second sub ID variable. This may be different for each affiliate program, but you must refer it to the same Sub-ID variable wherein you passed 'store ID' in 'Step 3' above. Taking an example of Awin, your postback URL for it would now appear something like:
    https://example.com/wp-json/cashback/v1/postTransaction/?store=!!!clickRef2!!!&user=!!!clickRef!!!&merchant_transaction_id=!!!transactionId!!!&transaction_amount=!!!transactionAmount!!!
  8. Copy & paste the edited Post Back URL / Pixel into your account level postback section.

Exception Method 2

In rare cases, an affiliate program may allow only one Sub-ID. Here as a last resort, you will have to go for a bypass approach as below:

  1. Select the store 'Global Pixel' from the list.
  2. Create a postback URL / Pixel for 'Global Pixel' store (selected in point 1) as given in 'Default Process'.
Lastly, once the transaction is imported in your theme's cashback table, if required, you may then change the store name in cashback table as documented on https://clipmydeals.com/support/kb/faq.php?id=22.

Help Topics:


Last Updated 2 years ago


Help Topics

  • Cashback Plugin