Skip to content

Commit 72d3b2c

Browse files
update referrer policy to same-origin for analytics tracking
1 parent 91302a0 commit 72d3b2c

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

website/docusaurus.config.ts

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,16 @@ const config: Config = {
2121
onBrokenLinks: 'throw',
2222
onBrokenMarkdownLinks: 'warn',
2323

24+
headTags: [
25+
{
26+
tagName: 'meta',
27+
attributes: {
28+
name: 'referrer',
29+
content: 'same-origin'
30+
},
31+
},
32+
],
33+
2434
// Even if you don't use internationalization, you can use this field to set
2535
// useful metadata like html lang. For example, if your site is Chinese, you
2636
// may want to replace "en" with "zh-Hans".
@@ -29,17 +39,6 @@ const config: Config = {
2939
locales: ['en'],
3040
},
3141

32-
scripts: [
33-
{
34-
src: process.env.MATOMO_URL ? `${process.env.MATOMO_URL}/matomo.js` : undefined,
35-
async: true,
36-
}
37-
],
38-
customFields: {
39-
matomoUrl: process.env.MATOMO_URL,
40-
matomoSiteId: process.env.MATOMO_SITE_ID
41-
},
42-
4342
plugins: [
4443
'./docsPlugin.ts',
4544
[

0 commit comments

Comments
 (0)