How to Target Chitika to Your WordPress Search Page

When we talk about Search, the first thing which flashes inside your brain is Adsense for Search, but many publisher don’t implement Adsense for Search on their blogs or websites mainly because its very poor performing, some clicks pay as low as $0.01, so why not use Chitika instead of Adsense for Search ?

Yesterday, I wrote about contextualizing Chitika Ads by sniffing your post’s title. Using the same optimization technique you can show ads related to your users search query.

First, Lets start by generating your Chitika eMiniMall code from your Chitika Dashboard, now change the following line:

[code lang="javascript"]var ch_queries = new Array( );[/code]

To this:
[code lang="javascript"]var ch_queries = new Array("< ?php echo wp_specialchars($s); ?>");[/code]

Then paste your Chitika eMiniMall code anywhere inside your template’s search.php From my previous experiments, Chitika works best if properly placed within your search page.

Let me know if this technique helped you increase your Chitika revenue.

This post was published by on January 4, 2007

About the Author: Thilak Rao works as a Social Media Expert. He is one of the first professional bloggers from India, and he loves to write, travel and click photos. Follow him on Twitter @thilak

  • http://www.ktima.wordpress.com amit

    hey seems like you know about wordpress and stuff .hence i am asking this question……please do answer.I wanted to know whether for my posts on my wordpress blog I can mention stuff like “published by amit” below the title(where currently the date is shown).Do you get me????Is there any theme which I could use which would help me do the needful.
    Please do leave a comment on my blog if you know the way to do so.

  • http://www.techaddi.com Paul Jacob

    Thilak another nice observation.Keep up the good work.