Skip to content

Commit

Permalink
use new GA
Browse files Browse the repository at this point in the history
  • Loading branch information
jbesomi committed Aug 29, 2023
1 parent 560a32d commit 37d09f0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/siteConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ const siteConfig = {
"/js/code-block-buttons.js",
"//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.0.3/highlight.min.js",
"/js/start_highlight.js",
"https://www.googletagmanager.com/gtag/js?id=G-0V7XX3QG4C",
"/js/analytics.js",
],
stylesheets: ["/css/code-block-buttons.css", "/css/sphinx_basic.css"],

Expand All @@ -108,8 +110,6 @@ const siteConfig = {
// No .html extensions for paths.
cleanUrl: true,

gaTrackingId: "G-0V7XX3QG4C",

// Open Graph and Twitter card images.
ogImage: "img/T.png",
twitterImage: "img/T.png",
Expand Down
6 changes: 6 additions & 0 deletions website/static/js/analytics.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "G-0V7XX3QG4C");

0 comments on commit 37d09f0

Please # to comment.