(OLDER) <- More Stuff -> (NEWER) (NEWEST)
Printer Friendly Version



Google Adsense multiple channel tracking




2006/10/17

Google finally added multiple channel tracking this past Friday. I've complained about their poor tracking tools in the past, and this improvement doesn't answer all my gripes, but it's better than it was before.

Of course now I have to change my page generation code to actually implement these changes. Before multiple channels, you just would say

google_ad_channel = "8338221560";

or whatever. If that ad generated income, that income would be shown against that channel. So I'd have code that says something like:

$mych="8338221560" if $section eq "Linux";

$mych="3459225431" if $section eq "MacOSX";

..

google_ad_channel = "$mych";


But that's not enough. I want to know if the income came from a Linux page, yes, but I also want to know if it came from one of my articles or something written by someone else. And I want to know whether it was an ad at the top of the page or the bottom and so on. With only one ad channel, I could find out any of these things, but I had to choose one and only one.

Well, now I can use up to 5 channel tags. With the new setup, you have a format that specifies multiple channels:



google_ad_channel = "8338221560+2579359968+9929927590+5782134881+5000158698";

So my new code will probably look something like this:

@mych=();

push @mych,"8338221560" if $section eq "Linux";

push @mych,"3459225431" if $section eq "MacOSX";

..

google_ad_channel = "$mych[0]+$mych[1]+$mych[2]+$mych[3]+$mych[4]";


It's a bit irritating that we're limited to 5 channels, but realistically that's probably enough. I've started deploying this already, though I probably don't have it exactly as I want it. Of course you can see the ultimate effects by View Source on any page here.




Click here to add your comments



Don't miss responses! Subscribe to Comments by RSS or by Email

Click here to add your comments


If you want a picture to show with your comment, go get a Gravatar

cartoon


Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Publishing your articles here

Jump to Comments



Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.

Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.

We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.


book graphic unix and linux troubleshooting guide

My Troubleshooting E-Book will show you how to solve tough problems on Linux and Unix systems!



 I sell and support
 Kerio Mail server




pavatar.jpg
More:
       - Web/HTML
       - Advertising


Unix/Linux Consultants

Skills Tests

Guest Post Here











My Favorites

Change Congress