1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-11-24 05:37:35 +00:00

Inline script for GA4

This commit is contained in:
Matan Kushner 2023-06-06 19:23:58 -04:00
parent abadd9c58d
commit 1dab919c9f
No known key found for this signature in database
3 changed files with 13 additions and 26 deletions

View File

@ -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
View File

@ -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",

View File

@ -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",