Flag counter for blogs & websites

Add a live PNG widget to a blog post, static site, or Notion page. Because the counter is a plain image URL, it works where JavaScript analytics are stripped or blocked — and visitor countries map normally when the browser loads the image directly.

1. Create a counter

Open Create a flag counter, pick colors and layout, then create. Use Previewon the form (or the non-counting live preview on the stats page) so you don't inflate your own totals while editing. Save the one-time password (or sign in so the counter attaches to your account).

2. Copy the HTML embed

After create (or on the counter's stats page), copy the HTML snippet. It looks like:

<a href="https://flagcounter.me/details/{code}"><img src="https://flagcounter.me/{code}" alt="Flag Counter"></a>

Replace {code} with your public code if you're writing it by hand. You can also use the bare image URL in any editor that accepts an image by URL (including Notion's image block).

3. Paste into your page

Drop the HTML into a post, sidebar, footer, or template — or insert the image URL in Notion / a CMS media field. Each page view loads the image, counts a pageview, and updates country flags for that visitor.

Embedding on a forum instead? See the forums guide. Ready? Create a free flag counter.