How do I Track Software Installs For Affiliates?
Right now I track installs of a particular piece of software through the use of a c开发者_运维知识库ookie. (This is all windows currently.) Since the download comes from my site through a link I can give custom links to affiliates to figure out who to credit the download with. I also assign a unique id of sorts to the computer to track it. These get popped into the registry at some point in the future for persistence.
Now, there are more ways to spread the software rather than just through a download link -- I want the ability to just hand someone an .exe and figure out who gave them that. I could have a .ini file or something to hold the tracking code but that means I have to create an installer for each affiliate -- I'm not completely against this idea but I don't like it either.
Any easier ways? I know this is a common use case -- what do people do?
so I've come up with a solution myself -- it's just going to take a second to implement (since all my server stuff lives on *nix right now) but here is how it goes:
- affiliate comes to website and wishes to signup
- we shoot a post w/affiliate-id over to a windows web server
- windows web server generates a inno script config file w/affiliate id and other stuff in registry keys section
- windows starts another process that compiles inno script file (and supporting stuff) into .exe
- once it is done it is shot off to s3 bucket
- user is informed where to dl his custom .exe
so, no problem is impossible, it just might take some thinking to get it done
精彩评论