How to show Chitika Premium to US Visitors and eMinimalls to Non US Visitors
In my previous post, I demonstrated How To Geo-Target Ads based on visitors location.
Today i am going to use the same method that i mentioned in the above post to Display Chitika Premium Ads to US Visitors and Non Premium Ads to Non-US Visitors
But before that i recommend you to read the above post first and then continue reading this post.
First, let me explain why i am doing this. Chitika Premium ads are shown only to US traffic and no ad is displayed if the visitor is not from US. In this way, i am wasting that whole ad space.
After implementing the below method, you can also show Chitika Premium ads for US Visitors and eMinimalls ad for Non-US Visitors.
You can see chitika ad on the right sidebar just below Recent Comments section. If you are from US, you are seeing Chitika Premium ad and if not you are seeing Chitika eMinimalls Non Premium ad.
Implementing Chitika Ads using Geo-Targetting method on your domain/site:
MaxMind also provides a javascript which is placed on one of their sites. They say the uptime for the Javascript service is about 99.95%. So, you can go ahead and use it without any doubt in mind.
- Use GeoIP Javascript Web Service.
- Copy the below code just after <body> tag
<script language="JavaScript" src="http://j.maxmind.com/app/geoip.js"></script>
- Place the following code where ever you want ads to appear based on visitors country
<script language="JavaScript"> var country_code = geoip_country_code(); if (country_code == "US"){ // change the country code as per your req. <strong>Your Chitika Premium Ad here Country specific (USA)</strong> }else{ <strong>Your Chitika eMinimalls (Non Premium ad)</strong> } </script>
A little explanation of the above code:
- Here above geopip.js script is used which is added after <body> tag
- geoip_country_code() function returns the country code that we are storing it in country_code variable.
- Next checking if country_code is US or not
Below is my code which is added on the right sidebar just below Recent Comments section:
<script language="JavaScript">
var country_code = geoip_country_code();
if (country_code == "US"){ // change the country code as per your req.
document.write('< <strong>iframe marginwidth="0" marginheight="0" frameborder="0" src="<strong>http://www.niharsworld.com/chitika1.html</strong>" scrolling="no" width="160" height="600">')
} else {
document.write('< <strong>iframe marginwidth="0" marginheight="0" frameborder="0" src="<strong>http://www.niharsworld.com/chitika2.html</strong>" scrolling="no" width="160" height="600">')
}
</script>
I have put Chitika Premium ad in chitika1.html and Chitika eMinimalls Non chitika ad in chitika2.html. Above i am using IFRAME tag to load Chitika ad in the right sidebar just below Recent comments section.
I hope this post helps you. In the same way you can Geo Target ads of any network.
Here on my site, i am also Geo Targetting ads of Axill Network.
If you are not a member of Axill Ads or Chitika Ads, then click below and get registered.
![]() |
|
If you have liked this post, then do stumble, digg…
Leave your suggestions, doubts or advice…
If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future posts delivered to your feed reader.
Readers who viewed this page, also viewed:
- 12th Match: Lahore Badshahs V Ahmedabad Rockets T20 Highlights - ICL Season 2
- 4th Match: Lahore Badshahs v Royal Bengal Tigers T20 Highlights - ICL Season 2
- How to open multiple Yahoo Messenger on single PC



Subscribe
bit some what problematic.
I heard there was some problem with chitika for imperssions. Tracking was not working.
Can you tell me whether it is useful or it is waste
HIteshs last blog post..Kevin Pietersen Switch-hit sixes Video
that is really good way to direct the ads to people who would really be interested in ..
i didn’t try chitika . but i might give it a try
ameos last blog post..OpenOffice: Is it going to replace MS Office?
this is what i was looking for in chitika base but luckly you got it!
narendra.s.vs last blog post..Emergency Multitool with Solar Power
I was searching for this and found in your blog.
Thanks Nihar!!
FYI, your chitika is giving 403 Permission denied error.
You do not have permission for this request /chitika2.htm
You may want to check it out.
godofnetizens
godofnetizens,
happy to see that you got some help out of this post.
regd permission denied. you tried opening chitika2.htm directly? if yes. you will get error.
@Hitesh
no problem with me using chitika
ameo and narenra, try it . it is really good….
I did not open chitika2.htm directly.
This is the link I am on :
http://www.niharsworld.com/200.....-visitors/
What I see is a white box giving the permission denied error on the sidebar.
Gotofnetizens,
Fixed it…