
Hello Inhoff, Christopher,
Thank you for posting your question in the Microsoft Q&A forum.
Based on your inquiry, we understand that you have added Clarity to one of your SharePoint sites, but it seems it cannot pull the data you require. We will be glad to assist you with this.
After testing, I have found a possible method using PowerShell that you through PnP Online (this solution can assist the Clarity app direct to your specific SharePoint site). PnP Online allow you to manage and automate tasks within the Microsoft 365 environment, specifically focusing on SharePoint Online and it can help you to add Clarity app in SharePoint site more effective.
You can follow this link to start connecting PnP PowerShell in your PowerShell environment:
How to connect to PnP Online with Interactive Authentication
Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link
You can follow these steps to configure it:
You should run this command first to connect Pnp in PowerShell
Connect-PnPOnline -Url " You input your specific SharePoint site URL here " -Interactive
Set your variables $clarityProjectID = "YOUR_CLARITY_PROJECT_ID_HERE" -> You get from project Id in Clarity $clarityComponentId = "9088b932-6b45-4dc7-a391-256c4933526f" -> this one is a static Clarity ID so you dont need to change it. It can also use for another Sharepoint site.
$componentProperties = '{"clarityId":"' + $clarityProjectID + '"}'
Run the command to activate Clarity on the connected site Add-PnPApplicationCustomizer -Title "MicrosoftClarity" -ClientSideComponentId $clarityComponentId
-ClientSideComponentProperties $componentProperties ` -Scope Site Here is my example:
Noted: You should use PowerShell 7.5 for a more effective configuration. What's New in PowerShell 7.5 - PowerShell | Microsoft Learn
Here is my result after adding it in Clarity app (You should wait around 15-30 minutes for it activate):
Please let me know if you encounter any issues during configuration, and we can work together to get it working effectively.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.