mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-10 15:15:34 +00:00
Merge branch 'master' into develop
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user