Our customers are able to use a discount code on checkout.
Each of our referral partners has a unique discount code.
We currently log a server-side event for all purchases, which includes the discount code used.
We’d like to use the discount code to help inform the original marketing/ acquisition channel that the user came in from.
e.g. if we get direct traffic, which can’t be otherwise attributed, we’d like to attribute it to the referral partner based on the discount code that was used.
We’d then like to be able to report on this, so we can get a complete picture of our channels.
The challenge we are encountering is that the discount code is present on the purchase Event, but I want to run the reports based on the User who made the purchase. i.e. what is the discount code used in the first purchase event for the User.
How could we accomplish this in heap? or is their another approach that we could take?
Best answer by Christy H
View original