Re: Tokens for language paths in URLS

Anonymous
Not applicable

Tokens for language paths in URLS

We have several different websites that are localized by country. We also have a large resource library on our site (each one).

To localize our website, we have different language paths in the URLs. We track each resource that people download by having a separate program and smart campaign that drives people into individual SFDC campaigns. We do not separate SFDC campaigns by country, which means our trigger is based on the form they fill out and the URL they fill out the form on (each URL with the different language paths).

Often we have to fix a previous language path (en-uk to en-gb) or add additional language paths. I want to tokenize this so this process is global and more easily editable and fixable. But I haven't found a way to really do this effectively, has anyone else been able to do this or does anyone have any ideas for ways to do this?

Thank you!

11 REPLIES 11
Anonymous
Not applicable

Re: Tokens for language paths in URLS

Hi Joanna!

Let me make sure I'm understanding the scenario.

A resource like:

  1. Definitive Guide to Compliance Program Assessment | NAVEX Global (UK version)  
  2. Definitive Guide to Compliance Program Assessment | NAVEX Global (US version)

Will have one Marketo program and one SFDC campaign, correct? You'll use a smart campaign that looks at form fill and URL to add people to that program.

Then, when you say you have to "fix" a previous language path, what do you mean by that? Also, can you give me a bit more detail around your thought process for tokens?

Anonymous
Not applicable

Re: Tokens for language paths in URLS

Jamie,

You have the scenario correct.

An example of what I mean by "fix" a previous language path, when something goes from /en-uk/ to /en-gb/ for SEO purposes. The other situation I would like to solve for is when we add localized sites, for example we are in the process of launching a french version of our website that would be /fr-fr/. I would love to NOT have to go through all ~400 assets and add the links with the new french language path.

I've globalized things using tokens in the past so I've been trying to figure out a way to do this with tokens, but I understand there may be a different way of going about this and I'm open to all those things.

Thanks!

SanfordWhiteman
Level 10 - Community Moderator

Re: Tokens for language paths in URLS

Not sure there's any special trick here. Language in your examples is just another segment of the path. As such, if it exists verbatim as a lead field, include that token. If it needs to be derived from other fields, use Velocity.

Anonymous
Not applicable

Re: Tokens for language paths in URLS

From what I understand, you're using the "fills out form" trigger with the constraint of "web page." This constraint's operators are "is" and "is not" which forces you to type the entire URL. It would sure be nice to have a "contains" operator, am I right?!

Tokens are great, but not the solution to this challenge. Have you thought about assigning an asset ID to each piece of content? You can easily use the program number in the Marketo URL to give you a standard ID. Include the asset ID as a hidden field on the form. Once the data value changes to the asset ID associated with the program, make them a member of the Marketo/SFDC campaign and then null out the value or allow it to be overwritten for each resource.

There are a few other ways you could solve...that's the one that popped into my head first!

SanfordWhiteman
Level 10 - Community Moderator

Re: Tokens for language paths in URLS

From what I understand, you're using the "fills out form" trigger with the constraint of "web page." This constraint's operators are "is" and "is not" which forces you to type the entire URL. It would sure be nice to have a "contains" operator, am I right?!

The Referrer constraint of the Filled Out Form activity refers to the hosting page. It does support [Contains] and is the recommended way to track form context.

Anonymous
Not applicable

Re: Tokens for language paths in URLS

Good point!

SanfordWhiteman
Level 10 - Community Moderator

Re: Tokens for language paths in URLS

You can easily use the program number in the Marketo URL to give you a standard ID. Include the asset ID as a hidden field on the form. Once the data value changes to the asset ID associated with the program, make them a member of the Marketo/SFDC campaign and then null out the value or allow it to be overwritten for each resource.

There are a few other ways you could solve...that's the one that popped into my head first!

What I think you're calling the "program number" in the URL hash in the Marketo UI isn't guaranteed to be the same as the Program ID (and isn't documented to be static for a given Program ID).  So you definitely shouldn't key off this value. You might key off (to a degree, as I'll note next) the actual {{Program.Id}}.

But the problem is "when the data value changes to a {{token.value}}" is not something you can check in a native Flow.

Anonymous
Not applicable

Re: Tokens for language paths in URLS

I wasn't suggesting she use a token for the program ID. I'm recommending a unique asset ID for each white paper/piece of content. You can use the Program Number in the URL to generate the Asset ID  (the part after /#PG) https://app-ab17.marketo.com/#PG1466A1 OR you can come up with another system.

SanfordWhiteman
Level 10 - Community Moderator

Re: Tokens for language paths in URLS

You can't use the #PGnnnn because isn't guaranteed to be static. It's a UI artifact that's helpful for locating programs, but shouldn't be used for this purpose. The actual {{Program.Id]} is a native token that is guaranteed unique and accurately reflects the Program in the database.

Either way, the problem is that you can't assign program membership based on two variables matching in a Flow. Or perhaps you didn't describe your theoretical Smart Campaign(s) completely.  A screenshot would help.