I am trying to capture the UTM parameter on form fills regardless if the marketo engagement is a known visitor or not, without using Smart Campaigns to write to the UTM fields.
We embed our Marketo forms to WordPress and Webflow landing pages.
Our forms have hidden fields set up and work for new users, but are cleared for known visitors. We use Known Visitor HTML on these forms and we recently added a recommended JavaScript 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. This recommended JavaScript workaround is a partial success, as the values are stored, but the hidden field values are not being written without using a Smart Campaign.
Is there an extra step needed so the UTM Fields are written to for known visitors without a Smart Campaign?
No Smart Campaign is ever needed, only the JS if you’re using KV HTML.
Please link to your page.
Here's the link to one of our pages: https://www.brighttalk.com/business/ebook/co-presenting-webinars-your-ultimate-guide-to-partner-pres...
Can't see where you've deployed my code to hidden-field-enable KV HTML.
None of these occurrences of MktoForms2
contain that code:
Can you point to the file that contains that JS?
Here is the JS file: https://reg.techtarget.com/js/forms2/js/forms2.min.js
Thank you
THis is the custom JS that my design team provided me: https://www.techtarget.com/wp-content/themes/tech-target/assets/javascript/techtarget-marketo.js?ver...
That JS is pretty bad (its attempt to wait for the Forms 2.0 library to be loaded is plainly buggy) but more important, it has nothing to do with KV HTML. And that JS isn’t even loaded on your page!
Thank you for letting me know.
Thank you again for letting me know about our code. We updated the code via Google GTM and started testing. Unfortunately, the Known Visitors is not capturing/writing in Marketo, even though we can see the values on the local level. Can you review (starting with line 442) and let us know if we missed anything? The code is on this page: https://www.techtarget.com/infographic/how-marketers-can-get-the-most-roi-out-of-third-party-researc...
Thank you again.