Frequently Asked Questions Modifying Your Flag Counter

  • What websites can I add a Flag Counter to?

    You can put a flag counter on pretty much any site. All that is required is that the site supports images. Our Flag Counter is a simple image!

  • Do people have to click my Flag Counter for it to add a visitor?

    No, anyone who views your Flag Counter image has already been counted!

  • Will you delete my counter if my website isn't very active?

    We remove counters from our service that haven't logged a visitor in over 30 days. This helps ensure that our resources are saved for customers who are using our service.

  • How can I remove the Flag Counter Logo from my Flag Counter?

    We offer a Flag Counter Pro service that is very affordable. Not only will it remove the logo, but it will unlock an advanced visitor log, and more. Just click on your Flag Counter and follow the "Upgrade" link for all the details.

  • I lost my Flag Counter code! What do I do?

    If you happen to know the address of your statistics page, please follow our Modifying Your Flag Counter instructions to regenerate your HTML code. If you do not have your Flag Counter code or the address of your statistics page, you will need to create a new Flag Counter. This is a disadvantage of the convenience of not requiring you to set up an account, so please keep a copy of your code somewhere safe.

  • How often is my Flag Counter updated?

    Changes to your statistics page (the page someone reaches after they click on your counter) are in real time. In order to maximize our resources, the Flag Counter image that appears on your site, however, is delayed by approximately 5 minutes.

  • How do you know what country a visitor is from?

    We use an advanced geolocation technology with a regularly updated database, offering over 99% accuracy for our country version, and over 90% for our U.S. state version.

  • Will my own visits to my site be counted in my Flag Counter?

    After your first visit we set a cookie, so that a visitor is only counted once.

  • I added my Flag Counter to two different sites, but they both say the same thing now. What is wrong?

    You must be sure to generate a second Flag Counter code if you want your second site to have its own count. If you add the same code to multiple locations, the visitors will all be added together.

  • How can I close my Flag Counter account?

    You don't have to do a thing. We don't have accounts here, so all that you have to do is remove the code that you added to your site. Eventually, your counter will be terminated for inactivity. We're sorry to see you go!

Modifying Your Flag Counter


We've made it very simple to make changes to your Flag Counter. You can change your counter's colors, add rows, and much more, at any time. On the bottom of any of your statistics pages (reached after clicking on your counter) there is a "Regenerate HTML" link. Just follow that link and you'll be modifying your existing Flag Counter. When you're finished, just swap out your old HTML code with the new code and you'll be all set!

Manual Code Modifications

Advanced Users Only

We have designed our service so that you can change any of your settings instantly, by making simple changes to your Flag Counter code. There are currently 8 different variables that can be modified in your code.

When you first created your Flag Counter, we provided you a simple HTML code, similar to what appears below. The part in red is your randomly assigned username, and is specific to your Flag Counter only. Do not change the part in red, and do not use the code below, but use the code you generated on our site.

<a href="http://flagcounter.com/more/123"><img src="http://flagcounter.com
/count/123/bg=FFFFFF/txt=000000/border=CCCCCC/columns=2/maxflags=12/viewers=0
/labels=0/pageviews=0/" alt="free counters" border="0"></a>

To proceed, please make a backup copy of your Flag Counter code that you can revert to in case you make a mistake. We will be focusing on the highlighted sections of code. The variables that can be adjusted, and their respective allowed values are included next.

Be very careful not to make any changes to your Flag Counter that do not follow the requirements below, or you will get an error image and your Flag Counter will no longer function correctly! You may only change the part after the equal sign (=) and before the forward slash (/), and it must be done according to the strict requirements that follow.

  • bg=FFFFFF This is your Flag Counter's background color. This can be any valid 6 digit hex number. For instance, if the background color on your website is #191970 (Midnight blue) and you want it to match, you'll change this part to be "bg=191970"

  • txt=000000 This is your Flag Counter's text color. This is adjusted in the same manner as the background color.

  • border=CCCCCC This is your Flag Counter's border color. This is also adjusted in the same manner as the background color.

  • columns=2 This is the number of columns in your Flag Counter. This can be any number between 1 and 9.

  • maxflags=12 This is the maximum number of flags shown on your Flag Counter. This can be any number between 1 and 248.

  • viewers=0 This is the text label on top of your counter. "0" is the default, which will say "Visitors" on the top of your counter. "1" will say "Viewers" and "3" will remove the label entirely. Any other value which includes letters (a-z) or numbers (0-9) is acceptable, as well as plus signs (+) which are converted to spaces, exclamations (!), periods (.), and commas (,). For instance, if you'd like this to say "My Flag Counter!", you'd change this to be "viewers=My+Flag+Counter!".

  • labels=0 This setting adjusts whether the flags are labeled by their country code, and can be either 0 (off) or 1 (on). When set to 1, each flag is followed by its 2 letter country code.

  • pageviews=0 This setting adjusts whether a pageview counter is included on your Flag Counter and be be either 0 (off) or 1 (on). When set to 1, a non-unique counter that counts every time the Flag Counter image is displayed to an end user is included on the counter.

 

Flag Counter