Re: Empty utm's from embedded form on lead records

James_Zolinski
Level 4

Empty utm's from embedded form on lead records

Recently embedded a form on our website using hidden utm's, but when leads fill out the form, the utm's do not appear.

Form with hidden utm's

utm.JPG

When I look at the activity log, I see the utm's are there

activity.JPG

But the utm's are not populating on the lead record when the form is filled.

I do see that on the activity log the query param is missing, but the url for the form does have the query params: https://xxxxxx.com/#?utm_medium=website&utm_source=organic&utm_campaign=contact_me

What am I missing to make this embedded form populate the utm's?

6 REPLIES 6
SanfordWhiteman
Level 10 - Community Moderator

Re: Empty utm's from embedded form on lead records

What do you mean by "the URL for the form has the query params"?

Either the person viewed the page w/params or not. It'll show the form either way. If the Visit Web Page didn't have the params... there weren't params.

James_Zolinski
Level 4

Re: Empty utm's from embedded form on lead records

Aren't the query params the utm string after the ".com/#?" ? I thought in order for the query params to appear in the activity log they needed to be included in the url, yes/no?

The form is hosted on our wordpress page, the url for the page where the form is embedded is www.companyname.com. The "Contact Me" button that leads click to fill out the form has the url and params:

https://xxxxxx.com/#?utm_medium=website&utm_source=organic&utm_campaign=contact_meā€‹

If I understand correctly, in order for this form to populate utm's correctly, I need to create a trigger or filter of Visit Web Page and a constraint of utm_medium=website&utm_source=organic&utm_campaign=contact_meā€‹

Or am I just not understanding query params?

Nicholas_Manojl
Level 9

Re: Empty utm's from embedded form on lead records

In order for the form to populate the UTMs, you just need to visit the page with the form and have the utm params present in the URL. No need for triggers or smart campaigns.. just a form that can scrape the values out of the URL and populate your hidden fields.

James_Zolinski
Level 4

Re: Empty utm's from embedded form on lead records

So, I guess Iā€™m just really confused what to do here. In my url: https://xxxxxx.com/#?utm_medium=website&utm_source=organic&utm_campaign=contact_me<https://nation.marketo.com/external-link.jspa?url=https%3A%2F%2Fprepass.com%2F%23%3Futm_medium%3Dwebsite%26utm_source%3Dorganic%26utm_campaign%3Dcontact_me>, are you saying I donā€™t have any query params? Could you please explain in more detail what query params are and what I need to do to make this work.

SanfordWhiteman
Level 10 - Community Moderator

Re: Empty utm's from embedded form on lead records

SanfordWhiteman
Level 10 - Community Moderator

Re: Empty utm's from embedded form on lead records

Hash comes after query string, not before. In your example there is no query string.

URL format is

protocol://host/path/and/file?query=string#hash

The URL

http://example.com/#?utm_something=value

has no querystring. Rather, the hash is "#?utm_something=value" because the question mark has no special meaning after the hash begins.