Solved

initial_utm parameters always updated

  • 21 December 2022
  • 14 replies
  • 550 views

Badge

Hello! I have some strange problem. We need to track user acquisition channels, first and last channels. I thought we can use initial_utm and utm parameters, but it doesn't work. 

Case: 
1) I have user in our platform, He have this parametersЖ 
initial_utm_source = facebook
utm_source = facebook
2) I visit site on new browser, without any previous data, with utm parameters in url: 
utm_source = test
3) Amplitude create new user without user id(that we will set after registration), with properties: 
initial_utm_source = test
utm_source = test
4) After that I log in with creds users from step 1 and Apmlitude was merged users 

What I wait: 
User from step 1 has properties: 
initial_utm_source = facebook
utm_source = test
(becouse users was merged and properties was updated) 

What I get: 
User from step 1 has properties: 
initial_utm_source = test
utm_source = test

This is really bad for our, becouse we need to track user visit from first channel

---

Set utm parameters like this:

amplitude.getInstance().init("API_KEY", null, { includeUtm: true })

icon

Best answer by Denis Holmes 21 December 2022, 11:57

View original

14 replies

Userlevel 6
Badge +8

Hi @lliypuk2011 ,


As of now, this would be the expected default behaviour. The reason for this is the merged users take the properties of the “newest” user profile, which in this case was the user without the User ID. However, we do absolutely have a function in our backend to have it the way you want where initial_utm_source = facebook and utm_source = test. Can you please let me know your Org ID and Project ID(s) you want to enable this for? Thank you!

 

Kind Regards,
Denis
 

Badge

Thanks for answer! Org ID 141613, Project ID 350749. If in next time I need to on this option, how I can request it?

Userlevel 6
Badge +8

Hi @lliypuk2011 

If you need to enable it in the future, you can create a community post and someone will reach out. Can you confirm that you would like to keep the old profile’s user_property initial_utm_source or are there any others? 

Kind Regards,
Denis

Badge

When amplitude merge old and new user, I need to save all initional_utm properties from old user

Badge

I am waiting for enable this functional, thank you! 

Userlevel 6
Badge +8

@lliypuk2011 ,

 

I have added the condition for the following properties ;

["initial_referrer","initial_utm_campaign","initial_utm_medium","initial_utm_source","intial_utm_term","initial_utm_content"]

   

 

Please let me know if you have any issues! Please note: This change will not apply to previously merged users. 

 

Kind Regards,
Denis

Badge

@lliypuk2011 ,

 

I have added the condition for the following properties ;

["initial_referrer","initial_utm_campaign","initial_utm_medium","initial_utm_source","intial_utm_term","initial_utm_content"]

   

 

Please let me know if you have any issues! Please note: This change will not apply to previously merged users. 

 

Kind Regards,
Denis

Thank you, I tested it and … doesn’t work =( 

Look at user Amplitude ID 477644200764

after merge initial_utm_source = utm_source, maybe problem dependence on old library amplitude-js/8.14.1

Userlevel 6
Badge +8

Hi @lliypuk2011 ,

 

It seems the user may have merged after they did the latest event on December 22, 2022 on 8:38:10.064 am UTC. Can you send a follow-up event for this user and see if the properties attach? If not, can you please update to the latest SDK and try again? Thank you!

 

Kind Regards,
Denis

Badge

I maked new try, and it happens again. Event when accounts was merged happend December 22, 2022 1:09:45.891 pm UTC. 

Ok, we fix version of library and try again, and I am back with result 

Userlevel 6
Badge +8

@lliypuk2011 Did you try the new library and did it work? Thank you!

Badge

Hi

@Denis Holmes 
 

We are facing the same issue. a user’s initial utm attributes get updated whenever they are logged out and perform a new login action.

 

Example:
 

User: https://analytics.amplitude.com/mentr-me/project/320896/search/amplitude_id%3D487983985929

 

initial_referrer: http://instagram.com/

initial_referring_domain: instagram.com

initial_utm_campaign: book-a-call

initial_utm_content: a-ad-a-reel-BAC28N2-usa

initial_utm_medium: paid

initial_utm_source: facebook

initial_utm_term: lookalike

Event url: Amplitude Event

 

Later when the user revists the site and logs in to his previous account, the initial utms get updated

 

initial_referrer: http://instagram.com/

initial_referring_domain: instagram.com

initial_utm_campaign: school-explore

initial_utm_content: d-ad-e-3-users

initial_utm_medium: paid

initial_utm_source: facebook

initial_utm_term: lookalike-ig

Event url: Amplitude Event

 

Can we enable the same functionality as reported above i.e. initial utms get set only once in the lifetime of the user and are never overridden on merging of sessions or user profiles?

Our OrgId is 111861 and we'd want this enabled on all projects (project ids: 320896, 326774, 321696, 309494, 353585)

 

Userlevel 6
Badge +8

Hi @abhyudaya I have enabled the same configurations I did as above for the Project IDs 320896, 326774, 321696, 309494, 353585. Massively appreciate you coming with specific details from the get go! These should now keep their initial utms moving forward. 

Badge

Thanks for the update. I will monitor our traffic and get back to you. This will be very helpful!

@Denis Holmes We are also facing the same issue. a user’s initial utm attributes get updated whenever they are logged out and perform a new login action.

Can we enable the same functionality as reported above i.e. initial utms get set only once in the lifetime of the user and are never overridden on merging of sessions or user profiles?

Our OrgId is 58305 and we'd want this enabled on all projects (project ids: 220840, 366637 )

 

Reply