SOLVED

Re: Capturing UTM Values for Known Users on Webflow

Go to solution
agolove
Level 2

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?

1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: Capturing UTM Values for Known Users on Webflow

You have a syntax error because of this dangling function declaration:

   function getMarketoJs() {

 

You’ll see this error in the console:

2024-09-12 10_59_52-Getting the Most ROI Out of Your Webinars — Ablaze Floorp.png

 

So the code isn’t actually running.

View solution in original post

5 REPLIES 5
SanfordWhiteman
Level 10 - Community Moderator

Re: Capturing UTM Values for Known Users on Webflow

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

 

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

agolove
Level 2

Re: Capturing UTM Values for Known Users on Webflow

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.

agolove
Level 2

Re: Capturing UTM Values for Known Users on Webflow

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?

 

SanfordWhiteman
Level 10 - Community Moderator

Re: Capturing UTM Values for Known Users on Webflow

You have a syntax error because of this dangling function declaration:

   function getMarketoJs() {

 

You’ll see this error in the console:

2024-09-12 10_59_52-Getting the Most ROI Out of Your Webinars — Ablaze Floorp.png

 

So the code isn’t actually running.

agolove
Level 2

Re: Capturing UTM Values for Known Users on Webflow

Thank you @SanfordWhiteman - I sent this to my developers to update!