Configure production Microsoft Clarity ID for website analytics#212
Open
Copilot wants to merge 4 commits into
Open
Configure production Microsoft Clarity ID for website analytics#212Copilot wants to merge 4 commits into
Copilot wants to merge 4 commits into
Conversation
Co-authored-by: AbeOmor <9068012+AbeOmor@users.noreply.github.com>
Co-authored-by: AbeOmor <9068012+AbeOmor@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add Microsoft Clarity tracking to GitHub Pages site
Add Microsoft Clarity tracking to the GitHub Pages site
Jun 6, 2026
Co-authored-by: AbeOmor <9068012+AbeOmor@users.noreply.github.com>
Copilot
AI
changed the title
Add Microsoft Clarity tracking to the GitHub Pages site
Configure production Microsoft Clarity ID for website analytics
Jun 8, 2026
AbeOmor
approved these changes
Jun 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The website included the Microsoft Clarity bootstrap snippet but still used a placeholder project ID, so telemetry would not initialize. This updates the site to use the provided Clarity project ID directly.
Clarity configuration
docs/website/index.htmlwith the provided ID:x3m55qoz4t.Snippet guard behavior
Original prompt
Add Microsoft Clarity tracking to the GitHub Pages site for the
microsoft/pg_durablerepository. Integrate the Microsoft Clarity JavaScript tracking snippet into the HTML of the Pages site so that user interactions can be monitored. This includes:<head>tag of the site's HTML file (usuallyindex.htmlor equivalent).The tracking code can follow this example:
Replace
<YOUR_PROJECT_ID>with the actual Microsoft Clarity project ID during deployment.The following is the prior conversation context from the user's chat exploration (may be truncated):
User: How do I have website tracking using Microsoft software only
Assistant: To achieve website tracking exclusively with Microsoft software, you can leverage tools and platforms provided by Microsoft for monitoring and analyzing website performance, user interactions, and other metrics. Below are the key resources and steps to set it up:
1. Microsoft Clarity - Free Session Recording & Heatmaps
2. Azure Application Insights - Advanced Telemetry
<head>tag of your HTML.3. Azure Monitor - Dashboarding for Metrics
4. Additional (Optional) Microsoft tools
Checklist for Full Microsoft Tracking Setup
Let me know if you would like detailed instructions for integrating any of these tools!
User: Can you help me create a draft PR to setup Microsoft Clarity on the repo website
Assistant: Before proceeding, could you confirm the following:
microsoft/pg_durablehave an existing website (e.g., a GitHub Pages site or any hosted front-end project)?Once I have this information, I'll help create the draft pull request.
User: 1. It has a GitHub page
Assistant: Great! Since the repository
microsoft/pg_durablehas a GitHub Pages website, I can help you set up Microsoft Clarity to include tracking on the website. Microsoft Clarity i...This pull request was created from Copilot chat.