« New Ad Network on the Block - Performancing Partners | Main | How to Get Targetted Traffic for More Adsense Earnings »

Oct19
Adsense Channel Hack to Track Google Search Referrers
Have you been wondering how to finally monitor traffic from Google Search? Here is a php code designed to allow you to track just how well Google search is working for your site:

You have to create a new channel in your Adsense setup first and name it "Google"or maybe "Google Search" or whatever pleases you. Then, the type of ad must be having the same preferences as one of your already existing ad types on your site, you just have to change the channel.
google_logo.gif
Then, include this code to the top of the page where you want to track Google users from.

<?php if (stristr(getenv('HTTP_REFERER'),"google"))
setcookie("Referer", "Google"); ?>

This code sends a cookie to the user's browser to identify the user as Google search referer.

Now, edit your existing ad code. Note the google_ad_channel variable. Copy the google_ad_channel value from the new ad type with Google channel, and paste it here instead of XXXXXXXXXX.

google_ad_channel = "<?php if ($_COOKIE[Referer]=="Google") echo 'XXXXXXXXXX'; else echo 'YYYYYYYYYY'; ?>";

X - new Google google_ad_channel id
Y - old google_ad_channel id

This way you can have a separate channel just for Google refered visitors, and count impressions, clicks and eCPM just for those guys who came to your site searching the web by Google.

via ByteInsider

0 Comments/Trackbacks




submit a trackback

TrackBack URL for this entry:

post a comment

Name, Email Address, and URL are not required fields.





Comment Preview

« New Ad Network on the Block - Performancing Partners | Main | How to Get Targetted Traffic for More Adsense Earnings »

Advertise

Related Resources

sponsored ads



subscribe


Prefer Email?
Subscribe below-

Enter your Email:


Powered by FeedBlitz What's this?

Current News

Support This Blog

blogroll


 


Know More Media - Internet / Ecommerce / Online Business

know more media network

View Network Map

Network Feed List (OPML)

Know More Media Network
Feed


we support unitus

PRWeb

Influencer



OnlineAdSwami is a member of the Know More Media network of business related blogs.

Here are some current headlines from some of our business publications:

ProductivityGoal

CallCenterScript

AdHurl

TheBizofKnowledge


Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 619

Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 620

Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 621

Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 622

Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 737

Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 738

Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 739

Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 740


Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 619

Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 620

Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 621

Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 622

Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 737

Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 738

Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 739

Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 740

HealthCareVox

BrainBasedBusiness


Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 619

Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 620

Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 621

Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 622

Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 737

Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 738

Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 739

Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 740


Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 619

Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 620

Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 621

Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 622

Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 737

Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 738

Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 739

Warning: date() expects parameter 2 to be long, string given in /usr/www/users/chrisycm/kmm-network/includes/rss2html/rss2html.php on line 740