Merge branch 'master' into develop

This commit is contained in:
willyb321
2018-06-14 06:50:46 +10:00

View File

@@ -259,11 +259,13 @@ Route.prototype.match = function(path, params) {
*/ */
function gaTrack(path) { function gaTrack(path) {
const match = path.match(/\/outfit\/(.*)(\?code=.*)/); const match = path.match(/\/outfit\/(.*)(\?code=.*)/);
if (match[1]) { if (match) {
ReactGA.ga('set', 'contentGroup1', match[1]); if (match[1]) {
} ReactGA.ga('set', 'contentGroup1', match[1]);
if (match[2]) { }
ReactGA.ga('set', 'contentGroup2', match[2]); if (match[2]) {
ReactGA.ga('set', 'contentGroup2', match[2]);
}
} }
ReactGA.pageview(path); ReactGA.pageview(path);
} }