Here's the corrected version of your text:
Hello,
I have a technical question about UTM tracking.
Let's assume a user clicks on an ad on Facebook. They are then redirected to my website with a URL containing UTM parameters. From here, there are two possible scenarios:
-
The user is not logged in and navigates through my website, with the UTM parameters being passed from URL to URL until they finally create an account. This triggers Klaviyo profile creation or association in the backend if the email already exists in Klaviyo. I store the
profile_id
in my database. -
The user is already logged in, and I can retrieve their email address using my authentication module.
My question is: how do I link the UTM parameters in the URL to the Klaviyo profile to populate the sections like "How did the user find you?" or "How did the user find you recently?" I noticed that if I add utm_email
to the URL, it works, but I'm not sure if it's good practice. I also found that using klaviyo.push(['identify', { 'email': ...}])
doesn’t always update the profile— for example, if I change a UTM in the URL and reload the page, it doesn’t reflect the change in Klaviyo (even if it did it the first time i loaded the page).
I also noticed that 'Active on Site' works without doing anything special, so it seems like Klaviyo can identify users via cookies or something similar. However, I don’t see anything like that in my cookies.
What am I missing or what can I do to fix this?
Many thanks,