UTM Parameters - Setting Up Fields in Marketo & SFDC | Community
Skip to main content
Level 1
January 30, 2025
Solved

UTM Parameters - Setting Up Fields in Marketo & SFDC

  • January 30, 2025
  • 1 reply
  • 1305 views

Hi everyone,

I'm setting up fields to capture UTM parameters and sync to SFDC, much like this post. My SFDC admin just created the fields in our SF instance, and created them as text fields with a max of 255 characters which is how our parent company has them set up on their SF. 

The fields appearing successfully in Marketo as text fields - however, this post from 2014 recommends that these be set up as string instead of text. Which is the correct field type, string or text? Can I change the Marketo field type to string without changing the SFDC field type?

Best answer by Miray

Hi 

 

The main difference between string fields and text fields lies in the number of characters they can accommodate. A string field typically has a limit of 255 characters, while a text field can hold up to 30,000 characters.

A string field is ideal for storing concise data such as addresses, names, or simple custom data. On the other hand, a text field is better suited for storing longer pieces of information, like comments from a form or long text.

For UTM parameters, which should not be very long, a string field is usually the better choice. However, if you need to store historical UTM parameters, a text field would be more appropriate.

1 reply

Miray
Community Advisor and Adobe Champion
MirayCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
January 30, 2025

Hi 

 

The main difference between string fields and text fields lies in the number of characters they can accommodate. A string field typically has a limit of 255 characters, while a text field can hold up to 30,000 characters.

A string field is ideal for storing concise data such as addresses, names, or simple custom data. On the other hand, a text field is better suited for storing longer pieces of information, like comments from a form or long text.

For UTM parameters, which should not be very long, a string field is usually the better choice. However, if you need to store historical UTM parameters, a text field would be more appropriate.

bekkah
Level 2
January 30, 2025

Agreeing with the recommendation. I have UTM parameters set up in my instance. The fields in Marketo are set up as a string but we map the field to our SFDC field as a picklist. You may want to consider using picklists for some of your UTM parameters like the source or medium to prevent variations across users. i.e. paidsearch or paid_search.

SanfordWhiteman
Level 10
January 31, 2025

Hmm, not sure a picklist is a good idea, because Marketo will not enforce it.

 

You end up with values that can’t be synced to SFDC, which overall is worse than having irregular values.

 

The picklist enforcement ultimately needs to be procedural, i.e. your UTM builder has a picklist and you copy from there.