Adds GA to docs (#11022)

CC @baskaryan
pull/10657/head^2
Jacob Lee 1 year ago committed by GitHub
parent af5390d416
commit 6d072e97c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -71,9 +71,9 @@ const config = {
test: /\.ipynb$/,
loader: "raw-loader",
resolve: {
fullySpecified: false
}
}
fullySpecified: false,
},
},
],
},
}),
@ -158,16 +158,16 @@ const config = {
position: "left",
},
{
type: 'docSidebar',
position: 'left',
sidebarId: 'use_cases',
label: 'Use cases',
type: "docSidebar",
position: "left",
sidebarId: "use_cases",
label: "Use cases",
},
{
type: 'docSidebar',
position: 'left',
sidebarId: 'integrations',
label: 'Integrations',
type: "docSidebar",
position: "left",
sidebarId: "integrations",
label: "Integrations",
},
{
href: "https://api.python.langchain.com",
@ -187,9 +187,9 @@ const config = {
// Please keep GitHub link to the right for consistency.
{
href: "https://github.com/hwchase17/langchain",
position: 'right',
className: 'header-github-link',
'aria-label': 'GitHub repository',
position: "right",
className: "header-github-link",
"aria-label": "GitHub repository",
},
],
},
@ -239,6 +239,14 @@ const config = {
copyright: `Copyright © ${new Date().getFullYear()} LangChain, Inc.`,
},
}),
scripts: [
"/js/google_analytics.js",
{
src: "https://www.googletagmanager.com/gtag/js?id=G-9B66JQQH2F",
async: true,
},
],
};
module.exports = config;

@ -0,0 +1,7 @@
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "G-9B66JQQH2F");
Loading…
Cancel
Save