chore: upgrade preset version
This commit is contained in:
parent
e221b0f6c9
commit
c0ccc264e7
|
@ -16,7 +16,7 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@acid-info/docusaurus-fathom": "^1.0.0-alpha.111",
|
"@acid-info/docusaurus-fathom": "^1.0.0-alpha.111",
|
||||||
"@acid-info/logos-docusaurus-preset": "v1.0.0-alpha.180",
|
"@acid-info/logos-docusaurus-preset": "v1.0.0-alpha.181",
|
||||||
"@docusaurus/core": "2.4.1",
|
"@docusaurus/core": "2.4.1",
|
||||||
"@docusaurus/preset-classic": "2.4.1",
|
"@docusaurus/preset-classic": "2.4.1",
|
||||||
"@docusaurus/theme-mermaid": "^2.4.1",
|
"@docusaurus/theme-mermaid": "^2.4.1",
|
||||||
|
|
|
@ -80,13 +80,16 @@ const virtualPath = \`\${currentUrl}_form_submission_\${utmSource}\`
|
||||||
if (utmSource) {
|
if (utmSource) {
|
||||||
console.log(\`utm - \${utmSource}\`);
|
console.log(\`utm - \${utmSource}\`);
|
||||||
console.log(\`current url - \${currentUrl}\`);
|
console.log(\`current url - \${currentUrl}\`);
|
||||||
console.log(\`virtual path - \${virtualPath}\`);
|
|
||||||
|
|
||||||
fathom.trackEvent(\`form submission - \${utmSource}\`);
|
fathom.trackEvent(\`form submission - \${utmSource}\`);
|
||||||
|
|
||||||
fathom.trackPageview({
|
// listen for form submission
|
||||||
url: virtualPath
|
document.addEventListener('submit', function(e) {
|
||||||
|
console.log('form submitted');
|
||||||
|
console.log(\`virtual path - \${virtualPath}\`);
|
||||||
|
fathom.trackEvent(\`form submission - \${utmSource}\`);
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
document.body.appendChild(script)
|
document.body.appendChild(script)
|
||||||
|
|
18
yarn.lock
18
yarn.lock
|
@ -36,14 +36,14 @@
|
||||||
satori "^0.10.1"
|
satori "^0.10.1"
|
||||||
sharp "^0.32.1"
|
sharp "^0.32.1"
|
||||||
|
|
||||||
"@acid-info/logos-docusaurus-preset@v1.0.0-alpha.180":
|
"@acid-info/logos-docusaurus-preset@v1.0.0-alpha.181":
|
||||||
version "1.0.0-alpha.180"
|
version "1.0.0-alpha.181"
|
||||||
resolved "https://registry.yarnpkg.com/@acid-info/logos-docusaurus-preset/-/logos-docusaurus-preset-1.0.0-alpha.180.tgz#a0725edf9ecd62e46e36f67d6e10373cf21860f2"
|
resolved "https://registry.yarnpkg.com/@acid-info/logos-docusaurus-preset/-/logos-docusaurus-preset-1.0.0-alpha.181.tgz#31e42de1b84f6e145368e5f252aafd42983b15a9"
|
||||||
integrity sha512-sNfTqcR6e4RvwcP6zDjfzGjtLAqAWKPRvJ2IG3zS7qx3iLU6zVFni4ooowPShFyENPbFTX5p5Znz5GSsi/2z8Q==
|
integrity sha512-KvMyDGFwst7P5HzlWQ4G08Q6Ep9gPZ9mt35nBN7dksiVzu1heVj3hfY91of2u1EXZszHDmzztU1iqoGYNinOhg==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@acid-info/docusaurus-og" "^1.0.0-alpha.131"
|
"@acid-info/docusaurus-og" "^1.0.0-alpha.131"
|
||||||
"@acid-info/logos-docusaurus-search-local" "^1.0.0-alpha.111"
|
"@acid-info/logos-docusaurus-search-local" "^1.0.0-alpha.111"
|
||||||
"@acid-info/logos-docusaurus-theme" "^1.0.0-alpha.180"
|
"@acid-info/logos-docusaurus-theme" "^1.0.0-alpha.181"
|
||||||
"@docusaurus/core" "^2.4.1"
|
"@docusaurus/core" "^2.4.1"
|
||||||
"@docusaurus/module-type-aliases" "^2.4.1"
|
"@docusaurus/module-type-aliases" "^2.4.1"
|
||||||
"@docusaurus/preset-classic" "^2.4.1"
|
"@docusaurus/preset-classic" "^2.4.1"
|
||||||
|
@ -71,10 +71,10 @@
|
||||||
"@easyops-cn/docusaurus-search-local" "^0.33.6"
|
"@easyops-cn/docusaurus-search-local" "^0.33.6"
|
||||||
lodash "^4.17.21"
|
lodash "^4.17.21"
|
||||||
|
|
||||||
"@acid-info/logos-docusaurus-theme@^1.0.0-alpha.180":
|
"@acid-info/logos-docusaurus-theme@^1.0.0-alpha.181":
|
||||||
version "1.0.0-alpha.180"
|
version "1.0.0-alpha.181"
|
||||||
resolved "https://registry.yarnpkg.com/@acid-info/logos-docusaurus-theme/-/logos-docusaurus-theme-1.0.0-alpha.180.tgz#3ea7db1ca4656a70b27e54211851fa19cbe3df38"
|
resolved "https://registry.yarnpkg.com/@acid-info/logos-docusaurus-theme/-/logos-docusaurus-theme-1.0.0-alpha.181.tgz#c68946a3372700284f2b9d0d4fc8cd7fc576125c"
|
||||||
integrity sha512-oWkIKmONNW/lXW61HHogfUZ7oif9D/fQhdgLmEoF1JJ9qxpm3nEVc/O8TcAPdwSkrL4KIlHl3Jj542DN1YIPYQ==
|
integrity sha512-hKLClMNHMrVhoApz+uY096tLAswScKq/FXUGb3VeY675QO75P1OMaPAKdKLnFeLXTRs3lbU3TA6YpkwEZDiJAA==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@acid-info/docusaurus-og" "^1.0.0-alpha.131"
|
"@acid-info/docusaurus-og" "^1.0.0-alpha.131"
|
||||||
"@acid-info/lsd-react" "^0.1.0-beta.3"
|
"@acid-info/lsd-react" "^0.1.0-beta.3"
|
||||||
|
|
Loading…
Reference in New Issue