In today’s digital age, businesses can access a wealth of data about their website visitors. Google Analytics 4 (GA4) is an advanced web analytics tool that allows you to track user behavior on your website and understand how they interact with your content. On the other hand, Microsoft Clarity is a free tool that provides website owners with insights into how visitors interact with their websites. By integrating Microsoft Clarity with GA4, you can gain a more comprehensive view of your website’s performance and optimize your website’s user experience. Here’s how to do it.
Create A Microsoft Clarity Account
The first step in integrating Microsoft Clarity with GA4 is to create a Microsoft Clarity account. To create an account, go to the Microsoft Clarity website and sign up for a free account. Once you have created an account, you can add your website to your account.
Integrating your Clarity project with Google Analytics allows Clarity to link session playbacks with your GA dashboard. This way, you can identify the sessions that require more information and jump to your GA dashboard to diagnose and understand user pain points.
So, how does Clarity integration work? Clarity will create a custom dimension called the ‘Clarity Playback URL,’ and data will start flowing into Google Analytics from the Clarity JavaScript you’ve added to your site, without any further changes required. Here are the steps to integrate Google Analytics into Microsoft Clarity.
Installation
Step 1
Choose a project and navigate to the Settings tab. Then, go to Setup and select ‘Get Started’ under Google Analytics integration.

Step 2
You will be redirected to Google to sign in. Choose an account or enter an email by selecting ‘Use another account’ and following the instructions.

Step 3
On the dialog box, select the web property you want Clarity to send data to.
If you see the site in the ‘Site to connect’ menu, choose the site from the menu and click ‘Save.’ You will be redirected to the Clarity Setup page.
If you don’t see the site in the ‘Site to connect’ menu, select the option to enter your site manually.
Manual Setup

To set up the manual connection, enter the site’s details in the ‘What do you want to connect to?’ dialog box. The IDs differ based on whether you’re using Universal Analytics (UA) or Google Analytics 4 (GA4).
To differentiate between UA and GA4, go to your Google Analytics account and select ‘Admin’ from the left panel. In the Property column, choose ‘Property Settings.’ Your ‘UA-‘ ID appears at the top of the Property Settings page. If you don’t see a Tracking ID, then you have a GA4 property.
Learn more about UA and GA4 and compare their metrics. To find out the different IDs while manually connecting, use the following:
UA Integration: https://learn.microsoft.com/en-us/clarity/ga-integration/ua-integration
GA4 Integration: https://learn.microsoft.com/en-us/clarity/ga-integration/ga4-integration
Once you connect manually, select ‘Continue,’ and you will be redirected to the Clarity Setup page. With these simple steps, you can integrate Microsoft Clarity with GA4 and gain deeper insights into your website’s performance, enabling you to optimize the user experience and drive business growth.
To temporarily disable the GA integration, follow these steps:
1. Go to Settings.
2. Click on Setup.
3. Select Google Analytics integration.
4. Toggle the Active button to disable the integration.

Disconnect Google Analytics Integration from Microsoft Clarity
Please note that once you disconnect your project, it will be removed from your Google Analytics account, and you will need to redo the installation process to use Clarity again. Here are the steps to disconnect Google Analytics Integration:
Step 1: Select Project and Go to Settings
Firstly, select the project from which you want to disconnect the Google Analytics Integration. Then, navigate to the Settings tab.
Step 2: Go to Setup
Once you are in the Settings tab, click on the Setup option.
Step 3: Disconnect Google Analytics Integration
Under the Setup option, you will see the Google Analytics Integration. To disconnect it, click on the Disconnect button.
Step 4: Confirm Disconnect on the pop-up window.

That’s it! You have successfully disconnected the Google Analytics Integration from your Microsoft Clarity project.