I am trying to capture UTM parameters of form fills regardless if the marketo engagement is a known visitor or not, without using Smart Campaigns to write to the UTM fields on Webflow landing pages. This function is currently working on WordPress landing pages.
Our forms have hidden fields set up and work for new users and on WordPress landing pages for known visitors. On Webflow landing pages, the UTM values are not writing for Known Visitors. We are using the recommended JavaScript (thank you @SanfordWhiteman) workaround (https://nation.marketo.com/t5/product-discussions/how-to-add-utm-parameters-to-quot-known-visitor-qu... aka https://codepen.io/figureone/pen/jOWVZMg (CodePen Home MktoForms2 :: Auto-Fill w/Cascade v1.1.2) to our pages.
On Webflow landing pages this recommended JavaScript workaround is a partial success, as the values are stored, but the hidden field values are not being written without use of a Smart Campaign.
Is there an extra step needed on Webflow landing pages so that the UTM Fields are written to for known visitors without a Smart Campaign?
Solved! Go to Solution.
You have a syntax error because of this dangling function declaration:
function getMarketoJs() {
You’ll see this error in the console:
So the code isn’t actually running.
Don't understand what you mean by "stored" vs. "being written"?
That JS only updates hidden fields, it doesn't have 2 different modes.
Let me re-phrase. The JS was applied to our Marketo Forms. The Marketo Forms on our WordPress pages the hidden fields are being updated - thank you @SanfordWhiteman for your recommendations. However, in the same forms on our Webflow pages the hidden fields are not being updated.
Hi @SanfordWhiteman - just a follow-up from my previous email (and from the MUGS-NY meeting). We applied the JS to our forms, however the hidden values are not being updated.
Here is a page that has it (https://www.brighttalk.com/business/ebook/getting-the-most-roi-out-of-your-webinars/?utm_campaign=AD...)
We're hosting the library at:
https://www.brighttalk.com/wp-content/themes/brighttalk-theme/assets/js/teknkl-formsplus-1.0.5.js
Is there a tag not in the correct place?
Thank you @SanfordWhiteman - I sent this to my developers to update!