Hi, please read the description well.
I need a script that does the following:
When the users first enters my website (Wordpress), i want following information saved (i guess in a cookie?):
Source: How he got here? Facebook? Google Search? Google organic?
Keyword: What keyword he used to get here.
Exit Page: When he clicks an affiliate link, it should also save the information of which page he clicked from.
Then i need a 301 redirect script made, like this one: [url removed, login to view]
Where i can add all my affiliate links.
The affiliate links comes from differnet companys, and they have all different ways of adding information to their tracking.
The link could look like this:
[url removed, login to view]
Or [url removed, login to view]
The INSERTDATA varries from affiliate network to network.
I want the script to pull the information that was saved: Site, Source, Keyword, Exit page, to be added instead of the INSERTDATA. And i want all special signs removed from the data and replaced with an "1" sign. And i want the data seperated with a "2" sign.
Example. If an user visits my site [url removed, login to view] - he comes from google organic from the search word "Find example site" and he leaves my site from the link [url removed, login to view]
Then i want the affiliate script to give me an output that looks for example like this: [url removed, login to view]
Feel free to ask questions!
If you have an better idea of how this can be done, im all ears. Please send an description then.