Home > Programming, Servers & Scripts >

Looking for a script which shows different content depending on the geo/device (8)


10-23-2014 08:33 AM #1 kabouter (Member)
Looking for a script which shows different content depending on the geo/device

Figured I'll post it here first before I try and find someone who can code this for me.

I'm basically looking for a very simple ad server.

Let's say we want to do the following
- Show all desktop users from the US banner A
- Show all mobile users from the US banner B
- Show all desktop user NOT from the US banner C
- Show all mobile users NOT from the US banner D

Of course an ad server is ideal for this, but I'm trying to cut down on the costs so I'm looking for something similar in javascript which accomplishes the same.

Does anyone have a script like that which he is willing to share?


10-23-2014 08:40 AM #2 panthary (Member)

Do you mean a banner on the lander or on the DSP?

Voluum has the rules feature which can do this for redirecting to different LPs/offers and I think Prosper202 has a similar feature.


10-23-2014 09:28 AM #3 kabouter (Member)

I meant on a site/lander. So a piece of code on a website that displays a different code (banner in this case) depending on the geo/device.


10-23-2014 09:34 AM #4 bbrock32 (Administrator)

That is just a few lines of code. Get someone on fiver to do it for $10.


10-23-2014 12:20 PM #5 panthary (Member)

Yep, use the Request Gig option and a few people will pop their hands up


10-24-2014 03:38 PM #6 kabouter (Member)

Ok, I'll just get someone on Fiver, thought it would be a bit more complicated then that since we can't use PHP, but I guess I was wrong.


10-24-2014 06:25 PM #7 zeno (Administrator)

If you can't use PHP it will be a bit more annoying, but you could use a JS web service?

How are you tracking? An alternative would be sending a code in a query string, e.g. "desk-US". Then you could have some placeholder images, and some javacsript that changes the image source of these based on some rules for the query string in the page URL (and replaces with some default if no match exists).

I would do this over trying to integrate a GeoIP service, this will have much less impact on page speed.


10-27-2014 09:41 AM #8 kabouter (Member)

Thanks for your input Zeno! I'll be tracking with Voluum (and redirecting that way), I must admit I'm not so tech savvy to know what a JS web service is.

Regarding the query string that is not possible since it will be a direct buy and the traffic comes in from everywhere, I have very little control over the website itself just over the small banner spot.

But I agree a geoip service will probably not sit well with the site owner due to loading speeds, besides my banner would load a lot slower as well. I'll write up instructions for someone on fiverr and see what they come up with.


Home > Programming, Servers & Scripts >