Adds Vercel analytics to Docusaurus

This commit is contained in:
jacoblee93
2023-09-08 18:34:33 -07:00
parent b3a8fc7cb1
commit 9f96e28b4b
2 changed files with 9 additions and 0 deletions

View File

@@ -239,6 +239,14 @@ const config = {
copyright: `Copyright © ${new Date().getFullYear()} LangChain, Inc.`,
},
}),
scripts: [
"/js/vercel_analytics.js",
{
src: "/_vercel/insights/script.js",
defer: true,
}
]
};
module.exports = config;

View File

@@ -0,0 +1 @@
(function(){window.va = window.va || function () { (window.vaq = window.vaq || []).push(arguments); };})()