You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: news/changelog-1.9.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,7 @@ All changes included in 1.9:
33
33
### `website`
34
34
35
35
- Algolia Insights now uses privacy-friendly defaults: `useCookie: false` with random session tokens when cookie consent is not configured. When `cookie-consent: true` is enabled, Algolia scripts are deferred and only use cookies after user grants "tracking" consent, ensuring GDPR compliance.
36
+
- Add support for Plausible Analytics via `plausible-analytics` configuration option. Users can either paste their Plausible script snippet directly in YAML or provide a path to a file containing the snippet using `plausible-analytics: { path: _plausible_snippet.html }`.
Copy file name to clipboardExpand all lines: src/resources/editor/tools/vs-code.mjs
+47-3Lines changed: 47 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -9427,6 +9427,30 @@ var require_yaml_intelligence_resources = __commonJS({
9427
9427
],
9428
9428
description: "Enable Google Analytics for this website"
9429
9429
},
9430
+
"plausible-analytics": {
9431
+
anyOf: [
9432
+
"string",
9433
+
{
9434
+
object: {
9435
+
closed: true,
9436
+
properties: {
9437
+
path: {
9438
+
path: {
9439
+
description: "Path to a file containing the Plausible Analytics script snippet"
9440
+
}
9441
+
}
9442
+
},
9443
+
required: [
9444
+
"path"
9445
+
]
9446
+
}
9447
+
}
9448
+
],
9449
+
description: {
9450
+
short: "Enable Plausible Analytics for this website by providing a script snippet or path to snippet file",
9451
+
long: 'Enable Plausible Analytics for this website by pasting the script snippet from your Plausible dashboard,\nor by providing a path to a file containing the snippet.\n\nPlausible is a privacy-friendly, GDPR-compliant web analytics service that does not use cookies and does not require cookie consent.\n\n**Option 1: Inline snippet**\n\n```yaml\nwebsite:\n plausible-analytics: |\n <script async src="https://plausible.io/js/script.js"><\/script>\n```\n\n**Option 2: File path**\n\n```yaml\nwebsite:\n plausible-analytics:\n path: _plausible_snippet.html\n```\n\nTo get your script snippet:\n\n1. Log into your Plausible account at <https://plausible.io>\n2. Go to your site settings\n3. Copy the JavaScript snippet provided\n4. Either paste it directly in your configuration or save it to a file\n\nFor more information, see <https://plausible.io/docs/plausible-script>\n'
9452
+
}
9453
+
},
9430
9454
announcement: {
9431
9455
anyOf: [
9432
9456
"string",
@@ -21513,6 +21537,11 @@ var require_yaml_intelligence_resources = __commonJS({
21513
21537
short: "The version number of Google Analytics to use.",
21514
21538
long: "The version number of Google Analytics to use."
21515
21539
},
21540
+
{
21541
+
short: "Enable Plausible Analytics for this website by providing a script\nsnippet or path to snippet file",
21542
+
long: "Enable Plausible Analytics for this website by pasting the script\nsnippet from your Plausible dashboard, or by providing a path to a file\ncontaining the snippet.\nPlausible is a privacy-friendly, GDPR-compliant web analytics service\nthat does not use cookies and does not require cookie consent.\n<strong>Option 1: Inline snippet</strong>"
21543
+
},
21544
+
"Path to a file containing the Plausible Analytics script snippet",
21516
21545
"Provides an announcement displayed at the top of the page.",
21517
21546
"The content of the announcement",
21518
21547
"Whether this announcement may be dismissed by the user.",
@@ -21674,6 +21703,11 @@ var require_yaml_intelligence_resources = __commonJS({
21674
21703
short: "The version number of Google Analytics to use.",
21675
21704
long: "The version number of Google Analytics to use."
21676
21705
},
21706
+
{
21707
+
short: "Enable Plausible Analytics for this website by providing a script\nsnippet or path to snippet file",
21708
+
long: "Enable Plausible Analytics for this website by pasting the script\nsnippet from your Plausible dashboard, or by providing a path to a file\ncontaining the snippet.\nPlausible is a privacy-friendly, GDPR-compliant web analytics service\nthat does not use cookies and does not require cookie consent.\n<strong>Option 1: Inline snippet</strong>"
21709
+
},
21710
+
"Path to a file containing the Plausible Analytics script snippet",
21677
21711
"Provides an announcement displayed at the top of the page.",
21678
21712
"The content of the announcement",
21679
21713
"Whether this announcement may be dismissed by the user.",
@@ -24060,6 +24094,11 @@ var require_yaml_intelligence_resources = __commonJS({
24060
24094
short: "The version number of Google Analytics to use.",
24061
24095
long: "The version number of Google Analytics to use."
24062
24096
},
24097
+
{
24098
+
short: "Enable Plausible Analytics for this website by providing a script\nsnippet or path to snippet file",
24099
+
long: "Enable Plausible Analytics for this website by pasting the script\nsnippet from your Plausible dashboard, or by providing a path to a file\ncontaining the snippet.\nPlausible is a privacy-friendly, GDPR-compliant web analytics service\nthat does not use cookies and does not require cookie consent.\n<strong>Option 1: Inline snippet</strong>"
24100
+
},
24101
+
"Path to a file containing the Plausible Analytics script snippet",
24063
24102
"Provides an announcement displayed at the top of the page.",
24064
24103
"The content of the announcement",
24065
24104
"Whether this announcement may be dismissed by the user.",
@@ -24410,6 +24449,11 @@ var require_yaml_intelligence_resources = __commonJS({
24410
24449
short: "The version number of Google Analytics to use.",
24411
24450
long: "The version number of Google Analytics to use."
24412
24451
},
24452
+
{
24453
+
short: "Enable Plausible Analytics for this website by providing a script\nsnippet or path to snippet file",
24454
+
long: "Enable Plausible Analytics for this website by pasting the script\nsnippet from your Plausible dashboard, or by providing a path to a file\ncontaining the snippet.\nPlausible is a privacy-friendly, GDPR-compliant web analytics service\nthat does not use cookies and does not require cookie consent.\n<strong>Option 1: Inline snippet</strong>"
24455
+
},
24456
+
"Path to a file containing the Plausible Analytics script snippet",
24413
24457
"Provides an announcement displayed at the top of the page.",
24414
24458
"The content of the announcement",
24415
24459
"Whether this announcement may be dismissed by the user.",
@@ -24933,12 +24977,12 @@ var require_yaml_intelligence_resources = __commonJS({
24933
24977
mermaid: "%%"
24934
24978
},
24935
24979
"handlers/mermaid/schema.yml": {
24936
-
_internalId: 197474,
24980
+
_internalId: 197491,
24937
24981
type: "object",
24938
24982
description: "be an object",
24939
24983
properties: {
24940
24984
"mermaid-format": {
24941
-
_internalId: 197466,
24985
+
_internalId: 197483,
24942
24986
type: "enum",
24943
24987
enum: [
24944
24988
"png",
@@ -24954,7 +24998,7 @@ var require_yaml_intelligence_resources = __commonJS({
0 commit comments