cancel
Showing results for 
Search instead for 
Did you mean: 

Add affiliate tracking to order

SOLVED

Add affiliate tracking to order

My Magento 2.1 shop receives external traffic and I would like to track the source based on a GET parameter (utm_source) which I assign to the incoming link.

 

The source string should be appended to the order. This way it's possible to find out which traffic source results in a sale.

 

Is there any simple (not unnecessarily bloated) extension for this? Alternatively an approach for coding the feature would be much appreciated.

 

Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Add affiliate tracking to order

If you use utm_source you can track acquisition in the campaigns section of Google Analytics: https://support.google.com/analytics/answer/1033863?hl=en https://blog.kissmetrics.com/how-to-use-ut...

 

When investigating a particular Source, you can then add "Transaction ID" as a secondary dimension to get a list of order IDs. 

----
If you've found one of my answers useful, please give "Kudos" or "Accept as Solution" as appropriate. Thanks!

View solution in original post

4 REPLIES 4

Re: Add affiliate tracking to order

Is there a reason you wouldn't just use Google Analytics for this? Cross-matching orders and utm_source?

----
If you've found one of my answers useful, please give "Kudos" or "Accept as Solution" as appropriate. Thanks!

Re: Add affiliate tracking to order

This sounds interesting.

Could you please elaborate how to assign the Analytics session to the specific order?

 

Thank you,
Valentin

Re: Add affiliate tracking to order

If you use utm_source you can track acquisition in the campaigns section of Google Analytics: https://support.google.com/analytics/answer/1033863?hl=en https://blog.kissmetrics.com/how-to-use-ut...

 

When investigating a particular Source, you can then add "Transaction ID" as a secondary dimension to get a list of order IDs. 

----
If you've found one of my answers useful, please give "Kudos" or "Accept as Solution" as appropriate. Thanks!

Re: Add affiliate tracking to order

hi Tom, 

I have just stumbled across this thread and although my problem is not exactly the same I thought you may know the answer or perhaps point me in the right direction. 

 

One of our close affiliate partners have been pushing traffic to our magento store for almost 4 months now delivering steady and good quality sales. They've recently asked us to place their global postback on our Thank You page in order for them to better optimize their traffic funnels. We really like this idea as it will give both sides clear benefits moving forward, however we are not exactly sure how to implement their postback on our end. Do you know by any chance how to best go about this? Would there be a simple way to code it onto our Thank you page or would there perhaps be some 3rd party extension(s) that we would need to install? Not sure if it's important but currently all their traffic is ran through shareasale tracking links. Unfortunately postback tracking functionality is not available on shareasale platform. 


Once again thanks for your help. 

Martin