Configure script

To get started with MicroMetrics, you simply need to add a single line of code within the <head> section of your website. The embed code is as follows:

<script data-host="https://cdn.micrometrics.es" data-dnt="false" src="https://cdn.micrometrics.es/js/script.js" id="ZwSg9rf6GA" async defer></script>

How to create your embed code

  1. Log in to MicroMetrics.
  2. On the dashboard, click + New Website.
  3. Add the name of your site.
  4. Copy your embed code (at the bottom of the page) and paste it into the <head> section of your website.
  5. Don’t forget to Save before exiting.

How to retrieve your embed code

  1. Log in to MicroMetrics.
  2. In the board listing, click and then click Edit on the website.
  3. Copy your embed code (at the bottom of the page) and paste it into the <head> section of your website.

Configure Do Not Track (DNT)

By default, we collect data about every visitor to your website, whether or not they have DNT turned on. That’s because MicroMetrics offers privacy-focused analytics, so nothing personal or identifiable is ever “tracked.”

That said, if you want to respect how DNT works, update your embed code to the following:

<script data-host="https://cdn.micrometrics.es" data-dnt="true" src="https://cdn.micrometrics .es/js/script.js" id="ZwSg9rf6GA" async defer></script>

Configure Google Tag Manager

We don’t recommend using GTM because you allow Google to have a presence on your website and many ad blockers can block it.

If you have no choice in the matter, you can set a “Custom HTML” tag and paste the following embed code:

<script>
var script = document.createElement("script");
script.id = "ZwSg9rf6GA";
script.dataset.host = "https://cdn.micrometrics.es";
script.dataset.dnt = "false";
script.src = "https://cdn.micrometrics.es/js/script.js";
document.getElementsByTagName("head")[0].appendChild(script);
</script>