diff options
Diffstat (limited to 'app/assets/javascripts/entrypoints/analytics.js')
-rw-r--r-- | app/assets/javascripts/entrypoints/analytics.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/assets/javascripts/entrypoints/analytics.js b/app/assets/javascripts/entrypoints/analytics.js index 8eb265cb1e8..e18c4bc8742 100644 --- a/app/assets/javascripts/entrypoints/analytics.js +++ b/app/assets/javascripts/entrypoints/analytics.js @@ -14,4 +14,10 @@ if (appId && host) { errorTracking: false, }, }); + + const userId = window.gl?.snowplowStandardContext?.data?.user_id; + + if (userId) { + window.glClient?.identify(userId); + } } |