[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
|
redirectURL := *c.App.Config().ServiceSettings.SiteURL
|
||||||
if campaign != "" {
|
if campaign != "" {
|
||||||
if url, ok := campaignToURL[campaign]; ok {
|
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
|
redirectURL += url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
http.Redirect(w, r, redirectURL, http.StatusFound)
|
http.Redirect(w, r, redirectURL, http.StatusFound)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user