FIX: GA Universal tracking had a bug

This commit is contained in:
Robin Ward 2016-02-26 14:48:36 -05:00
parent 627ef54efe
commit c9cb5a5b79
1 changed files with 1 additions and 2 deletions

View File

@ -25,7 +25,6 @@ export default {
});
});
router.transientCache = function(key, data, count) {
if (data === undefined) {
return cache[key];
@ -48,7 +47,7 @@ export default {
// Also use Universal Analytics if it is present
if (typeof window.ga !== 'undefined') {
onPageChange.on('change', (url, title) => {
onPageChange((url, title) => {
window.ga('send', 'pageview', {page: url, title: title});
});
}