Here's the problem. We have some software, there is a free edition and a paid edition available.
The software is an EXE download which sets up the software. The way we are hoping to gain most sales are from people downloading the free edition, then deciding through various links in the software that they would like to pay for it now and unlock new features.
At the moment we run several campaigns to get visitors to our site. We know that a visitor came from say our Reddit campaign, downloaded our software and then from all intents and purposes they have vanished. If they use the software and wish to pay, they click a link in the software and the purchase is annonymous.
What we would like to do is when they download the software, somehow it generates a text file in their install directory with the source of their download in it. This file would contain data like "reddit1" to indicate they originated from reddit campaign #1. Then every link in the software sends that variable in a GET request so we know where the sale actually has come from.
What we can't figure out the best way to do, is when we have the variable with their source in it on the website, how to pass this to the EXE download so during install it generates the data file? We don't want to have multiple downloads for each campaign we run.
We managed to solve this problem by passing an Id into the filename, such as:
setup_221.exe
Where 221 = the referal. The setup program can take the referal ID and save this into the directory, then pass it to the website which translates it as the actual campaign.