We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60e1a9d commit 3bc4631Copy full SHA for 3bc4631
docs/source/_assets/js/nav.js
@@ -52,8 +52,10 @@ $.when($.ready).then(function() {
52
}, '', href)
53
54
// Track on Google Analytics
55
- ga('set', 'page', href)
56
- ga('send', 'pageview')
+ if (typeof(ga) === 'function') {
+ ga('set', 'page', href)
57
+ ga('send', 'pageview')
58
+ }
59
})
60
61
@@ -66,8 +68,10 @@ $.when($.ready).then(function() {
66
68
$('#content').html(e.state.content)
67
69
70
- ga('set', 'page', e.state.href)
71
72
+ ga('set', 'page', e.state.href)
73
74
75
}
76
77
0 commit comments