Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

remove duplicate pushing to GA #19

Merged
merged 1 commit into from
Apr 7, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions src/core/router.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,6 @@ module.exports = class KDRouter extends KDObject
addRoutes:(routes)->
@addRoute route, listener for own route, listener of routes

pushRoute: (path) ->
_gaq?.push ['_trackPageview', path]

handleRoute:(userRoute, options={})->
return @handleRoute '/Activity' if /<|>/.test userRoute
userRoute = userRoute.slice 1 if (userRoute.indexOf '!') is 0
Expand Down Expand Up @@ -140,8 +137,6 @@ module.exports = class KDRouter extends KDObject
@emit 'AlreadyHere', path
return

@pushRoute path

@currentPath = path

if shouldPushState
Expand Down