Hello,
We are using embedded Klaviyo forms on our marketing landing pages built with Zipify in Shopify. I want to pass UTMs from the inbound URL via hidden fields in a Klaviyo embedded form to Klaviyo. The reason for doing this is for marketing source attribution for a Profile. However, Klaviyo support tells me that this is not supported. They say the best way to accomplish this is to use javascript to get the UTMs parameters and push them into Klaviyo via their API.
I have a script that gets the UTMs (Source, Campaign, Medium, Content, Term) and then pushes those to Klaviyo. I need to activate this upon Button Submit for the Klaviyo Embedded Form. Can anyone tell me how best to trigger the script upon Button Submit?
Thanks!
Roy
Best answer by Walid
View original