Articles on: Notifications (Legacy)

Add UTM Tracking Link in Email Notifications


Plans: All plans Platforms: All platforms


Overview


This tutorial explains how you can use UTM tracking links and append UTM parameters in AfterShip Tracking’s email notification links to gain deeper insights and track the performance of your email notifications.


You'll need a configured Google Analytics account to use these parameters for data analysis in Google Analytics.


What you’ll learn


In this article, we will discuss:




What is UTM tracking


UTM tracking is a way to track traffic sources and user behavior on a website by adding parameters to the destination URLs. Add UTM tracking in your email notification links if you’d like to track sources and conversions from emails in Google Analytics.



Add UTM parameters to URLs


You can add the UTM parameters to your destination URLs as follows:


  • Separate the parameters, such as utm_source and utm_medium, from the URL with a question mark
  • List the parameters and values as pairs separated by an equal sign
  • Separate each parameter-value pair with an ampersand


  1. Go to Notifications > ** Emails and SMS ** in the AfterShip Tracking admin
  2. Select the notification template to which you want to add the UTM parameters.
  3. Click Edit > Edit email template



  1. Navigate to the Destination URL field of the email’s CTA button.


Depending on how you've configured the email body, CTA buttons, and destination URL placement will differ for each template.


  1. Add the UTM parameters mentioned below after the |TRACKING_URL| merge tag


Example:


  1. |TRACKING_URL|?utm_source=aftership&utm_medium=email
  2. http://www.example.com/?utm_source=aftership&utm_medium=email




  1. Click Save


View data in Google Analytics


You can find the "Session source/medium" in your Google Analytics account under the Traffic Acquisition report.



Updated on: 04/03/2024