Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Switch GA to use clientId instead of userId
Browse files Browse the repository at this point in the history
  • Loading branch information
ianb committed Oct 11, 2016
1 parent 8c4ea36 commit 5fe3e47
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/src/ga-activation.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ const gaJs = `
(window.ga.q = window.ga.q || []).push(arguments);
};
window.ga.l = 1 * new Date();
var userId = "__USER_ID__";
var clientId = "__USER_ID__";
var gaOptions = "auto";
var gaLocation;
if (userId) {
gaOptions = {userId: userId};
if (clientId) {
gaOptions = {clientId: clientId};
}
if (location.hostname === "localhost") {
if (typeof gaOptions === "string") {
Expand Down

0 comments on commit 5fe3e47

Please sign in to comment.