Merge pull request #21899 from mhd-sln/MM-48759_track_event_cws_signup_campaign_redirect
[MM-48759] track event when redirect from cws signup with utm campaign
Этот коммит содержится в:
@@ -2017,9 +2017,15 @@ func loginCWS(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||
redirectURL := *c.App.Config().ServiceSettings.SiteURL
|
||||
if campaign != "" {
|
||||
if url, ok := campaignToURL[campaign]; ok {
|
||||
properties := map[string]any{
|
||||
"category": "acquisition",
|
||||
"redirect_to": strings.TrimSuffix(url, "/"),
|
||||
}
|
||||
c.App.Srv().GetTelemetryService().SendTelemetry("product_start_redirect", properties)
|
||||
redirectURL += url
|
||||
}
|
||||
}
|
||||
|
||||
http.Redirect(w, r, redirectURL, http.StatusFound)
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user