URL Parameter Token

URL Parameter Token

We would love to be able to get or set URL parameters via a token.  In many cases we are tracking sources from outside media with a URL parameter (i.e. source=partner).  It would be great to be able to continue to pass that parameter along to other URLs on the landing page with something like 'http://markeo-landingpage/page.html?{{URLToken.("source)}}.  In this manner, the token would be continued to be passed to other Marketo landing pages for processing on Form Fills.
9 Comments
Anonymous
Not applicable
Hi Brennan,

I might be missing a concept on the idea, but what stops you from doing this with program tokens today?

You should be able to create something like "{{my.UTM Source}}" as a program parameter and fill it in with whatever you'd like.  This is if it was obviously coming from an email.  If it was coming from 3rd party display or another external source, you'd just manually give them the link.  

Am I way off track?
Brennan_McAdam2
Level 4
I'm actually seeting the parameter dynamically from extental sources.  So I should revise the example I provided to 'http://markeo-landingpage/page.html?partner={{URLToken.("source")}}.  So the parameter value will change depending on the incoming source.  Currently I am tracking 43 source values and writing a Smart Campaign and adding them via on visit trigger feels burdern some.  I am thinking of something how PHP allows you to pull the parameter and then dyanmically set the URL's for the page with that parameter.  I am assuming I am not getting a form submit on the first hit where I could capture it on the lead record.  Instead, I am trying to pass that along to additional links in the Landing page.
Anonymous
Not applicable
I had a similar question here and got no responses: http://community.marketo.com/MarketoDiscussionDetail?id=90650000000PjCmAAK

I
 think what Michael is suggesting above would be ideal, but fields aren't set until the person submits a form.  So "{{my.UTM Source}}" would be null until the person hits "submit".
Brennan_McAdam2
Level 4
Yes, they are similar.  You could actually create a Smart Campaign with a trigger of Visits Web Page to update the record.  My issue is the I need to take only the value of the parameter and not the entire URL.  So if you have a limited parameter list it can be done via the Smart Campaign.
Anonymous
Not applicable
Oh, makes sense.  I'll try out your suggestion, but I also have countless parameters to deal with.  Right now, we're only testing Marketo on a few keywords so I may be able to use that method.

Thanks.
Brennan_McAdam2
Level 4
It should work, but it is not really a scalable solution.  Good luck and let me know if you solve the scale issue.
Anonymous
Not applicable
Hi Brennan,

So if I understand it correctly, you want ALL of the other links on your landing page to carry this parameter across?

Why not just store the source in the cookie and then capture it via any of the forms that they submit later?
Brennan_McAdam2
Level 4
I see what you are saying.  I suppose I am missing how I can set the cookie in the visotor browser when they visit the Marketo page?  The parameter is passed via the URL from an external site or email. 
kh-lschutte
Community Manager
Status changed to: Already have it