Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Tracker.path() by GA

  • Loading branch information...
commit 9e20697041680e8629000680542cbc61426c0f7d 1 parent f26b748
@kung-fu-tzu authored
Showing with 18 additions and 0 deletions.
  1. +18 −0 src/modules/tracker-ga.js
View
18 src/modules/tracker-ga.js
@@ -27,6 +27,24 @@ var Me =
// to warn the developer
log('could not report an event')
}
+ },
+
+ path: function (path)
+ {
+ try // to track an event
+ {
+ // prepare types
+ path = String(path)
+
+ log('path' + ': ' + path)
+ GoogleAnalytics.push(['_trackPageview', path])
+ return true
+ }
+ catch (ex)
+ {
+ // to warn the developer
+ log('could not report a path')
+ }
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.