Skip to content
This repository was archived by the owner on Dec 12, 2018. It is now read-only.

Commit ffb375d

Browse files
author
Frank Baele
committed
remove document reload
1 parent 718c6f8 commit ffb375d

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

index.html

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,6 @@
3131
ga('create', 'UA-11896755-10', 'auto');
3232
ga('send', 'pageview');
3333

34-
</script>
35-
<script>
36-
var trackOutboundLink = function(url) {
37-
ga('send', 'event', 'outbound', 'click', url, {
38-
'transport': 'beacon',
39-
'hitCallback': function(){document.location = url;}
40-
});
41-
}
4234
</script>
4335
<script>
4436
var searchSubmit = document.getElementById('search-form');

src/template.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ module.exports = function (item, i18next) {
3030
href: url,
3131
"onclick": function () {
3232
ga('send', 'event', 'outbound', 'click', url, {
33-
'transport': 'beacon',
34-
'hitCallback': function(){document.location = url;}
33+
'transport': 'beacon'
3534
});
3635
Cookies.set(item.id, item.id, {expires: item.ttl});
3736
}

0 commit comments

Comments
 (0)