mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
Add user language segmentation to the home-page-view event (#28910)
* adding server side events language accept information for the events and domain in event segmentation * only sending the first language * adding fixes for tests * adding domain for plans-page-view and paywall-plans-page-view * adding domain for gallery-page-view * adding it for payment-page-view * rename variable * removing language from login-page-view * adding a fallback value * removing domain from test * removing extra comment * adding test host * removing extra console added by mistake * format:fix GitOrigin-RevId: d1a1a30e4635abdc2b93f88de14a1d8937f974c8
This commit is contained in:
@@ -17,9 +17,13 @@ function recordUTMTags() {
|
||||
if (utmValues) {
|
||||
const path = new URL(req.url, Settings.siteUrl).pathname
|
||||
|
||||
const host = req.headers.host
|
||||
const domain = host?.split('.')[0]
|
||||
|
||||
AnalyticsManager.recordEventForSession(req.session, 'page-view', {
|
||||
path,
|
||||
...utmValues,
|
||||
domain,
|
||||
})
|
||||
|
||||
const propertyValue = `${utmValues.utm_source || 'N/A'};${
|
||||
|
||||
Reference in New Issue
Block a user