Skip to main content
Level 2
Sep 10, 2024 4:39 PM UTC
Solved

Capturing UTM Values for Known Users on Webflow

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?

SanfordWhiteman
SanfordWhitemanAccepted solution
User Group Leader
Sep 12, 2024 3:00 PM UTC

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?

 


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.

5 replies

SanfordWhiteman
User Group Leader
User Group Leader
Sep 10, 2024 10:13 PM UTC

Don't understand what you mean by "stored" vs. "being written"?

 

That JS only updates hidden fields, it doesn't have 2 different modes.

Translate
agoloveAuthor
Level 2
Sep 11, 2024 12:55 PM UTC

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.

Translate
agoloveAuthor
Level 2
Sep 12, 2024 1:33 PM UTC

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?

 

Translate