Skip to content

Commit

Permalink
feat(docs): Google Analytics tags per every page (#921)
Browse files Browse the repository at this point in the history
  • Loading branch information
novusnota authored Oct 7, 2024
1 parent 84b62d8 commit ffe202a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- `&&=`, `||=`, `>>=` and `<<=` augmented assignment operators: PR [#853](https://github.com/tact-lang/tact/pull/853)
- New CSpell dictionaries: TVM instructions and adjusted list of Fift words: PR [#881](https://github.com/tact-lang/tact/pull/881)
- Docs: the `description` property to the frontmatter of the each page for better SEO: PR [#916](https://github.com/tact-lang/tact/pull/916)
- Docs: Google Analytics tags per every page: PR [#921](https://github.com/tact-lang/tact/pull/921)

### Changed

Expand Down
12 changes: 12 additions & 0 deletions docs/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,18 @@ export default defineConfig({
replacesTitle: true,
},
// 'head' is auto-populated with SEO-friendly contents based on the page frontmatters
head: [
{
// Google tag (gtag.js)
tag: "script",
attrs: { async: true, src: 'https://www.googletagmanager.com/gtag/js?id=G-ZJ3GZHJ0Z5' }
},
{
// Per-page Google tag setup
tag: "script",
content: "window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments)}gtag('js',new Date());gtag('config','G-ZJ3GZHJ0Z5');",
}
],
social: {
github: 'https://github.com/tact-lang/tact',
telegram: 'https://t.me/tactlang',
Expand Down

0 comments on commit ffe202a

Please sign in to comment.