Countries

A row of flags is a quietly lovely thing to have in a footer: proof that a small site written in one room has been read in forty places. This widget lists every country that appears in your hits, as emoji flags, in alphabetical order.

<script defer src="https://tinylytics.app/embed/YOUR_EMBED_CODE.js?countries"></script>
<span class="tinylytics_countries"></span>

The script replaces whatever is inside the element, so leave it empty. You can combine it with the other parameters on the same URL, as in ?hits&countries.

Flags sit tightly next to each other by default. A little letter spacing makes a long row much easier to read:

.tinylytics_countries {
  letter-spacing: 0.15em;
}

This is the same data as the Countries table on Overview: resolved from the visitor’s IP address, which is discarded immediately after the lookup. The widget is simply the friendly version of it.