
export default class GA {

    constructor(trackingCode){
        window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date
        ga('create', trackingCode, 'auto')
    }

    send(location){
        ga('send', {
            hitType: 'pageview',
            page: location.pathname+location.search,
            location: window.location.origin + location.pathname,
            title: document.title
        })
    }
}







@@ -266,162 +266,8 @@
 iew'
-,%0A            page: location.pathname+location.search,%0A            location: window.location.origin + location.pathname,%0A            title: document.title
 %0A   

edit ga pageview data