How to create a UTM links for affiliate channels on shopify ?

Here is the best solution for Affiliate UTM Parameter for capturing CPS conversion without using any third-party tool.

POSTBACK

https://traqkar.com/p.ashx?o=548&e=290&f=pb&r=CASHKARO_CLICK_ID&ect=SALE_AMOUNT&t=WOW_ORDER_ID&p=SALE_AMOUNT

Settings - > checkout - > Additional scripts

Add the following code 

{% if landing_site_ref == 'cashkaro-tracking-site-new' %}
<iframe src="https://traqkar.com/p.ashx?o=469&e=290&f=img&t={{ order_number }}&p={{ total_price | money_without_currency }}&ect={{ total_price | money_without_currency }}">
</iframe>
{% endif %}

Affiliate partners will create a test link for you from their panel. Usually, the test link for the above samples codes looks like this 

TEST LINK

https://traqkar.com/?a=3&oc=572&c=570&p=r&s1=wow_test&s2=test111

Once the test link is executed it will come like this on slug:

https://www.yourdomainName.com/?ref=cashkaro-tracking-site-new&utm_source=Cashkaro&utm_medium=affiliate&utm_campaign=cashkarooffer&utm_content=29248421

Where "utm_content" is a Unique click identifier, it will get change every time

In case image pixel almost same way like below

{% if landing_site_ref == 'affliatePartner-tracking' %}
<img src="https://impression.aflink.com/com.phonepe.app?pid=wow&c=june_header" width=”1” height=”1” style="display:none"/>
{% endif %}

How to check the report for the affiliate tracking?

Analytics -> Reports -> Marketing - > Sales attributed to marketing

Manage Filter -> choose UTM Source & UTM Campaign Name

for above example: 
UTM Source: Cashkaro

UTM Campaign Name: cashkarooffer

and choose the date range. and it's good to go.

Hope this article helps! 

Did you find this article useful?