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.

3 REPLIES

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!