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$/, test: /\.ipynb$/,
loader: "raw-loader", loader: "raw-loader",
resolve: { resolve: {
fullySpecified: false fullySpecified: false,
} },
} },
], ],
}, },
}), }),
@ -158,16 +158,16 @@ const config = {
position: "left", position: "left",
}, },
{ {
type: 'docSidebar', type: "docSidebar",
position: 'left', position: "left",
sidebarId: 'use_cases', sidebarId: "use_cases",
label: 'Use cases', label: "Use cases",
}, },
{ {
type: 'docSidebar', type: "docSidebar",
position: 'left', position: "left",
sidebarId: 'integrations', sidebarId: "integrations",
label: 'Integrations', label: "Integrations",
}, },
{ {
href: "https://api.python.langchain.com", href: "https://api.python.langchain.com",
@ -187,9 +187,9 @@ const config = {
// Please keep GitHub link to the right for consistency. // Please keep GitHub link to the right for consistency.
{ {
href: "https://github.com/hwchase17/langchain", href: "https://github.com/hwchase17/langchain",
position: 'right', position: "right",
className: 'header-github-link', className: "header-github-link",
'aria-label': 'GitHub repository', "aria-label": "GitHub repository",
}, },
], ],
}, },
@ -239,6 +239,14 @@ const config = {
copyright: `Copyright © ${new Date().getFullYear()} LangChain, Inc.`, 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; 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