Custom String Field vs Custom URL Field | Community
Skip to main content
Angus_McCann1
Level 3
March 30, 2020
Solved

Custom String Field vs Custom URL Field

  • March 30, 2020
  • 1 reply
  • 6415 views

We are capturing a personalized cart abandon URL for a cart abandon email and passing it into a field in Marketo.


My question is do I populate it into a URL field or a String field? Is one better than another for a specific reason? I know when populating a link via a token, in order to have the reporting register the token as a link, we need to leave the protocol (http:// or  https://) outside of the value in the token.

 

Does capturing the URL in a URL field circumvent this? Do we need to leave off the protocol? Etc I'm just struggling with what the difference is between the URL field and a string and the doc isn't very clear on that.

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

If you wish to store only urls in this custom field then I would suggest using URL datatype as with the URL datatype you may store the protocol and use the token for same without pre-appending the protocol like string field. Also the string field has the character limit of 255, this might be bottleneck for larger urls.

 

1 reply

Darshil_Shah1
Community Advisor and Adobe Champion
Darshil_Shah1Community Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
March 30, 2020

If you wish to store only urls in this custom field then I would suggest using URL datatype as with the URL datatype you may store the protocol and use the token for same without pre-appending the protocol like string field. Also the string field has the character limit of 255, this might be bottleneck for larger urls.

 

Angus_McCann1
Level 3
March 30, 2020

Awesome! Thank you so much! That's exactly what I was looking for!

Darshil_Shah1
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
March 30, 2020

Anytime 😉