Skip to main content
Solved

Klaviyo tracking overwrites custom properties


Forum|alt.badge.img+2

I have a field on my signup form that sets the profile’s “Status” property to a certain value, eg “Start”. As the user progresses through our flow we update this field to keep track of where they are in our funnel.

However, I’m finding that if the user navigates to the site, the klaviyo javascript snippet executes a `track` call which replaces the value of this property with the original value that is included with the signup form (ie, “Start”) - as a result we lose the status of that user.

How do we prevent this field being overwritten?

Best answer by dmpatrolio

I was just using the standard JS tag, ie:

<script async="" type="text/javascript" src="https://static.klaviyo.com/onsite/js/klaviyo.js?company_id=XXXX"></script>

I ended up working around this by not setting this field as a hidden field in my signup form, and instead setting it via the API when the form redirects to another URL after submission.

View original
Did this topic or the replies in the thread help you find an answer to your question?

2 replies

Dov
Forum|alt.badge.img+61
  • Klaviyo Alum
  • 1493 replies
  • June 16, 2021

Hello @dmpatrolio,

Thanks for sharing your question with the Klaviyo Community.

Can you specify which Klaviyo javascript snippet you’re referring to? Also, do you have any other custom scripts/forms or anything that could potentially be updating this property to the original value like a 3rd party or subsequent sign-up form? Update preferences page, etc?

 


Forum|alt.badge.img+2
  • Author
  • Contributor I
  • 2 replies
  • Answer
  • June 24, 2021

I was just using the standard JS tag, ie:

<script async="" type="text/javascript" src="https://static.klaviyo.com/onsite/js/klaviyo.js?company_id=XXXX"></script>

I ended up working around this by not setting this field as a hidden field in my signup form, and instead setting it via the API when the form redirects to another URL after submission.