Say you only want to track US visitors. In the example below is our standard tracking code, with the additional code highlighted in red to only track US visitors. We’re using  in place of HTML tags:
if( geoip_country_code() == “US” ) clicky.init( YOUR_SITE_ID );
This can be used with any country of course, you just need to replace US with the appropriate 2-letter country code (in capital letters). You can view a list of standard 2-letter codes here.
If you want to do more than one country, say only US and Germany, you can do like this:
if( geoip_country_code() == “US” || geoip_country_code() == “DE” ) clicky.init( YOUR_SITE_ID );
You can also track all countries except the ones you specify. Say you wanted all traffic except US and Germany:
if( geoip_country_code() != “US” && geoip_country_code() != “DE” ) clicky.init( YOUR_SITE_ID );
That’s all there is to it!