Popup Form Submission Tracking

  • 16 December 2021
  • 3 replies

Userlevel 2
Badge +5

I would like to track when a Form is Submitted from profiles so that I can update the Properties. For example, If a user clicks on an action of a popup form, I want to be able to track and see if they have clicked that action and then update their profile with the with a specific Tag. 

I have seen the URL Articles here: Please let me know if this Code will work:


window.addEventListener("klaviyoForms", function(e) {
if (e.detail.type == 'open' || e.detail.type == 'embedOpen') {
_learnq.push(['track', 'Viewed Form - Tracked Profile', {
'formId' : e.detail.formId
if (e.detail.type == 'submit' || e.detail.type == 'redirectedToUrl') {
_learnq.push(['track', 'Submitted Form - Tracked Profile', {
'formId' : e.detail.formId

Best answer by alex.hong 16 December 2021, 21:20

View original

3 replies

Userlevel 7
Badge +58

Hi there @jmacman,

Thanks for posting your question to the Community and I hope I can offer some info regarding your question!

As outlined in that document you linked, that would be the proper syntax to track form views and submissions for the profiles. If you wanted to tag people with a property, you can do this if you add a hidden field to each of your forms, as shown in this article.
These will essentially tag all the profiles that fill out a form with the property you set for the hidden field, and you can set up conditional splits or flow filters based on these properties that send people down paths based on these properties, or filter them out entirely. 
This way, even if all the forms submit to the same list, they will each apply a hidden property that can be used to identify people. 

Hope this helped!

Userlevel 2
Badge +5

@alex.hong thanks...can you please give me the correct link to the properties article.

Userlevel 7
Badge +58

Apologies for that @jmacman! The link should be fixed and working now. Unsure what went wrong there but thanks for the callout!