Does anyone know if there’s any way to set up affiliate tracking for form submissions/lead generation?
What we’d like to do is create an affiliate link that looks something like this:
And then have any form submissions that are sent on the site for lead gen be associated/tracked with this link so we can attribute it to the affiliate
Does anyone know if this is possible to do?
December 2, 2022, 3:04am
Yes you can.
A few decisions to make;
How do you want the distributed links to look, i.e. do you want a querystring, or just a path? Either is possible. Path just requires one extra step.
Do you need to track the links through to a conversion action like a button click or a form submission?
At what point are you wanting to capture the tracking a the server side, and where/how will you track that for accounting purposes?
I build solutions like this for clients if you’d like help setting up the whole thing. But the basic elements aren’t complex if you have some scripting and automation knowledge.
For the links either works preferably a path
Yes we need to track the form submission itself
Would you mind just breaking down the process for setting something like this up?
December 2, 2022, 6:29pm
I’ll divide it into pieces;
REFERRAL CAPTURE PIECE
Pick a page like
Write a script that takes the URL querystring, e.g.
?refer=XXX and stores it is a cookie or localSession var
It then redirects to a desired page, probably, depending on your desired nav flow
INBOUND REFERRAL REDIRECT
Choose a referral-specific path structure, like
Add a 301 redirect from that pattern to a querystring e.g.
Retrieve the cookie referrer if it exists, populate a form hidden field with it
Awesome dude thank you - I was able to get this integrated on the site
December 6, 2022, 2:36am
Awesome, glad it worked for you Franz.