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
Этот коммит содержится в:
Muhammad S
2023-01-03 22:54:27 +05:00
коммит произвёл GitHub
родитель e4b050693d 4a0a3eaa91
Коммит c8e70718c2

Просмотреть файл

@@ -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)
}