At ScrapingBee we wanted to know what were the marketing channels that brought the most 💰.
GA makes it very easy to know where do your visitors/users come from.
But when it comes to customers, and their values, it is harder.
Here is our very simple attribution system that takes 1 minute ⏱ to integrate
First, store in a cookie UTM tags and referrer.
It's important to set up the domain of the cookie if you use a subdomain for your app. And it's also important to set the expiration date otherwise the cookie would disappear on each session.
Here is the snippet we added on every page of our marketing website.
https://gist.github.com/daolf/e66ec71c603cec4e502190788e75a2f6
Then, on your signup pages, add those 2 things:
hidden fields for the info you want
this snippet that will populate those fields with your cookie 👇
https://gist.github.com/daolf/a93371c414aadc0ce7f77b3098acfa31
Store those in your DB, subscription analytics and that's it!
It's not perfect, but it takes 5 minutes to implement and will help us a lot with understanding what marketing channels are worth focusing on 📈.
Curious to know how you do it.