PHP - Landing Page Smartlink Redirect by Tier [script]

LondoN eXtream

Regular Member
Joined
May 14, 2020
Messages
296
Reaction score
195
This is my personal script i use. The logic behind is pretty simple. I do have huge traffic and i want to test different advertisers at once by tier to see who's converting better. The script is using simple scripts to detect and redirect. What you have to do is to redirect traffic to the certain page where the script is running. The script is saving all the data in /manifest/day/*.json for little analytics.

https://pastebin.com/2AxCxfwZ

Feel free to use it anywhere, and test as many advertisers.

Set your own links within the code and set $delay to whatever seconds before / after a redirect.

You'll need Geoip to use this. Just download it from the internet and put it in certain path.
I am not gonna give too much details. If you know to use it, it's a little gold mine for big traffic. When i started this script i was thinking about more revenue streams, but it come out like this.
Have fun!
 
props for sharing man . self-hosted logic is always cleaner than paying saas monthly .

just heads up for anyone deploying this on high traffic : php file-based logging (json) gets messy with concurrent writes when u scale . better pipe that data into a redis queue or proper db if u pushing huge volume .

also add a bot filter layer before the redirect logic , otherwise fb/google bots will destroy your tier analytics .
 
Interesting concept for traffic testing and basic analytics, but anyone using scripts like this should be careful about compliance, user transparency, and advertiser terms. Testing is fine as long as it’s done responsibly and within platform rules.
 
Back
Top