Log in

View Full Version : Adsense shown every 5 page views?


bluecat
02-11-2006, 05:46 AM
Hi,

Sorry if this is in the wrong forum. Does anyone know if there's a script that will allow adsense (or any chunk of code) to be added to the header, but only shown once every 5 or so page views?

Thanks :)

Logikos
02-11-2006, 05:52 AM
Hmmm, I don't know if you can specify which page view to show a certain code/advertising. Though you can make it random. Shown/Not Shown. I could be wrong though. Quering the database to record the page view could be an alternative, though I wouldn't recommend it. :)

bluecat
02-11-2006, 01:02 PM
Thanks. I had read where a guy said his CTR shot up when he only had it display once every 10 page views, but didn't show how to set something like that up. :(

MakZF
02-11-2006, 01:15 PM
Random would be the best option, you could just code a simple javascript that generates a random number from 1 to 5, and if the number is 5 then the script would show the ad. You'd have a 1/5 chance of seeing the ad that way.

Logikos
02-11-2006, 01:59 PM
<a href="https://vborg.vbsupport.ru/showthread.php?t=107666" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=107666</a>

bluecat
02-11-2006, 09:56 PM
Thanks, I'll give it a try. :)