semust logo

Semust Metrik

Installation

Add the Metrik script to your site with HTML, Google Tag Manager or WordPress.

Installing Metrik takes one script, loaded on every page of your site. There is no library to add, no build step and no server configuration.

Product page: Semust Metrik.

Find your access key

Each project uses its own access key (token). Keys start with mk_.

  1. Open your project

    Go to app.semust.com, select your project and open the Semust Metrik tab.

  2. Copy the key

    If no data has arrived yet, the install screen appears straight away with a ready-made script. Once data is flowing, the key lives under Settings → Access Key.

The key is not a secret

Your access key appears in every visitor's page source, so it does not need to be kept private. To replace it, use Settings → Rotate Key — this invalidates the old key immediately, so update data-token on your site at the same time.

Installation methods

<script src="https://unpkg.com/semust-js@latest/dist/semust-js.min.js"
        data-token="mk_your-key-here"></script>

HTML

Add the script to your site's head section. Make sure it loads on every page.

Google Tag Manager

In GTM choose Tags → New → Custom HTML, paste the code above, set the trigger to All Pages, then save and publish.

Use a Custom HTML tag in GTM

GTM's built-in templates cannot preserve data-* attributes. That is why the GTM setup passes settings through window.semustMetrikConfig instead of data-token, and why the tag type must be Custom HTML.

WordPress

Install a header-scripts plugin (for example Insert Headers and Footers) and paste the code into the Header section.

Verify the installation

  1. Visit your site

    Open a page on your own site. Typing window.semustMetrik in the browser console should return an object.

  2. Check the dashboard

    The install screen checks for the first data every 10 seconds and switches to the dashboard automatically once it arrives. This usually takes a few seconds.

If nothing arrives, see Troubleshooting.

Next step

For cookieless mode, revenue tracking and cross-domain options, continue to Configuration.

Last updated: 2026-08-26