Writing Language URL Parameter to Lead/Contact Record | Community
Skip to main content
Troy_Larson
New Participant
November 5, 2020
Question

Writing Language URL Parameter to Lead/Contact Record

  • November 5, 2020
  • 1 reply
  • 3992 views

Hi all - 

 

So I have a language parameter in our URLs. For example, ?lang=fr . I also have a Preferred Language field in Marketo. What I'd like to do/curious about how to do this, is take that URL parameter and incorporate some logic to write that field. 

 

I know I can create a campaign that looks for people who :visited any web page with querrysting containing ?lang=fr" but that only works for "known" people. 

 

Any tips on ways to do this for anonymous people? Or ways to basically make it functional at a more global level. 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

SanfordWhiteman
New Participant
November 5, 2020

Only with 2 things:

 

  • JS to transplant that value into the hash, so it'll be part of what Marketo considers the "Web Page" for token purposes 
  • a webhook-compatible service to parse the value out and return it to lead field

We have this type of thing running in a few places.

Troy_Larson
New Participant
November 5, 2020

Hey Sandy - 

 

Thanks for the tip. So, if I were to go to JS route, I would put that in the page template and I could then get it to populate my Preferred Language field with a value from a pick list, correct?

SanfordWhiteman
New Participant
November 5, 2020

Oh, those 2 bullets have to be used together. The JS is to get the value explicitly into the {{trigger.web page}}. The hook stamps that onto a field value.

 

However, we may not be looking at the wider picture yet. An anonymous Web Page Activity report can show anonymous leads by (hard-coded, to be fair) language parameter. What exactly are you looking to do — report, trigger, set a value, etc.?