Aller au contenu

Les articles d'aide existent en allemand et en anglais. Vous les lisez ici en anglais.

Installation

How do I install the code snippet?

The finished code block is in the portal under “Setup → Snippet” and contains site ID and collector address. You see the write key only once, when it is created; if it is no longer known, the code carries the placeholder YOUR_WRITE_KEY and a button next to it creates a new one. The block belongs immediately before the closing head tag and loads asynchronously.

How do I install Metrunio without a tag manager?

Where it goes

Immediately before the closing head tag, on every page and not only the home page. A single include in your central layout file is enough.

The write key

The write key is stored hashed only and therefore shown in clear text exactly once: when the website is created. After that nobody knows it, not even us.

  1. 01If you still have the key, put it in the code where the placeholder is.
  2. 02If you do not, choose “Create a new write key” in the portal. The code becomes complete immediately.
  3. 03The previous key is revoked in the process: code already installed stops sending until you replace it.

Caution

Code containing the placeholder YOUR_WRITE_KEY sends nothing. Do not install it that way: the live test would stay empty and the cause would not be visible from outside.

Reporting consent

<script>
  metrunio.setConsent({ analytics: true, marketing: true });
</script>

Call this as soon as your consent tool reports a decision. Until then the system stores nothing.

Caution

Do not install the snippet in addition to a GTM tag. Metrunio does catch the second load and counts nothing twice, but only the settings of the installation that loads first then apply; the article “How do I fix a double installation?” describes the signs and the fix.

Dernière vérification le 17 oct. 2026

Dans le portail client

Go to setup

Également demandé

  • Where do I paste the tracking code?
  • Install snippet
  • Tracking without GTM
  • Where do I find my write key?
  • What does YOUR_WRITE_KEY in the code mean?
  • How do I create a new write key?

Articles connexes

  • Where do I install tracking in my shop system?

    How do I install Metrunio in WordPress, Shopify, Shopware or Webflow?

    For Shopify, Shopware 6 and WordPress with WooCommerce there is an extension that measures visits, consent and orders at once. The other systems have a place for custom head code; the table names the route per system. Without an extension, we additionally recommend the Server Events API for purchases, because it works independently of the browser.

  • How do I fix a double installation?

    What does it mean if tracking loads twice?

    Usually the snippet is installed in addition to a GTM tag. Metrunio catches this: the second load hands over to the tracking that is already running, so nothing counts twice and no call is lost. Remove one of the two anyway and clear the cache; if they name different websites, Metrunio only measures for the one that loads first.

  • What does the tracking SDK offer?

    Which JavaScript calls are available?

    The SDK provides init, setConsent, page, track, identify, conversion, goal and reset, plus paymentReference for Stripe and PayPal, fillForm for forms, and renderSurvey and survey for the post-purchase question. It loads asynchronously, queues calls made before it loads, and sends events in batches.

  • Only test data is arriving. What is missing?

    Setup is complete but the reports stay empty. Why?

    The test events from the setup assistant prove that your account, the processing and the reports work, but not that your website is measuring. Until an event from the “production” environment arrives, every standard report stays empty and “Setup” reports the finding ONLY_TEST_EVENTS.

Voyez ce que racontent vos données.

Explorez d’abord la démo. Un compte personnel n’est actuellement disponible que sur invitation.

Ouvrir la démoDemander un accès