Skip to content

Commit 4c2c2b3

Browse files
authored
Merge pull request #10932 from marmelab/add-analytics-to-core-docs
[chore] Add Umami script to `ra-core` documentation
2 parents 13891a5 + 4c02d52 commit 4c2c2b3

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs_headless/astro.config.mjs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,19 @@ export default defineConfig({
2424
href: 'https://github.com/marmelab/react-admin',
2525
},
2626
],
27+
head: [
28+
// add Umami analytics script tag.
29+
{
30+
tag: 'script',
31+
attrs: {
32+
src: 'https://gursikso.marmelab.com/script.js',
33+
'data-website-id':
34+
'9d1797cc-8a8f-4600-a491-264e70d86654',
35+
defer: true,
36+
async: true,
37+
},
38+
},
39+
],
2740
sidebar: [
2841
{
2942
label: 'Getting Started',

0 commit comments

Comments
 (0)