We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 400ad15 commit 99d9a3aCopy full SHA for 99d9a3a
1 file changed
src/js/04-segment-analytics.js
@@ -147,6 +147,10 @@
147
148
// Track page view on initial load once analytics is ready
149
waitForAnalytics(() => {
150
+ // Identify user with anonymous ID before tracking page
151
+ if (window.SEGMENT_COMMON_PROPERTIES && window.SEGMENT_COMMON_PROPERTIES.userId) {
152
+ window.analytics.identify(window.SEGMENT_COMMON_PROPERTIES.userId)
153
+ }
154
trackPage()
155
})
156
0 commit comments