Skip to content

Commit

Permalink
chore(web): add microsoft clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
favoyang committed Oct 10, 2024
1 parent 6fa2e2f commit 4949a33
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions apps/docs/docs/.vuepress/config-us.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,16 @@ export const config: any = {
{ nonce: "lUc_KA2m2P9d600H2mOqjg" },
"(function() {function signalGooglefcPresent() {if (!window.frames['googlefcPresent']) {if (document.body) {const iframe = document.createElement('iframe'); iframe.style = 'width: 0; height: 0; border: none; z-index: -1000; left: -1000px; top: -1000px;'; iframe.style.display = 'none'; iframe.name = 'googlefcPresent'; document.body.appendChild(iframe);} else {setTimeout(signalGooglefcPresent, 0);}}}signalGooglefcPresent();})();",
],
// Microsoft Clarity
[
"script",
{},
`(function(c,l,a,r,i,t,y){
c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
})(window, document, "clarity", "script", "og7ef5jadp");`
],
],
};

Expand Down

0 comments on commit 4949a33

Please sign in to comment.