• Home
  • New Entries
  • Popular Entries
  • Submit a Story
  • About

Using Adsense Channels in Wordpress ...

Seeing Sarah’s post this morning on Wordpress Custom Fields got me thinking about how I use custom fields, and in particular how much easier they are to use in Wordpress than back when I used to use Movable Type (I’m sure MT is better now of course). To get a feel for what we used to have to do, go read Using Adsense Channels in Movable Type.

Four years later and I still utilize Adsense Channels in the manner described in that article, however I am now doing it in Wordpress, which is much easier.

Here are the four things I do to leverage Adsense Channels in Wordpress:

1) Install the Get Custom Field Values plugin.

2) Create a custom channel in Adsense for the post I want to track. So that it is easy for me to determine in Google Analytics I label these channels in Google like “post104-baklava” to refer to my recipe page for the World’s Greatest Baklava, for example. On that page I only track one custom channel for all of the Adsense ads on the page. For some pages I do break out different channels for each ad location, however that makes the coding a little more complicated so for simplicity sake in this example I am just going to go with one custom channel per page.

3) In the Custom Fields section at the bottom of the Wordpress post editor for the particular post I am interested in I simply add a customer field with the key of “channel” and the value of the numeric value assigned to my channel (not the friendly name I gave it in Google). For those pages where I am tracking different channels for different ad locations I add additional custom field such as “channel_sidebar”

4) Edit the adsense code in each location to use the Get Custom Field Values plugin to grab the custom channel, if it exists. For the simple example of one custom channel per page this looks like:

google_ad_channel = "<?php echo c2c_get_custom(channel,,,997290177); ?>";

0997290177 is the default adsense channel for that location and is what will be used if there is not a custom field called “channel” defined.

That’s all there is. The one downside to this is that you have a limit on how many channels you can make and it requires you to create custom channels for each page you are interested in, but for now I am nowhere near the limits.

Now the good news is that even this should be obsolete soon, and that is because Google will be incorporating adsense click information into Google Analytics. I don’t have it enabled yet for my site so I am not sure if it requires custom channels or not, but even if it does it should make for much better information about your ad clicks.

 Original Source:
http://johnsjottings.com

AddThis Social Bookmark Button

Posted at 11:29:37 am | Permalink | Posted in Adsense  

Related Stuff

Google Buzz Button Wordpress Plugin Released

If you are looking for a Google Buzz button to add into your Wordpress site then we have released the first Wordpress plugin exclusively ...

Plug And Play Ecommerce With Wordpress Plugins

Since 2003 Wordpress has slowly been gaining popularity amongst the elite of the internet, the bloggers. It is one of those few things ...

Add Google Search to Your WordPress Blog

The native WordPress search does not return very relevant results, thus it makes a lot of sense to add Google Search into your WordPress ...

Add More Sidebars to Your WordPress Theme

You can add more than one sidebar section to your WordPress site. For example, with the stc-intermountain.org site, I added a whole bunch ...

Series Posting in Wordpress

In my functions.php file, I have some code which implements series posting. This relies on the thematic ...

Top Stuff

Free Blogger templates Anime Themes

Wordpress Guestbook Generator Plugin

48 Unique Ways To Use WordPress

GeekLog

WordPress Single Post Templates

Get The Image WordPress Plugin



About Webloglines

Webloglines is a project offers a comprehensive collection of blogging services, articles, themes and plugins from around the world. Whether you're looking to promote your own blog or find blogs on various topics, this site is for you.


Search


Topics

  • Adsense (12)
  • Blogging Tips (73)
  • Blogs Slides (25)
  • Blogs Websites (22)
  • Digg (20)
  • How to Blog (129)
  • Search Engines (9)
  • SEO (135)
  • WordPress Plugins (269)
  • WordPress Security (75)
  • Wordpress Themes (99)
  • Wordpress Tips (162)

© 2006 www.webloglines.com. All Rights Reserved. Powered by IRange