Disable localhost logging

This commit is contained in:
Dominik Korsa 2019-03-03 14:03:30 +01:00
parent 1cf8ed82d1
commit a739ddd2ea

View file

@ -19,6 +19,7 @@ Vue.use(VueAnalytics, {
id: 'UA-99646499-3', id: 'UA-99646499-3',
debug: { debug: {
enabled: window.location.hostname === 'localhost', enabled: window.location.hostname === 'localhost',
sendHitTask: window.location.hostname !== 'localhost',
}, },
}); });
Vue.$ga.page(window.location.pathname); Vue.$ga.page(window.location.pathname);