Improve the contact form on your website: 5 simple tips
OMA B.V.
Dieselstraat 1B
6716 BC Ede
Chamber of Commerce: 83301852
Before you start installing Microsoft Clarity, it is useful to check the speed of your website. How to do that, we explain here.
Installing Microsoft Clarity is easiest via Google Tag Manager (GTM). To do this, however, you must have Google Tag Manager already installed on your website. Don't know how to do that? Don't worry, you can read about it here.
For a successful installation, you need a properly configured cookie banner or Consent Management Platform (CMP). This must pass the visitor’s consent choice on to Microsoft Clarity.
Start by creating an account with Microsoft Clarity. Visit the Clarity website and click the button to register. Then follow the instructions to set up your account.
Once logged into Clarity, add a new project in the upper left corner. This is your first step toward collecting data about your website.
On the new project screen, enter the name of your project and the URL of your website. Then click "Add new project" to continue.

Within your Clarity project, go to:
Settings → Installation
Which setting you choose depends on the CMP you're using.

To install via Google Tag Manager, you'll need the Clarity project ID. You can find the project ID in the URL of your Clarity project.
Next, open Google Tag Manager and log in. Next, select the domain for which you would like to set up Clarity.
Within Google Tag Manager, go to "Tags" and click "New Tag" to add the Microsoft Clarity tracking code to your website.
Give your new tag a name. Make sure this is a name that is easily recognizable to yourself, for example, "Microsoft Clarity."
Click on Tag Configuration. Then, under “Choose tag type,” select “Discover more tag types in the Community Template Gallery.”
Search the gallery for Clarity and select Microsoft Clarity – Official. Then add the official Microsoft template to your workspace.
Once added, the official Clarity template will open immediately within the tag you are creating.
Paste the project ID you copied earlier into the appropriate field. Make sure you've entered only the ID and not the project's full URL.
The trigger and consent settings you use depend on your CMP.

Before you publish the changes, it's important to thoroughly test the installation.
Open your website in an incognito window and use the developer tools to check which cookies are set and when. Also, use Google Tag Manager's preview mode to check when the Clarity tag is triggered.
Test at least the following scenarios:
In every situation, verify that Clarity cookies are only set after the appropriate consent has been given.
Check the Microsoft Clarity documentation to see which cookies you need to check during the test:
Once you’ve correctly set up the tag and trigger and tested them, it’s time to publish the changes. Click “Submit” to put your new configuration live.
In Clarity, go to your account settings. And hit "ip-blocking.

Click on "+ block IP address. Enter a recognizable name and enter your own IP address here. This ensures that if you yourself are on the website, this will not be counted in the data. How to find your IP address is explained here.
As a final step, check the speed of your website again. See if using Clarity isn't having too much of an impact. Is that the case? Then you might want to remove it from your website again and optimize your website for faster loading time first.
And that was him already! Very easy! Keep in mind that it can take up to two hours before the first data is visible and you can use Microsoft Clarity!
Written by: Ellen Prinsen
Ellen is a marketer at OMA. Thanks to her fresh look, this sleuth always finds clues to make your campaign or website even better. Sherlock is nothing like it.