How to install Microsoft Clarity?
Installing Microsoft Clarity is a straightforward process that can be completed in just a few steps. Below is a step-by-step guide to help you install Clarity on your website so you can start tracking user behavior, viewing heatmaps, and recording sessions to improve your SEO and user experience.
Step 1: Sign Up for Microsoft Clarity
- Visit the Microsoft Clarity Website
Go to clarity.microsoft.com and click on the “Get Started” button to begin the registration process. - Create a Free Account
Sign in using your Microsoft account credentials (if you already have one) or create a new account. This will allow you to access Microsoft Clarity’s dashboard and tools. - Set Up a New Project
Once signed in, you’ll be asked to set up a new project. Fill in the required details such as your website’s name and URL. This project will hold all the data that Clarity collects from your website.
Step 2: Get the Clarity Tracking Code
- Copy the Tracking Code
After setting up the project, Clarity will generate a unique tracking code for your website. You’ll need to add this code to your site to enable Clarity to start tracking user interactions. - Install the Tracking Code on Your Website
To install the Clarity tracking code, you need to paste it into the HTML header section of your website. There are different ways to do this depending on the platform your website is built on.
Step 3: Add Clarity Tracking Code to Your Website
1. For WordPress Websites:
If your website is built on WordPress, follow these simple steps:
- Use a Plugin:
- Install and activate the Insert Headers and Footers plugin from the WordPress plugin repository.
- Once activated, go to your WordPress dashboard and navigate to Settings > Insert Headers and Footers.
- Paste the Clarity tracking code into the Header section.
- Click Save to apply the changes.
- Manually Add to the Theme:
Alternatively, you can add the tracking code directly into your theme’s header file:- Go to Appearance > Theme Editor.
- Find and open the header.php file in your active theme.
- Paste the tracking code before the closing
</head>
tag. - Click Update File to save the changes.
2. For Non-WordPress Websites:
If your website is built on a custom platform or any other CMS, follow these steps:
- Manually Add to the HTML Code:
- Open the HTML code for your website.
- Locate the
<head>
section in the HTML of your site. - Paste the Clarity tracking code directly before the closing
</head>
tag. - Save the changes and upload the updated file to your web server.
3. For Websites Using Google Tag Manager:
If you use Google Tag Manager (GTM), you can add Clarity without editing the code directly:
- Log in to your Google Tag Manager account.
- Select the container associated with your website.
- Click on Add New Tag.
- Choose Tag Type as Custom HTML.
- Paste the Microsoft Clarity tracking code into the Custom HTML box.
- Set the Trigger to fire the tag on All Pages.
- Save and publish the changes.
Step 4: Verify the Installation
- Return to the Clarity Dashboard
After you’ve added the tracking code to your website, go back to the Microsoft Clarity dashboard. - Verify Installation
In the dashboard, you should see an option to verify whether the tracking code is installed correctly. It may take a few minutes for Clarity to detect the code and confirm that everything is set up properly. - Start Collecting Data
Once the installation is verified, Clarity will begin collecting data from your website visitors. You’ll start seeing user interactions, heatmaps, session recordings, and other behavior metrics in the Clarity dashboard within a few hours.
Step 5: Explore Key Features
After successfully installing Microsoft Clarity, you can start exploring its key features:
- Heatmaps: Track where users click and how far they scroll.
- Session Recordings: Watch recordings of user sessions to understand how they interact with your website.
- User Insights: Analyze metrics like rage clicks, dead clicks, and engagement levels to identify areas for improvement.
Installing Microsoft Clarity on your website is simple and provides you with powerful analytics tools to track and optimize user experience. By following the steps outlined above, you’ll be able to gather valuable insights into how visitors engage with your content, allowing you to make informed decisions that improve SEO performance and conversion rates.