Пример #1
0
 pageview: function trackPageView (url) {
     if (!url) {
         url = window.document.location.pathname;
     }
     if (url.indexOf("/") === -1) {
         url = "/" + url;
     }
     if (url === this.currentPageView) {
         // no double-counting
         return;
     }
     this.currentPageView = url;
     Analytics.pageview(url);
     this.track("pageview", { url: url });
 },
Пример #2
0
 transaction: function trackTransaction (t) {
     Analytics.transaction(t);
 },