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 in my database.
Source: How he got here? Facebook? Google Search? Google organic?
Keyword: What keyword he used to get here.
His IP adresse.
How long he stays on the site.
ID: The visitor should be given an unique ID.
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 replace the INSERTDATA with the visitors unique ID. So if an visitor converts to a lead, i can see his unique ID at my affiliate network, and compare it with my database, and see which searchword and page that converted to the sale.
I also want a very very simple system to check the data from the database with.
If you have an better idea of how this can be done, im all ears. Please send an description then.
Feel free to ask questions!