« 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

recent comments

sponsored ads



subscribe


Prefer Email?
Subscribe below-

Enter your Email:


Powered by FeedBlitz What's this?

Current News

Support This Blog

business social media

Use these fast growing business social media sites to promote your business, feature your products, spotlight your business leaders, create links, and drive traffic back to your company site, all for free!

BIZZlogos - Add your logo - free link to your site
BIZZphotos - Add photos of your products and people
BIZZprofiles - Submit your profile and build your online visibility
BIZZspotlight - Spotlight your business with free links
BIZZvideos - Videos about businesses, products and business people.
BIZZbites - "Digg" for Business - Submit your articles and posts

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

LandingTheDeal

CustomersAreAlways

HealthCareVox

BrainBasedBusiness

TheInsurancePolicy

MarketingBlurb