How To Hide Adsense From Social Traffic
Read on to find out How To Hide Adsense From Social Traffic from Stumbledupon, Digg, Technorati, Etc. The secret is to add a little JavaScript around your Ads, so that they will only be displayed if the visitor comes from a search engine. To see this in action, visit this site via search engine and an Adsense ad will replace the banner on top of this post
Update – PHP Alternative
- If you prefer to code this trick using PHP then do this:
Insert this code where you want the ad to appear
<?php include ('incl_adsense.php'); ?>
- where incl_adsense is this file:
<?php
function searchengine(){
$ref = $_SERVER['HTTP_REFERER'];
$SE = array('/search?', 'images.google.', 'web.info.com', 'search.', 'del.icio.us/search', 'soso.com', '/search/', '.yahoo.');
foreach ($SE as $source) {
if (strpos($ref,$source)!==false) return true;
}
return false;
}
if (function_exists('searchengine')) {
if (searchengine()) {
echo "<script type=\"text/javascript\"><!--
google_ad_client = \"pub-yourcodexxxxxxx\";
/* Banner468x60 11/05 */
google_ad_slot = \"xxxxxxx0212\";
google_ad_width = 468;
google_ad_height = 60;
//--&rt;
</script>
<script type=\"text/javascript\"
src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">
</script>";
} }
?>
- Save Bandwidth:
I find that all these ‘plugins’ tend to slow WordPress down too much at loading, so there is a good case for using this PHP alternative rather than a plugin to hide Adsense from social traffic
- Please notice that where the Google ad script is included in PHP you need to ‘Escape’ all the double quotes – like this: script=”ad text” must be edited to read script=\”ad text\” and change any ‘slanted’ quotes like ‘ and “ to vertical quotes like these
"'
Update on the Update
This post is getting way too complicated. I have been asked to upgrade these codes to display an alternative ad to social traffic, so I have made a new post over on my Teaching Blog
CONTINUED…….
There is plenty of authority for hiding your ads from social traffic so you can increase your adsense CTR (from Grizzly’s Make Money Online Blog) and not have a lot of “views” that won’t ever get clicked. Here’s a direct quote from Vic Franqui; “One last thing – if you get a lot of social media traffic don’t run adsense. Only use adsense if you draw targeted search engine traffic”.
- How It’s Done.
So now you can run Adsense even if you get masses of Social traffic – If you run a WordPress blog you can use the ozh who sees ads plugin, but there is no easy plugin for Blogger or your normal website, so I have made up some JavaScript to use anywhere you want to show your ad to search traffic.
- Wrap the ad in an “iframe”
Some ads like Amazon have the code already wrapped in an iframe, so all you need do is wrap this (green) Script, around your ad code (red). The script detects if the referrer is Google, Yahoo, etc and displays the ad.
<script type="text/javascript">
<!––
var myArray = [];
myArray[0]= '/search?';
myArray[1]= '.yahoo.';
myArray[2]= 'search.';
myArray[3]= '/search/';
myArray[4]= 'images.google.';
for(var i=0;
i<5;
i++) {
if (document.referrer.indexOf(myArray[i]) > -1)
{
//––>
document.write('<iframe src="http://rcm.amazon.com/e/cm?t=youraccount-20&o=1&p=26&l=ur1&category=computers_accesories&banner=1SKRXV416ZYVKCEGXQR2&f=ifr" width="468" height="60" scrolling="no" border="0" marginwidth="0" style="border:none;" frameborder="0"></iframe>');
}}
</script>
Substitute your ad code for the code in red above. This will work with any code that is completely wrapped in an iframe.
- Display Google Adsense
This can be a problem because Blogger, for instance, will overide some scripts you include. The answer is to source the Adsense code from an outside file. Pop your Adsense ad in a plain html file (adsense.htm); upload it to some place you can access; and call it as the source (src) of an iframe -
<script type="text/javascript">
<!––
var myArray = [];
myArray[0]= '/search?';
myArray[1]= '.yahoo.';
myArray[2]= 'search.';
myArray[3]= '/search/';
myArray[4]= 'images.google.';
for(var i=0;
i<5;
i++) {
if (document.referrer.indexOf(myArray[i]) > -1)
{
//––>
document.write('<iframe scrolling="no" style="width:125px;height:125px;" frameborder="0" src="http://YourSite.com/adsense.htm" marginheight="0" marginwidth="0"></iframe>');
}}
</script>
Edit the above URL (dark red text) to point to where you uploaded your adsense.htm file, and adjust the width, height to match your Adsense ad
- Just Copy and Paste
There you go – paste one of the above sets of script into your web page wherever you want the ad to appear. With Blogger, use an HTML/JavaScript Gadget, or else paste it directly into the HTML template in your header if you prefer.
- Try it and See for Yourself…..
Click on Site Synergy with Keyword Coherence for my Key Word Coherence site and you will see no ads, but Google (or Yahoo) for keywordcoherence and click on the SERP link to that same site and you will see that a banner ad in the header from Amazon and a Google ad in the side bar have appeared, because the referrer was a search engine.
- Tips to the Wise….
Be sure to edit the iframe dimensions to match your ad and check that your edit program paste function didn’t put left and right quotes into the script instead of plain quotes. Get that right and you will have learned how to hide Adsense from social traffic!
| Tweet |


