mirror of https://github.com/langgenius/dify.git
feat: enhance user registration tracking with UTM parameters
- Updated event tracking for user registration success to differentiate between registrations with and without UTM parameters in both OAuth and email flows. - Adjusted tracking event names accordingly to improve analytics accuracy.
This commit is contained in:
parent
344e0a3318
commit
256c5231f2
|
|
@ -58,12 +58,12 @@ export const AppInitializer = ({
|
|||
const utmInfo = utmInfoStr ? JSON.parse(utmInfoStr) : null
|
||||
|
||||
// Track registration event with UTM params
|
||||
trackEvent('user_registration_success', {
|
||||
trackEvent(utmInfo ? 'user_registration_success_with_utm' : 'user_registration_success', {
|
||||
method: 'oauth',
|
||||
...utmInfo,
|
||||
})
|
||||
|
||||
sendGAEvent('user_registration_success', {
|
||||
sendGAEvent(utmInfo ? 'user_registration_success_with_utm' : 'user_registration_success', {
|
||||
method: 'oauth',
|
||||
...utmInfo,
|
||||
})
|
||||
|
|
|
|||
|
|
@ -60,12 +60,12 @@ const ChangePasswordForm = () => {
|
|||
const utmInfoStr = Cookies.get('utm_info')
|
||||
const utmInfo = utmInfoStr ? JSON.parse(utmInfoStr) : null
|
||||
|
||||
trackEvent('user_registration_success', {
|
||||
trackEvent(utmInfo ? 'user_registration_success_with_utm' : 'user_registration_success', {
|
||||
method: 'email',
|
||||
...utmInfo,
|
||||
})
|
||||
|
||||
sendGAEvent('user_registration_success', {
|
||||
sendGAEvent(utmInfo ? 'user_registration_success_with_utm' : 'user_registration_success', {
|
||||
method: 'email',
|
||||
...utmInfo,
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue