Skip to content

Commit 37d09f0

Browse files
committed
use new GA
1 parent 560a32d commit 37d09f0

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

website/siteConfig.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ const siteConfig = {
100100
"/js/code-block-buttons.js",
101101
"//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.0.3/highlight.min.js",
102102
"/js/start_highlight.js",
103+
"https://www.googletagmanager.com/gtag/js?id=G-0V7XX3QG4C",
104+
"/js/analytics.js",
103105
],
104106
stylesheets: ["/css/code-block-buttons.css", "/css/sphinx_basic.css"],
105107

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

111-
gaTrackingId: "G-0V7XX3QG4C",
112-
113113
// Open Graph and Twitter card images.
114114
ogImage: "img/T.png",
115115
twitterImage: "img/T.png",

website/static/js/analytics.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
window.dataLayer = window.dataLayer || [];
2+
function gtag() {
3+
dataLayer.push(arguments);
4+
}
5+
gtag("js", new Date());
6+
gtag("config", "G-0V7XX3QG4C");

0 commit comments

Comments
 (0)