onflow / onflow/docs

Add Google Analytics gtag to Cadence Lang

Open
#1,025 0 comments 0 reactions 1 assignee View on GitHub

@nialexsan is already working on this.

Since Dec 3, 2024.

Dominant language
TypeScript
Stars
13
Forks
81
PR merge metrics
No merged PRs in 30d

Description

Reported by: Ali Serag (<@ali.serag>)

Issue Description:

Add google analytics tracking to Cadence Lang website so that all pages are tracked (I believe we'd have to add the env variable in vercel and update the docusaurus.config file similar to how we did for the regular dev docs site. The following is the generated tag:

<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-5654FKLB20"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'G-5654FKLB20');
</script>

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.