How to Set Up Magento 2 Tune Affiliate Tracking

Creating Tune Affiliate Program in Magento 2

In this article, you will learn how to create and configure the Tune Affiliate Program in the Magento 2 Affiliate Programs extension. Please, check the following step-by-step guide.

Step-by-Step action:

  1. Go to the “Plumrocket” tab in the main menu.
  2. Navigate to the “Affiliate Programs” tab > select “Manage Affiliate Programs“.
2 configuration affiliate extension magento 2 cj v1.jpg

Step-by-Step action:

  1. Press on the “Add New Affiliate” button.
3 configuration affiliate extension magento 2 v1.jpg

Step-by-Step action:

  1. From the list of the affiliate programs select “Tune“.
  2. Press the “Continue” button.
1 configuration affiliate programs magento 2 hasoffers v1.jpg

Configuring Tune Affiliate Program in Magento 2

After you created new Tune Affiliate Program , you need to configure it. Please, follow the steps below.

Step-by-Step action:

  1. Specify the “Name” of your Affiliate Program.
  2. The “Status” option allows you to enable or disable the Affiliate Program.
  3. In the “Store View” section you may select the store view(s) where your Magento 2 Affiliate Program will be executed.
2 affiliate programs magento 2 tune v1.jpg

Step-by-Step action:

  1. Navigate to the “Affiliate Script” tab.
  2. Include Delivery Cost“: set to Yes if you want to include the delivery cost in the total amount.
  3. Include Taxes“: set to Yes if you want to include taxes in the total amount.
  4. The “Execute Postback On” option allows you to specify the page(s) from the drop-down menu where you would like the Postback Script to be executed.
  5. Insert the Postback Script in the “Postback Script” field. To perform this action use one of the examples below. Note: you need to replace the goal_id value with the one provided by Tune Affiliate Network.
2 affiliate programs magento 2 tune v1.png

Step-by-Step actions:

  1. The “Postback URL Parameters” tab allows you to configure the advanced Postback URL Parameters. Do not submit any changes here unless you are aware of what changes you need to be done.
  2. Once all changes have been performed, please, press on the Save button.
3 affiliate programs magento 2 tune v1.png

Testing Tune Affiliate Tracking Code in Magento 2

In order to test and check whether your Magento 2 Affiliate Program has been installed properly, please check the instructions below.

Step-by-Step action:

  1. Create a test order at your Magento 2 frontend. Note that you will need to add a GET parameter ?transaction_id=??? to your website link (where “xxx” is an ID provided to you by Tune Affiliate Network). Then proceed to the Order Success page.
  2. Using your browser’s Developer Tool (“F12” key on your keyboard) open the search bar (“Ctrl+F” keys on your keyboard) and look for the Postback Script which starts with http://tracking.your-domain.com .
  3. Your Postback Script will appear.
4 affiliate programs magento 2 hasoffers v1.jpg

If you locate the Postback Script – this means that your Tune Affiliate Program has been set up correctly. Now log into your account at tune.com and verify that your transactions are being tracked correctly.

Was this article helpful?