mirror of
https://github.com/starship/starship
synced 2024-09-06 00:09:26 +00:00
Inline script for GA4
This commit is contained in:
parent
abadd9c58d
commit
1dab919c9f
|
@ -116,6 +116,19 @@ module.exports = defineConfig({
|
|||
}],
|
||||
["meta", { name: "twitter:image", content: "https://starship.rs/icon.png" }],
|
||||
["meta", { name: "twitter:alt", content: "Starship: Cross-Shell Prompt" }],
|
||||
// Google Analytics
|
||||
[
|
||||
'script',
|
||||
{
|
||||
async: true,
|
||||
src: 'https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX',
|
||||
},
|
||||
],
|
||||
[
|
||||
'script',
|
||||
{},
|
||||
"window.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}\ngtag('js', new Date());\ngtag('config', 'G-N3M0VJ9NL6');",
|
||||
],
|
||||
],
|
||||
evergreen: true,
|
||||
theme: "default-prefers-color-scheme",
|
||||
|
@ -350,12 +363,6 @@ module.exports = defineConfig({
|
|||
},
|
||||
},
|
||||
plugins: [
|
||||
[
|
||||
"@vuepress/google-analytics",
|
||||
{
|
||||
ga: "G-N3M0VJ9NL6",
|
||||
},
|
||||
],
|
||||
[
|
||||
"vuepress-plugin-sitemap",
|
||||
{
|
||||
|
|
19
docs/package-lock.json
generated
19
docs/package-lock.json
generated
|
@ -5,7 +5,6 @@
|
|||
"packages": {
|
||||
"": {
|
||||
"devDependencies": {
|
||||
"@vuepress/plugin-google-analytics": "^1.9.9",
|
||||
"vuepress": "^1.9.9",
|
||||
"vuepress-plugin-code-copy": "^1.0.6",
|
||||
"vuepress-plugin-sitemap": "^2.3.1",
|
||||
|
@ -2266,15 +2265,6 @@
|
|||
"lodash.debounce": "^4.0.8"
|
||||
}
|
||||
},
|
||||
"node_modules/@vuepress/plugin-google-analytics": {
|
||||
"version": "1.9.9",
|
||||
"resolved": "https://registry.npmjs.org/@vuepress/plugin-google-analytics/-/plugin-google-analytics-1.9.9.tgz",
|
||||
"integrity": "sha512-GxrM4BopPqTiGAq2ku5HqInha6uQZePxdGpU8etTbM6hhaxZAev4HehrtHISAJm5dVptbFFJl3sNGQBnw2deFQ==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@vuepress/types": "1.9.9"
|
||||
}
|
||||
},
|
||||
"node_modules/@vuepress/plugin-last-updated": {
|
||||
"version": "1.9.9",
|
||||
"resolved": "https://registry.npmjs.org/@vuepress/plugin-last-updated/-/plugin-last-updated-1.9.9.tgz",
|
||||
|
@ -16512,15 +16502,6 @@
|
|||
"lodash.debounce": "^4.0.8"
|
||||
}
|
||||
},
|
||||
"@vuepress/plugin-google-analytics": {
|
||||
"version": "1.9.9",
|
||||
"resolved": "https://registry.npmjs.org/@vuepress/plugin-google-analytics/-/plugin-google-analytics-1.9.9.tgz",
|
||||
"integrity": "sha512-GxrM4BopPqTiGAq2ku5HqInha6uQZePxdGpU8etTbM6hhaxZAev4HehrtHISAJm5dVptbFFJl3sNGQBnw2deFQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@vuepress/types": "1.9.9"
|
||||
}
|
||||
},
|
||||
"@vuepress/plugin-last-updated": {
|
||||
"version": "1.9.9",
|
||||
"resolved": "https://registry.npmjs.org/@vuepress/plugin-last-updated/-/plugin-last-updated-1.9.9.tgz",
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
"build": "vuepress build"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vuepress/plugin-google-analytics": "^1.9.9",
|
||||
"vuepress": "^1.9.9",
|
||||
"vuepress-plugin-code-copy": "^1.0.6",
|
||||
"vuepress-plugin-sitemap": "^2.3.1",
|
||||
|
|
Loading…
Reference in a new issue