UTM Formatting Tips

Learn how to format UTM links properly in GW Drupal to keep tracking consistent.

 


Formatting UTM Links in GW Drupal


Top-Level Domain Example:

When linking directly to the main site URL, add the UTM parameters after the slash (/).

  Example:

https://drupaldemo.gwu.edu/?utm_source=fun&utm_campaign=testing&utm_medium=the-internet


Internal Page Example:

When linking to an internal page, do not add a slash (/) before the UTM parameters. Attach the UTM parameters directly after the page URL.

  Example:

https://drupaldemo.gwu.edu/utm-formatting-tips?utm_source=fun&utm_campaign=testing&utm_medium=the-internet

  Incorrect:

https://drupaldemo.gwu.edu/utm-formatting-tips/?utm_source=fun&utm_campaign=testing&utm_medium=the-internet 

Drupal will treat the link as slightly different, causing the page to refresh. When it refreshes, the UTM parameters will be stripped off, and the tracking information will be lost.
 

Extra Tip - When Links Have Two Question Marks:

IMPORTANT: If your URL contains two question marks (?), replace the second one with an ampersand (&). Two question marks might break the URL.

Example: for DAR events links, use an ampersand to separate the tracking string from the rest of the url:
https://connect.gwu.edu/site/Calendar?id=129257&view=Detail&utm_campaign=events-dar&utm_medium=email&utm_source=sxsw-austin 
 


 

Formatting Anchor Links Correctly to Preserve UTMs


Example Link with UTM:

https://drupaldemo.gwu.edu/utm-formatting-tips?utm_source=fun&utm_campaign=testing&utm_medium=the-internet
 

Incorrect Link  

Incorrect (linking to full url path with anchor ):

When linking to an anchor on the same page, do not use the full URL (e.g., https://drupaldemo.gwu.edu/utm-formatting-tips/#anchor-link).

Correct Link

Correct:

Instead, just link to the anchor portion: #anchor-link.

 

GW Drupal is the official website content management system for the George Washington University's administrative and academic websites. It is an enterprise service at GW, and is co-managed by GW Communications & Marketing Digital Support and GW Information Technology. While GW IT maintains the codebase, GW Communications & Marketing provides design and website project support, as well as training and troubleshooting support.

This website is meant to provide step-by-step instructions, self-paced tutorials, demonstrations of features, and other tips and tricks.

Lorem ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.Lorem ipsum is simply dummy text of the printing and typesetting industry. 

Lorem ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.Lorem ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.Lorem ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

  ANCHOR LINK (id=anchor-link)