[...] How To Hide Adsense From Social Traffic [...]
My goodness, that seems like a lot of work, though it’s probably not. I guess I don’t worry all that much about the type of traffic I’m getting for my blogs, as long as I get the traffic, and I don’t get many clicks there anyway. I tend to get more Adsense clicks from some of my other websites, which are drawing people specifically looking for that stuff; thank goodness.
Mitch´s last blog post..What Makes Twitter Interesting
Reply to MitchHi Mitch
You said; “…..which are drawing people specifically looking for that stuff”. You nailed it right there! That’s exactly what this script is all about, ’cause social traffic waters down your CTR and can cost you lots if you get “smart priced”.
Thanks for dropping in!
Reply to RhysBtw Rhys, i have to say it’s a pretty neat tactic. I actually recently realized that most of the social Traffic doesn’t bring any ad revenue at all. I hope this will be my CTR solution
Reply to Hosting | John AldenHosting | John Alden´s last [type] ..Response cached until Thu 12 @ 14:25 GMT (Refreshes in 23.68 Hours)
Thanks a lot Rhys. I’ve been looking to improve my CTR on AdSense for the past few weeks. I’ll try this now
Reply to Web Tasarım | John AldenLearned something new here. Thanks!
Salwa´s last blog post..Three Keys To Successful Goal Settings
Reply to SalwaThis is interesting. It is normally more difficult to get traffic from Social Media to click on the adsense therefore greatly reducing the CTR. With this code, bloggers might be able to make a little more income. Thanks for the share.
Wei Liang
ABloggerBlog´s last blog post..Lesson 13: Copywriting skills – How To Write The First Sentence
Reply to ABloggerBlogGidday Wei!
It is exactly that difficulty that this script helps to overcome. I hope your CTR will improve accordingly.
Reply to RhysNow this is sweet! I’m saving it if I ever go back to using adsense
Dennis Edell´s last blog post..Are You Like Jack?
Reply to Dennis EdellCan you show me how to subscribe to your feed via email?
Dennis Edell´s last blog post..Are You Like Jack?
Reply to Dennis EdellHi Dennis -
Nice to see you again, of course the script works with anything, not just Adsense……
Reply to Rhys@Dennis
Same answer as for my other blog at WeBlog I will set up an auto adviser and you should get notification automatically.
Reply to RhysLearn something new everyday, Thanks for the Tip!
Larry´s last blog post..Tips On Writing Amazing Blogs
Reply to LarryMy goodness you really know your stuff, Rhys. I hate social traffic as it always causes some issues with my hosting whenever stumble traffic invades my blog. It’s time to move to VPS now..
Anyway, good to see you, Rhys..
Yan
Blog for Beginners´s last blog post..Ask My Readers #1
Reply to Blog for Beginners@ Yan!
Good Morning to you too. Thanks for dropping by.
BTW. I give you 10/10 for courage with your latest post (AskMy Read…..), and I suspect it will produce real gold in ‘feedback’.
Reply to RhysTheir are many ways to hide adsense, you can just implement the referer detection in your php-code directly. This way it is even more controlable..
mcguillan´s last blog post..Backlinkgeil – Oder Spammen statt Kommentieren
Reply to mcguillan@mcquillan
Indeed PHP is good, I use php on this blog to do just that, but the point of this particular script was to use a client-side script, rather than a server-side script because it is much easier for those ‘copy and paste’ users, and it works on Blogger, etc, where there are blocking codes that prevent server-side scripts working.
Rhys´s last blog post..How To Hide Adsense From Social Traffic
Reply to RhysBizBlog » Blog Archive » How To Hide Adsense From Social Traffic…
Discover How To Hide Adsense From Social Traffic and so prevent your Adsense rewards getting ‘Smart Priced” by Google.
Social sites like Stumbleupon can send you lots of traffic, but statistically it doesn’t ‘convert’ and you CTR can drop very …
Hello
its nice trick
but i think its much better to do it in php
smth like that:
if (traffic form serps or $_COOKIE['myads']) {
Reply to moshshow ads;
put or update $_COOKIE['myads'] timelife;
}
I love the ozh who sees ads plugin that I use on my word press blog. But I also have a Blogger site & this post of yours was exactly what I was looking for! Unfortunately, so far I just can’t quite figure out how to get an htm file of my adsense code onto my server so I can point to it in your code here for my blogger site.
central coast california real estate´s last blog post..Santa Barbara Homes for Sale
Reply to central coast california real estateHi Centralcoast……
Do a search for free
uploadhosting and choose one that suits you; ortry this onepick one off this list here:http://www.geekuploads.com/index.php(Free upload sites are NOT suitable)
Edited 11th Feb 09 –
Reply to RhysThis is an awesome post. Thanks for the blogger code. This should be a huge help. Social traffic sucks and most of my sites don’t get it, but its still a nice chunk of code to add when you need it.
Chewbacca´s last blog post..Get backlinks that are strong
Reply to ChewbaccaHi Chewbacca -
I know it’s hard to find functional code for Blogger, so I’m happy to be of help.
I endorse your point that we ought to “get backlinks that are strong“!
Rhys´s last blog post..CommentLuv Guarantees Premium Keyword Backlinks
Reply to Rhys@CCCRE(above)
Whoops, Word Press edit tool suppressed the second hyphen in the comment code of the posted script, so it looked like this <!–
instead of this <!––
It is now corrected – Rhys
Reply to RhysThanks for the correction! This is awesome! I inserted your code on my Blogger blog, and its working like a charm!
There is no other place on the internet (trust me, I searched!) where you can get a free code for this function to use on Blogger. What a valuable tool! Anyone on Blogger who wants to increase their CTR and has social traffic absolutely needs to have this! Thanks for putting this together, Rhys, and thank you for your personal attention and help to me! You rock!
central coast california real estate´s last blog post..Central Coast California Home Loans
Reply to central coast california real estateWow, it’s a nice idea to show ads just for search engines traffic. I’ve tried to block ads for some social networks before but this way is much broader. I’ll try it on 1 of my blogs.
webkinz´s last blog post..Virtual Images for January Webkinz 2009
Reply to webkinzWow – I’ve never heard of this before! I had no idea that you should hide AdSense from some visitors, let alone how to do it. I’m happy I ran across your blog, and I’ll have to look into implementing this tip. Thanks!
Adventurous Wench´s last blog post..So there we were.. power lounging at White Bay
Reply to Adventurous Wenchsounds interesting and seems to be a nice trick.
Reply to SeawardSTUMBLED!
This is a great idea. Thanks for the idea and code.
Geoserv´s last blog post..Where’s my Pagerank?
Reply to GeoservUpon reading this, I realized my site is a ‘victim’ of social traffic. My adsense impression is high but the CTR is a nightmare. Mine is a static website (not blog) and I use PHP. Can anyone show me the PHP code to do this stuff? I prefer to use PHP if somebody can show me the code.
Great article indeed!
Reply to KC Concepcion@KC Concepcion
Funny you should ask – I originally coded this in PHP, but went to JS because it suited all the bloggers.
I have updated the post with the relevant code attached.
Hope this helps – Rhys
Reply to Rhys@Rhys
Sir thank you very much, it’s really a big help for a newbie like me. More power and God Bless..
Reply to KC ConcepcionHi Rhys,
I’d forgotten you’d done this then saw your comment in Griz’s with the link.
I’ve been using the ozh who sees ads on my WP sites but had to swallow the social traffic on my blogspots and static sites and even withhold adsense on some, so this is a really useful piece of code for me.
Thanks man!
Terry Didcott
Reply to Make Money Online with SEO@ Terry -
You’re very welcome – we keep that ‘smart pricing’ at bay – Right?
Rhys´s last blog post..CommentLuv Guarantees Premium Keyword Backlinks
Reply to Rhys[...] writing much of this post, I came across an alternative solution from Rhys, which places Adsense within an IFrame. This gets around the problems mentioned above and should allow you to use the HTML/JavaScript [...]
Hi Rhys,
Greetings from Brisbane…
Just finished the post I’ve been working on for a couple of weeks on how to show ads only to search visitors on Blogger (after reading Grizzly’s post).
I use a different method from the one you show above – your method is much simpler, but I’m a bit worried about the IFrames and relevency of the ads. From your Blogger site, the ads look relevant, but I’d be interested in hearing your thoughts on this!
Anyway, thanks and take care.
Stephen Cronin´s last blog post..Blogger – How To Add Adsense Inside Single Posts Only
Reply to Stephen CroninHi Stephen!
Return greetings from Sth Australia.
I was encouraged to use iFrames when I noticed that Amazon do. (Figured they were likely to know what they were doing!)
The Adsense server draws its info from the page that invokes it, so the iFrame surround will not compromise the relevance.
This is a really simple code-set, very suitable for Bloggers who generally tend to be non-geek.
– Rhys
BTW, it works for any ads, not just Adsense, there is some value in NOT hitting your core readers with advertising.
Reply to RhysI know it’s hard to find functional code for Blogger, so I’m happy to be of help.
I endorse your point that we ought to “get backlinks that are strong“!
Reply to psychologHi Rhys,
I just responded to your comment on my post, but I’ll paste the crux of it here:
Anyway, your method is much simpler and it seems to work, so I’m happy to recommend it.
Best of luck for 2009 and I’m sure I’ll see you around more (I lurk on Grizzly’s blogs, but don’t comment much).
Cheers,
Stephen
Stephen Cronin´s last blog post..Blogger – How To Add Adsense Inside Single Posts Only
Reply to Stephen CroninGreat tip. Most people never bother making code for blogger they always make it for wordpress. I wonder if not showing ads on image search would increase earnings also. I do not think they click many ads so it would be interesting to see if you earn more not showing ads when someone finds site from image search.
High yeild savings´s last blog post..Best high yield certificate of deposit rates.
Reply to High yeild savingsThis is the perfect solution to using WP-Super-Cache on your wordpress blog. Super Cache is incompatible with the Who Sees Ads plugin as it creates completely static pages with no ability to use PHP on the fly. Letting JavaScript do the work will keep the pages cached and static, but still enable ads to be shown only to search engine visitors.
Aaron´s last blog post..Finding Cheap Airfare
Reply to Aaron@High yield savings
Very interesting point: I haven’t actively considered that before, but had wondered about some of my sites where there is a lot of Google Image searches showing on the stats.
There is an easy cure – delete [or comment out] this line from the code:
“myArray[4]= ‘images.google.’;”
@Aaron
Perhaps you could put up a post about that for the benefit of other WP-Super-Cache users
Reply to RhysWill this put your adsense account in risk?
Is it considered editing the code?
I already lost my BH adsense account and don’t want to risk my WH adsense account getting banned haha.
Reply to AnonymousTried this with geocities, didn’t work. Tried the link you suggested, geekuploads, but they didn’t allow uploading htm files
Any other suggestions where I can upload? I use blogger and don’t really have my own website.
Reply to JYES I have seen few other guys doing that Trick of hiding AdSense from Social Media Sites traffic.
Shanker Bakshi´s last blog post..Twitter Limits Following to 2000 People
Reply to Shanker Bakshi@ Anonymouse
The code is not changed in any material way.
@J
How in the Heck am I supposed to respond to your question if you don’t put your e-mail address??
However, for the benefit of other users, here goes:
I tried all the free file upload sites and none of them are any good, they either don’t allow hot-linking, or they ban files with html or php.
Answer = sign up with a Free Hosting site (I used awardspace.com with no problems); upload your Adsense ad file, and link to it from Blogger.
It takes maybe half an hour to set it up, but you have got a free permanent site you can use to store files online, and host anything you want!
Reply to RhysHi Rhys,
Is it possible to add a ‘else’ statement to the code above (the javascript one) so if the traffic is not from search engine, we can show the visitor another CPM graphic ads or any other stuffs?
I want to show my regular user something else instead of blank spot at the headline (where the ads reside).
Ken´s last blog post..White Elegant Miseal Mini Palm Sized Projector
Reply to KenHi Rhys,
I added something similar(php) on my blog and I’m getting better CPC since then. Like Ken mentioned, a “else” would be nice to show an affiliate banners. Btw, the code I had was different than yours but in the end, it works.
You can use that tip in one of the theme included in MyStarterBlog. Just modified one to your taste. You could have incl_adsense_468_60.php, incl_adsense_300_250.php
Nice of you to show a Javascript alternative of the code.
Steve McGrath´s last blog post..My Alternative to WordPress, Joomla, Blogger…: MyStarterBlog
Reply to Steve McGrathThrough comments Rhys, ’cause I have tons of emails and rarely stick to one. But if you insist lol
BTW, which one would you recommend? Iframe or php?
Would this affect the ad relevance at all if I use iframe?
Currently using PHP method and I get the same ads.
And is this all legal with google? Just started making money from adsense and I don’t want my precious $8 bucks(haha sad I know) a day getting banned.
Oh and I actually feel less like a sleezebag when I get links from do follow comments, because the ads are going to be hidden when they click on my site to check LMAO.
Reply to J@J
PHP is good.
I don’t find any specific reference in G’s TOS, but the ‘spirit’ of this script is good – after all the effect is to display Adsense ONLY to search traffic -can’t ask for better than that!
Reply to Rhys@Ken -
Great idea – I’ll have a play with that tomorrow when I wake up.
Reply to RhysHi Rhys!
Looking forward to your ‘play’ since I don’t understand javascript.
One more feature that pretty important is to add cookie to the searcher who found our site through search engine. Stephen Cronin at his post about Avoiding smart pricing has the solution but too bad it’s PHP driven, which mean if you are using cache plugin, it won’t function properly (correct me if I’m wrong).
Most of user have around 2 pageviews per visit, which mean it’s kind of leaving the money on the table to only displaying ads in the first page while user will leave the page after browsing for awhile…
Ken´s last blog post..GScreen Intros New Dual Screen Laptop
Reply to Ken@Ken
and Goldurn it! You are raising un-ignorable issues here. I totally agree with your points; So I guess I have to address them.
I have done two sets of code, JavaScript and PHP. You will find them here on my teaching Blog.
Both Scripts will display an Adsense ad to Search Traffic and an alternative banner to Social Traffic;
Enjoy
Reply to RhysI really enjoy it! Thanks Rhys!
Btw, the link is not working, [edit = now fixed - Rhys]I was using the “view page source” to get the link to your How to hide adsense post.
Again, thanks for your hard work to code for us! Really appreciate it.
Ken´s last blog post..Acer X960 and Acer DX650 VGA HSDPA Smartphone Leaked
Reply to KenThis is a very helpful. I don’t necessarily need to use this for adsense but I had other things I want to show or not show based on where someone comes from. Mainly I am concerned about showing pictures and other content on a site I have. I’m not a great computer program but I may be able to sue what you have here to solve my problem.
Thanks!
JD´s last blog post..Australia’s Kwongan Heathland
Reply to JD@JD
You are on to it! You can adapt this code to display whatever to whomever – just change the referrer criteria to whatever you like………..
Reply to Rhys[...] something interesting and I think it would be a great share here. There is a tips that I found it here to show adsense using javascript to search engine traffic which have a good CTR, and hide them from [...]
hello i try to use your code but i get some error maybe smart quote issue i am not sure can you please help me i have got tons of traffic from google image search i want traffic but i do not want to show adssense ads so is it possible to get code without smart code issue
jessica mcbrown´s last blog post..did elisabeth hasselbeck have her baby
Reply to jessica mcbrownGreat post!
I’ve been looking for this for some time now! Some good way to do this. Another solutuon would be by doing it in the backend in php for instance, but this works just as well probably
Anyways, thanks again.
Keep ehm coming
Adsense Tips´s last blog post..Simple Trick that can Double your adSense CTR
Reply to Adsense Tips@Jessica
Here is the code with the smart quotes removed and edited to hide the ads from Google Images. Copy and paste it to your page.
<script type="text/javascript">
<!–
var myArray = [];
myArray[0]= '/search?';
myArray[1]= '.yahoo.';
myArray[2]= 'search.';
myArray[3]= '/search/';
for(var i=0;
i<4;
i++) {
if (document.referrer.indexOf(myArray[i]) > -1)
{
//–>
document.write('<iframe src="http://rcm.amazon.com/e/cm?t=youraccount-20&o=1&p=26&l=ur1&category=computers_accesories&banner=1SKRXV416ZYVKCEGXQR2&f=ifr" width="468" height="60" scrolling="no" border="0" marginwidth="0" style="border:none;" frameborder="0"></iframe>');
}}
</script>
P.S., Don’t forget to change the ad code to your own ad code!
Rhys´s last blog post..CommentLuv Guarantees Premium Keyword Backlinks
Reply to RhysThat is a great idea. I wonder how it effects ads shown on site if they are in a frame. Could you make ads show different ones than keywords on page they are shown.
Black mold removal´s last blog post..Mold removal.
Reply to Black mold removalI wonder if putting ads in iframe would effect ads shown. How does it know what keywordds or ads to show.
freestuff´s last blog post..Freeloans
Reply to freestuffIt is normally more difficult to get traffic from Social Media to click on the adsense therefore greatly reducing the CTR..i thnk PHP is good… I use php on my blog and in my website also..
Reply to Kawasaki motorcycles@Freestuff
the ad is triggered by the calling page, not the iFrame, so the content is relevant to the page that called it!
Reply to RhysHi
Well I´ve a few blogger blogs and this code is usefull for that purpose.
I will try on other free blogging plataforms if it works ..
Cumps
Ganhar Dinheiro Net´s last blog post..Ganhar Dinheiro Facil na Internet
Reply to Ganhar Dinheiro NetI did not know you could show adsense in frames. Sounds like a great idea to show ads to the traffic type you want.
Reply to T1 internetRevelation. You are great for me!
Reply to EgiptNever knew this was possible. Thanks for the information.
Reply to BroadbandHello:
I think this is a good idea. I hope after you provide us with more information. Thanks for the idea and code.
Reply to WuhanYou should show your adds to as much traffic as possible, limiting adds would just your overall income.
At the last Google Adsense online live chat I asked the experts about this and they pretty much said your just hurting yourself by not showing adds as much as possible.
Though it is true the ppc is slightly higher for people coming directly from search you will lose in the end with just less clicks and less revenue at the end of the day.
The advice they gave was show as many adds as possible to make the most money.
FriendTek.com´s last blog post..Tell Me Why Anchor Text Is Influential To Getting Organic Traffic?
Reply to FriendTek.com@FriendTek
Of course they would advise showing it to all, that is their vested interest. What we are advocating here is NOT showing it to social traffic that doesn’t ‘click’ because if your CTR is too low you will get SMART PRICED!
Enough of us have tested this theory to prove it works. What is the use of going for a few more clicks from social traffic if your return per click drops to one or two cents? My returns now range from 25 cents to $2+ per click since I put this in place. Try it before you knock it. The bottom line is revenue, not clicks.
Rhys´s last blog post..Monetize Your Site
Reply to RhysGreat article. Thanks for making the code for both wordpress and blogger. I have a old blogger blog with adsense and i think it is smart priced because of some of the traffic. I have to try it because it seems to make alot of sense.
Phone service´s last blog post..Broadband phone voip service.
Reply to Phone servicevery interesting info, t
Reply to ovario poliquisticohank you for sharing with us
This is nice post. When I search in google using term “biznz.org” with Internet Explorer, I see the adsense here. But, if I try to search “biznz.org” in google using Mozila, I do not see the adsense here.
I think the script works only in IE, but not in Mozila. Is it right? I really thanks if someone can give me the script that can works in IE and Mozila.
Reply to TedyHi Tedy
The code works with search engines only, that is the purpose of it. If you search for a keyword off my site: E.G, “How To Hide Adsense From Social Traffic” using the Mozilla search bar, you will get biznz.org listed as 1 on the SERP, which when clicked, will display the ad. This works AOK, and is the intended use of the code. Typing in a URL [biznz.org] defeats the purpose of the code.
Anyone searching br URL wouldn’t be shown the ad because we are trying not to display it to anyone except keyword searchers.
Reply to RhysGreat post. Most people never realize how they get smart priced let alone how to stop it. I like the fact you tell them about social sites everyone thinks they help make more money but sometimes they hurt. Just shows you search traffic is always the best traffic.
Best etf funds list´s last blog post..Gold etf.
Reply to Best etf funds listhey, great post. I have noticed my ctr is not near as good from social sites
Reply to caleb34Great trick, and one that’s easy enough to implement that even I may be able to handle it
Thanks for posting this!
Lee
Lee, Blogger’s Workshop´s last blog post..Does Your Blog Educate and Entertain?
Reply to Lee, Blogger's WorkshopI love the ozh who sees ads plugin that I use on my word press blog. But I also have a Blogger site & this post of yours was exactly what I was looking for!
daily cell phone news´s last blog post..Smartparts 8″ LCD Picture Frame
Reply to daily cell phone newsThis is a very good idea. higher CTR from adsense will be achieved if you hide your ads like you have outlined. Thank you for the read.
Reply to Market TimingToday there are several ways to get traffic to your website. Social media traffic is one of them does traffic from stumbleupon, facebook, myspace, digg etc will help convert better for affiliate marketing.
Reply to Used MachineryI did not know you could show adsense in frames. Sounds like a great idea to show ads to the traffic type you want.
Reply to Tanie bilety lotniczeThe script doesn’t apear on my blog.
I don’t know were the mystakes is.
Ruud´s last blog post..DIARREAS EN NIÑOS MENORES DE 5 AÑOS
Reply to RuudGreat post. I have to try this i get alot of image traffic and have low ctr. I seen some sites that have adsense ads for search terms that people go to site for how do they make that work. Site could be about baking but found in google for ovens and shows ads for oven not sure how they do it it seems like more people would click on the ads related to search they found site with.
powertools´s last blog post..Router bits.
Reply to powertoolsGreat idea. I seen earings go down when i subitted to social traffic sites so this makes alot of sense. I will try the codes you use thanks i like the fact you show how to do it.
Reply to Radon testingVery interesting article and idea – increase CTR!
Reply to wakacjeThis looks like a good idea. I know some traffic has very low click thru rates and it does hurt your earnings. I have to try the codes for social and image sites and see how it effects my click thru rates and earnings. Thanks i never seen the codes for this before.
digital photography´s last blog post..Free photo and photography sites
Reply to digital photographyThanks i will have to see if this works. I know i was getting low paid ads on site and looked at ads and blocked them so far. It works good and i earn more but this sounds easier than looking at what ads all the time.
freebees´s last blog post..datingservices
Reply to freebeesI think you must show your add as much as possible, because more people will click. Increasing CTR with letting less people to see your ad it is not a good idea in my opinion.
Reply to premier cosmeticsThat sounds like a good idea. I have to find some place i can use for the code that allows it. Blogger will not so i need to find a free place that lets me call the ad up and loads fast.
exon mobil´s last blog post..Ford motor company stock.
Reply to exon mobilThanks for the info, was looking for something like this.
Reply to Webkinz CodesI’m wondering why you prevent hiding adsense from social traffic hence it doesn’t ask money from the site owner when displaying the adsense.
I guess this would be favorable to Adwords since every click is money!
Cathy from How To Make Money Fast Online´s last blog post..Free Twitter Guide – Step by Step Money Making Formula
Reply to Cathy from How To Make Money Fast OnlineI like this idea. I see code for blogspot but not sure they work on that blog. I know they are hard to add scripts or change things so i might try it on a site just to see how it works. WordPress it works great on and ctr will go up so earnings should go up also.
houston web hosting´s last blog post..cheap web hosting uk
Reply to houston web hostingThanks i will have to try this code. I do see some traffic from social sites and it does not convert. This sounds like it will help click thru rate alot.
Reply to datingservicesThanks for the code for blogger i have to try it. I know some codes do not work on some of the blogger templates so i will see if this one does. Not sure why some work and others do not it seems to depend on the template you choose.
Reply to freeloanDoesn’t placing iframe around the ads put your adsense account at risk? Don’t want Adsense to terminate my account… I myself am struggling with low ctr because I get often found through image search. Contemplating on using your code. It works on a regular website and not just Blogger/Wordpress, right? Thanks for your article!
Reply to AnnaHi Anna -
The ‘spirit’ of the TOS is not compromised by using this iFrame, and there have been no reports of G getting upset about it.
Use this code on any HTML page!
Reply to RhysThanks i have to try this idea. I seen some people say searches from certain countries also lower earnings. I know some use a script or code like this to not show ads to certain countries so thier click thru rate is higher.
Reply to coolsitesThanks that is a good tip. I did not know you could put adsense in a frame and it would still show ads related to site.
Reply to shopping sitesIs the code above intended to hide adsense from Social Traffic applicable for blogspot platform?
Reply to Cathy from Make Money Online@ Cathy, Yep – Read the post – (Display Google Adsense)
Reply to RhysThanks for the codes. I have a site i used adsense on and it never paid me much. I did notice most traffic was not search engines so it sounds like that is the reason earnings where so low. I will have to try your idea and see if it helps my earnings.
Reply to Make money with paypalI’m not really sure why you would want to remove adsense from social media traffic. Don’t you want those clicks too?
Reply to Brad Dohack@Brad –
The logic is simple – search traffic is motivated: therefore likely to click an ad – social traffic is just that, social, just looking to be entertained.
Reply to RhysResearch shows that social traffic doesn’t click ads; and also that Adsense penalises you with smart pricing for low quality traffic.
@Rhys: You don’t seem to understand what Tedy was tring to make you see when he said “When I search in google using term “biznz.org” with Internet Explorer, I see the adsense here. But, if I try to search “biznz.org” in google using Mozila, I do not see the adsense here.”
Reply to Udegbunam ChukwudiThis is not a keyword issue but one that has to do with the browsers. Some browsers simply don’t support the script version. I keep my fingers crossed and await a solution from Stephen Cronin, RT Cunningham or you, that makes the php version compatible with cache plug-ins.
Have a nice day and keep up the good work.
@Udegbunam – Greetings to you, and thank you for asking about this.
This script is DESIGNED to work for search queries, and it does, with the IE, Yahoo, and Live(Bing) search bars, in both IE and Firefox.
When I test search for the LTK term “How to Get Listed Twice in the Top Ten SERPs” it works perfectly; I.E., Shows BizBlog » Blog Archive » How to Get Listed Twice in the Top Ten SERPs as No 1 on the SERP and when that result is clicked, the ad is displayed.
The error here by Tedy is in the fundamental premise: “When I search in google using term “biznz.org”. It does not, and was designed not to work by typing URLs in the search bar
The logic here is to detect focussed “search” traffic and to display relevant ads to it; but not to display ads to traffic arriving via URL: And I’m very happy that it does exactly that. The page Google lists as #1 in the SERP will be one most relevant to the Keyword being searched for; Adsense will display ads only relevant to that keyword term; the searcher will see ads pertaining only to the Key term (s)he searched for – Viola! – success.
Reply to RhysThanks for amking the code so you can use it on any site. I have to see how this works and if it does make a difference.
Reply to Best websitesThis sounds like a great way to only shows ads when you want. I wonder why google does not have setting that lets you choose to show ads like this. Thanks i will have to try the code you made it looks good to me.
Reply to Movie downloadsI ve made all you said, but my banner doesnt appear, i have to go to the blogger adsense wadget!
CAn you give me a clue?
My htm is in the
http://galeon.com/polzic/adsense.htm
and in that location it works!!!
Reply to PolzicCan’t see any Hide Adsense code in the page code for site http://legosargentina.blogspot.com/.
Where are you actually putting the code to display the HTML?
Reply to RhysThanks for sharing, I never thought social traffic is bad for adsense before
Reply to DaveThis looks great although I’ve yet to implement it on my blog, I think it’s good considering it’ll annoy less people because Ads can take time sometimes to load pages so it’s good for everyone if you can hide it and show it only to certain audience so you get clicks as well.
Thank you, I may try it out soon.
Reply to workers compensation Las VegasGreat info. Just want to share for blogger platform user, the scrpt can be parse to make available on blogspot. html parser can be found at http://www.blogcrowds.com/resources/parse_html.php
Reply to Ireland Money Online.-= Ireland Money Online´s last blog ..Make money with paid online surveys =-.
How can I cancel my google adsense account and start all over with different name but the same web site? It’s all because I’ve had this google adsense account for more than 2 years and the traffic to my website is quite good.
Reply to kissing bears baskets.-= kissing bears baskets´s last blog ..celebrations with bears baskets =-.
Hey Rhys,
It feels good to see a lot of traffic in which social media’s traffic is also merged.
But you cannot consider as a business point of view. traffic is good, but on minutely going through every detail the real clicks are almost half in my case.
Using your programming that you’ve showed above I can get a clear picture about it.
Thanks for posting it.
Reply to Make Quick MoneyHi Rhys,
Reply to Bratwurst RecipesYou do have great info here.
Thanks for the blogger code, I am sure this will be very helpful.
Thanks for sharing!
WTF! I’ve been looking and get nothing from other websites. A great find here. I hope I can improve my Adsense earnings with this tip. Keep it up sir!
Reply to Oes Tsetnoc.-= Oes Tsetnoc´s last blog ..Google is Not Visiting This Site Anymore =-.
This is great script! I made some modifications and now I only show ads to unregistered users of my forum
Reply to gry planszowe.-= gry planszowe´s last blog ..Wiochmen Rejser =-.
Wow!!Great thought on this post with have a nice info.IT is really nice sharing….
Reply to kirra apartmentsThe script doesn’t apear on my blog.
Reply to Teknoloji haberleriI don’t know were the mystakes is.
I have looked at your page code, and there is no script showing in there. Blogger (G) will delete anything it doesn’t like. You need to pay particular attention to the Blogger install instructions or it will not work.
– Rhys
Reply to Rhysthank you for this interesting info. i was looking for something like this.
Reply to sinusitisi enjoy reading your blog
.-= sinusitis´s last blog ..Tualergia.com: nueva tienda online para alérgicos =-.
Build Website Traffic Knoxville Aug 12, 2009 Let’s take a quick look at how to generate Social Media Traffic . top search engine results is not the only way to drive more traffic to your website. It’s very important to be the first to write about the latest.
Reply to kirra apartments@Kirra –
I prefer to write about the techniques, keyword optimisation and design elements, for instance, that make a functional website.
The writer you quote is recommending milking social traffic sites and then trying to convert the traffic to either buy or repeat. That is the kind of thing the ‘A-listers’ tell
the suckerstheir followers to do.I hope to give my readers stuff they can use to build solid traffic; things that will give their sites real growth.
– Rhys
Reply to RhysSocial sites like Stumbleupon can send you lots of traffic, but statistically it doesn’t ‘convert’ and you CTR can drop very …
Reply to ClubPenguinCheatsthis is great technique, specially now a day there a lot of blogger who are earning from ad sense
Reply to sikatang pinoy.-= sikatang pinoy´s last blog ..Pacquiao vs. Mayweather Hindi na Tuloy! =-.
Thanks for sharing, I never thought social traffic is bad for adsense before
Reply to credito rapidoi enjoy reading your blog
Nice idea! I will try this on my blog. I just realized that you can increase your adsense CTR if the visitor comes from a search engine. Thanks for the Tip!
Reply to Pinoy Hugs.-= Pinoy Hugs´s last blog ..Halalan 2010 sa Facebook (Pilipino Ako! Boboto sa Tamang Kandidato) =-.
Now, I know how to increase my decreasing CTR. However, may I ask is this method is not violating Google Adsense TOS?
Reply to Pacquiao.-= Pacquiao´s last blog ..Clottey Will Not Run Around on Pacquiao vs. Clottey Event =-.
@Pacquiao
This is why you should read the comments – this is answered at least twice above
– Rhys
Reply to RhysI’ve been looking for a solution for that for a long time. Thank you for making the codes available to us.
Reply to TDAHI just realized that you can increase your adsense CTR if the visitor comes from a search engine. Another thing, We use php on our blog to do just that, but the point of that particular script was to use a client-side script, rather than a server-side script because it is much easier for those ‘copy and paste’ users, and it works on Blogger, etc, where there are blocking codes that prevent server-side scripts working.
Reply to Mayweather-Mosley.-= Mayweather-Mosley´s last blog ..‘Look Of Love’ – Mayweather and Mosley pair of gagsters =-.
Is there a WordPress plugin which will do this for you rather than having to mess around with this code? This may be beyond a lot of people though I appreciate the reasons for doing it.
Reply to What Is Traffic Ultimatumwow nice code, I have learn more about the code in your site, keep it up, please give me more info about the ad sent.
Reply to littlelabster.-= littlelabster´s last blog ..Tips in Oriental rugs stay in long period of time =-.
very Good share,böyle paylaşımların devamını bekliyoruz
Reply to Minibüs Kiralama[Trans by Ed:We expect more of such shares] –
i lke it very much ,and you ?
Reply to cheap true religion brandI had tried to implement your tip once earlier, but I wasn’t fully successful. I mean, the header banner was showing to SE traffic, but the rest of the ads weren’t working accordingly. I’ll try this again because I want to understand this properly.
Reply to Kaushik BiswasThe following link to the ‘Update on the Update’ has an Internal Server Error:
http://weblog.biznz.net/2009/02/13/hide-adsense-from-social-traffic
I’d like to get my hands on some even more brilliant solution from you.
Thanks so much for the code so far!
Regards
S.
Reply to SteveHi Steve -
something ‘et’ the whole post – some evil competitor maybe??
Anyhow, it is good now! –
– Rhys
Reply to RhysYES!! What a gem for sore eyes:)
Thanks for the timely fix.
I was thinking, wouldn’t this work (show ads) only on the first page? If we navigate further, the evaluated referer would not contain a search engine string anymore.
I can’t test it right now but if I am right, maybe adding the site’s domain to the array would aleviate this (social traffic doesn’t usually navigate deeper).
Reply to SteveThis script work just fine thanks for information. bye
Reply to Web designThat’s a good and informative post.Thank you for the information …. and now my knowledge increases. Keep blogging.
Reply to cctv.-= cctv´s last blog ..Revolution in CCTV Equipment =-.
Cool techique, we all know that social traffic and adsense don’t work. so why not hide the ads?
Reply to Satellite MeterYeah this is the kind of great info we like to find when searching for ways to improve our blogs.
Reply to Tjen PengerI wasn’t even aware of this issue with adsense and social media traffic. Thanks for the heads up!
.-= Tjen Penger´s last blog ..Åhoi så mye penger du kan tjene! NOT!!! Hold dere unna GDI. =-.
Cool tutorials.Traffic from social media it not really targeted compared to Search Engine this will help a lot for your adsense account and for the advertiser
Reply to Kaiser.-= Kaiser´s last blog ..Free Text to Philippines Using Facebook ChikkaLite Application =-.
The reason why to block ads is just logic.. I had doubt before why should I hide the ads, but to be honest, after reading this post, I would want to re-think again about hiding ads to social traffic. Thanks pal
Reply to Tioman.-= Tioman´s last blog ..What is Tioman =-.
I use a different method from the one you show above – your method is much simpler, but I’m a bit worried about the IFrames and relevency of the ads. From your Blogger site, the ads look relevant, but I’d be interested in hearing your thoughts on this!
Reply to Manny.-= Manny´s last blog ..Pacquiao to Mayweather: I’ll Finish Him =-.
Social Media traffic really sucks on adsense. The conversion rate and Cost per click is really low. Thanks for this tutorial on how to hide those ads. I will try it in my other sites.
Thanks
Reply to NLE results July 2010.-= NLE results July 2010´s last blog ..Top 10: Legendary Female Nurses =-.
The logic is simple – search traffic is motivated: therefore likely to click an ad – social traffic is just that, social, just looking to be entertained.
Reply to IraQlifeResearch shows that social traffic doesn’t click ads; and also that Adsense penalises you with smart pricing for low quality traffic.
.-= IraQlife´s last blog ..ãäÊÏíÇÊ ÇáÑÓÊæãíÉ =-.
Thank you for this blog. Thats all I can say. You most definitely have made this blog into something thats eye opening and important. You clearly know so much about the subject, youve covered so many bases. Great stuff from this part of the internet. Again, thank you for this blog.Thanks Tipster
Reply to TipsterI wonder if not showing ads on image search would increase earnings also. I do not think they click many ads so it would be interesting to see if you earn more not showing ads when someone finds site from image search.
Reply to alergia@Alergia
Interesting question – does anyone have any experience to share??
– Rhys
Reply to Rhys.-= Rhys´s last blog ..The Three Essential Internet Marketing Tools =-.
What is clickable when it comes to adsense? A text link or Image?
Reply to engrape of blogger.-= engrape of blogger´s last blog ..Engrape Financier – An Entry =-.
Goodness gracious.. That’s seems like a lot of work to do… But I got to try this. This should help my blog earn more money.. =)
Reply to Philippines.-= Philippines´s last blog ..Lourdes Grotto, Dapitan, Philippines =-.
I am going to try this script in my blog. It’s new for me. But ok.
Reply to public interest law schoolI mean, the header banner was showing to SE traffic, but the rest of the ads weren’t working accordingly. I’ll try this again because I want to understand this properly.
Reply to fotografia ślubna bielskoneat trick, Rhys, you really know your stuff.I hope this can help me promote my webstie.
Reply to storkclubThis is amazing I kindly apply to my site its works.
Reply to watch pacquiao vs margaritowatch pacquiao vs margarito´s last [type] ..Where is the venue Pacquio vs Margarito
I just went over to your teaching page. This is going to help me out alot. I plan on making more sites and I hate to have to go back to all of them and do this to them.
Reply to SandraThanks – this is very good code. Works perfectly
Now I need only some php code to rotate my Adsense adds
Reply to egiptSocial traffic sucks and most of my sites don’t get it, but its still a nice chunk of code to add when you need it.
Reply to AlergiasAlergias´s last [type] ..Lo que esconde la rinitis alérgica- 10 consecuencias de cuidado
Most of my traffic came from social media sites like FB and I think this code tweak can really help me a lot to increase my earning. Thank you for this.
Reply to Pacquiao vs MargaritoPacquiao vs Margarito´s last [type] ..Pacquiao Now in Baguio City for Intensive Training
I’ve learned a lot of useful thing from this post. Thanks a lot for sharing such an incredible post with us. Keep blogging.
NJ carpet cleaning
Reply to NJ carpet cleaningNJ carpet cleaning´s last [type] ..Service Areas
I found something interesting and I think it would be a great share here. There is a tips that I found it here to show adsense using javascript to search engine traffic which have a good CTR, and hide them from social media traffic.
Reply to seo expertsI would like to know what the best way to hide or spoof my traffic source would be. I don’t want my affiliate managers seeing my traffic and possibly stealing my campaign. Maybe I’m paranoid but It’s earning me some good income right now and I don’t want this ruined…
Reply to pay day loans ukpay day loans uk´s last [type] ..Alternatives to Pay Day Loans – Don’t Just Get In Debt!
This is very good script. I changed it a little and add some different functions like showing different ads type depending of the referer
Thanks!
Reply to defense gamesI just realized that you can increase your adsense CTR if the visitor comes from a search engine. Another thing, We use php on our blog to do just that, but the point of that particular script was to use a client-side script, rather than a server-side script because it is much easier for those ‘copy and paste’ users, and it works on Blogger, etc, where there are blocking codes that prevent server-side scripts working.
Reply to biuro podróży bielskoI found something interesting and I think it would be a great share here. Social traffic sucks and most of my sites don’t get it, but its still a nice chunk of code to add when you need it.
Reply to Rob PoulosRob Poulos´s last [type] ..Rob Poulos Fitness Program Worth It
Usefull article do you mind if i translate into Spanish for my sites visitors? If thats acceptable what type of acknowledgement do you require?
Reply to Quinn MaruyamaHi Quinn -
You are welcome to translate this, so long as you add a link credit in the style of “Translated from BizBlog – Thank you – Rhys
Reply to RhysHappy New Year Rhys.
Been what, almost 2 years since I posted here. Haven’t been banned yet
Had to google it cause I forgot how to do it.
My $8/day is now 80+ and I’m more paranoid than ever lmao
Reply to JHey J!
You are very welcome, glad you could still find us – seems all that SEO stuff actually works!!!
– Rhys
Reply to Rhyshaha yeah, but I think 80/day after 2 years is considered bad by the IM gurus. I’m just happy (and paranoid) that I got to the 4 digit/month range!
Reply to JThese are highly informative and helpful.Thanks for giving us such quality knowledge.Waiting for your next interesting posts.
Reply to eniginenigin´s last [type] ..Enigin’s London Training Course
I use same computer for open adsense account and IP Hide software for create some backlinks. Thanks for the plug! You have written a very clear explanation of Smart Pricing.
Reply to Marble GamesThis is new for me. I am going to try this script in my blog. I want to more details about this…
Reply to UK Dating WebsitesThis is a good idea. I think this code tweak can really help me a lot to increase my earning. I appreciate way of working…
Reply to neon lightsThat is some smart coding will have to try that.
Reply to Great codeI use same computer for open adsense account and IP Hide software for create some backlinks. Great coding here, it is not common to find a blog with some decent information in it.
Reply to tie shopI use same computer for open adsense account and IP Hide software for create some backlinks. Thanks for the plug!
Reply to hats shop for youI just want to say that I know PHP better. I was not aware that I can just do this with the help of your code. Thanks for sharing this.
Reply to p90xI cant hide the adsense on my blog using the code that you gave..:(
Reply to RickyI am sorry if this is already discussed.
I think that the code where you echo adsense is too complicated. Instead, in your php file use this
…….
That’s it
Reply to AshviniNo need to echo all those complicated ad code
Ashvini´s last [type] ..Facebook Vs Google – Its a war out there
Very clever script you have here I would be concerned as to whether it may slow your load speed a touch.
Reply to DerekHello I sincerely cherish your write-up. In the event that you would prefer to chitchat pertaining to it,Iwould like to discuss together with you, my name is Frank. My personal electronic mail is above. Cheers!
Reply to scary halloween costume ideas 2011Great tip. Most people never bother making code for blogger they always make it for wordpress. I wonder if not showing ads on image search would increase earnings also.
Reply to hard disk esternois this applicable this days?
Reply to Watch SwipertvWatch Swipertv´s last [type] ..Nikita Season 2 Episode 5: Looking Glass
@WatchTV
As far as I know, Yes
– Rhys
Reply to RhysThanks for the codes above, I’m searching and I found your blog interesting. This is exactly what I need on how to hide adsense from social traffic.
Many thanks!
Reply to Roseline LainhartRoseline
Roseline Lainhart´s last [type] ..Black Mold Removal
Regarding adsense, people should know whats happening! I am finding that if someone is using Google adsense (say for some months no problem and money increases double month over month) and then they sign up with advertising on Bing – even though Unique visits continues to climb, the adsense clicks suddenly drop by more then 60%!!! Nothing anyone can do I’m sure, which is why and how Google can do this crap, but I wanted to at least let people know what is happening. Its more then scammy its fraudulent! At least one website this is happening too is http://www.BridgeToRussian.com -FYI
Reply to Mr.RussianI can see the post was written a few years ago so I have to wonder if you can apply this same method today and not get into trouble with Google. Do you have a current opinion of the same idea for today?
Reply to Plumber AustinPlumber Austin´s last [type] ..Drain Cleaning
Currently it looks like BlogEngine is the top blogging platform available right now. (from what I’ve read) Is that what you are using on your blog?
Reply to Anne