Skip to content

Commit 0244815

Browse files
Randall Huntbrianjo
andauthored
fixup analytics (pytorch#1504)
Co-authored-by: Brian Johnson <[email protected]>
1 parent e24dced commit 0244815

File tree

2 files changed

+1
-20
lines changed

2 files changed

+1
-20
lines changed

_templates/layout.html

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,6 @@
22

33
{% block footer %}
44
{{ super() }}
5-
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-117752657-2"></script>
6-
7-
<script>
8-
9-
window.dataLayer = window.dataLayer || [];
10-
11-
function gtag(){dataLayer.push(arguments);}
12-
13-
gtag('js', new Date());
14-
gtag('config', 'UA-117752657-2');
15-
16-
</script>
17-
185
<script>
196
!function(f,b,e,v,n,t,s)
207
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
@@ -34,13 +21,6 @@
3421
tutorialLink: window.location.href,
3522
downloadTitle: $(this).attr("data-response")
3623
});
37-
ga('send', {
38-
hitType: 'event',
39-
eventCategory: $(this).attr("data-response"),
40-
eventAction: 'click',
41-
eventLabel: window.location.href
42-
});
43-
4424
gtag('event', 'click', {
4525
'event_category': $(this).attr("data-response"),
4626
'event_label': $("h1").first().text(),

conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@
184184
'collapse_navigation': False,
185185
'display_version': True,
186186
'logo_only': False,
187+
'analytics_id': 'UA-117752657-2',
187188
}
188189

189190

0 commit comments

Comments
 (0)