Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding clarity analytics #280

Closed
wants to merge 1 commit into from
Closed

Adding clarity analytics #280

wants to merge 1 commit into from

Conversation

vhvb1989
Copy link
Member

@vhvb1989 vhvb1989 commented Jan 4, 2024

Adding clarity analytics

Since we are generating the site with docusaurous, we can't directly set a projectId into the index.html header. Instead, we need to use a plugin which should create the script like:

<script type="text/javascript">
    (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", "kgcjy0d3wp");
</script>

@hemarina
Copy link
Contributor

hemarina commented Feb 2, 2024

@vhvb1989 Closing this PR as we will use Adobe Analytics.

@hemarina hemarina closed this Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants