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 4a806dc commit 82eaa02Copy full SHA for 82eaa02
docs/source/_assets/js/nav.js
@@ -38,10 +38,15 @@ $.when($.ready).then(function() {
38
39
// Add page load to brower history
40
window.history.pushState({
41
+ 'href': href,
42
'title': title,
43
'nav': $(html).find('#nav').html(),
44
'content': $(html).find('#content').html()
45
}, '', href)
46
+
47
+ // Track on Google Analytics
48
+ ga('set', 'page', href)
49
+ ga('send', 'pageview')
50
})
51
52
@@ -53,6 +58,10 @@ $.when($.ready).then(function() {
53
58
$('title').text(e.state.title)
54
59
$('#nav').html(e.state.nav)
55
60
$('#content').html(e.state.content)
61
62
63
+ ga('set', 'page', e.state.href)
64
56
65
}
57
66
67
0 commit comments