Created
March 28, 2012 19:35
-
-
Save rogeruiz/2229735 to your computer and use it in GitHub Desktop.
_getTrackingInfoPlease
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_getPage: function(){ | |
var self = this; | |
// let's store the current window location for later | |
var _currentLocation = this.url.matchPath.exec(this.url.current)[0], | |
_matchedLocation = ''; // need this for storage for later | |
// if (window.console) { console.log(FER.Config.gaq._trackPageview); } | |
// return void; | |
var _page = FER.Config.gaq._trackPageview, | |
_currentPage = []; // need this for storage later | |
for (_route in _page) { // alright, hold on tight & let's loop | |
_currentPage = _page[_route]; | |
(function(_r){ | |
if (_currentLocation === _currentPage[(_currentPage.length - 1)]){ | |
_matchedLocation = _currentPage; | |
} | |
})(_currentPage); | |
} // loop is done | |
return _matchedLocation; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment