Skip to content

Commit

Permalink
Merge pull request #2048 from Agenta-AI/add-doc-trk
Browse files Browse the repository at this point in the history
added analytics to docs
  • Loading branch information
mmabrouk committed Aug 30, 2024
2 parents 6c3576e + f993a20 commit d99e869
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
17 changes: 16 additions & 1 deletion docs/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import "dotenv/config";

const config: Config = {
title: "Agenta Documentation",
tagline: "Agenta: The LLMOps platform.",
tagline: "The LLM platform.",
favicon: "images/favicon.ico",
// Set the production url of your site here
url: "https://docs.agenta.ai",
Expand All @@ -28,6 +28,21 @@ const config: Config = {
locales: ["en"],
},

scripts: [

{
src: 'https://www.googletagmanager.com/gtag/js?id=G-LTF78FZS33',
async: true,
},
{
src: '/ga-script.js',
async: true,
},{
src:"/hotjar.js",
async: true,
},
],

presets: [
[
"classic",
Expand Down
4 changes: 4 additions & 0 deletions docs/static/ga-script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-LTF78FZS33');
8 changes: 8 additions & 0 deletions docs/static/hotjar.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
(function(h,o,t,j,a,r){
h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
h._hjSettings={hjid:3547614,hjsv:6};
a=o.getElementsByTagName('head')[0];
r=o.createElement('script');r.async=1;
r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
a.appendChild(r);
})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');

0 comments on commit d99e869

Please sign in to comment.