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

Commit 4f94a8d

Browse files
authored
more debugging (#304)
1 parent 6c06728 commit 4f94a8d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

api_server/modules/web/templates/domain_picker.hbs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
const anonUserId = "{{anonymousUserId}}";
1515
window.segmentAnonymousId = anonUserId;
1616
analytics.setAnonymousId(anonUserId);
17-
window.analytics.identify("{{userId}}", {});
17+
debugger;
1818
}
1919
}();
2020
</script>
@@ -149,11 +149,7 @@
149149
});
150150
const response = JSON.parse(req.responseText);
151151
if (response && response.userId) {
152-
debugger;
153152
const anonUserId = "{{anonymousUserId}}";
154-
window.analytics.identify(response.userId, {}, {
155-
anonymousId: anonUserId
156-
});
157153
analytics.identify(response.userId, {}, {
158154
anonymousId: anonUserId
159155
});
@@ -197,6 +193,10 @@
197193
"Auth Provider": "{{originalProvider}}",
198194
});
199195
const response = JSON.parse(req.responseText);
196+
const anonUserId = "{{anonymousUserId}}";
197+
analytics.identify("{{userId}}", {}, {
198+
anonymousId: anonUserId
199+
});
200200
window.location.href = newURL;
201201
}
202202
if (req.status >= 300) {

0 commit comments

Comments
 (0)