Let the platform do the work

Setting up Google Analytics


Sugar Market enables you to connect Google Analytics to track clicks via UTM codes. A UTM code is a phrase that is attached to a custom URL to track a source, medium, and campaign name or keyword. Sugar Market captures this data from customized URLs and places it in the Web Activity table to make it available in various reports and dashboards.

UTM Codes

Sugar Market has adopted the Google Analytics format for tracking these UTM codes as follows:

UTM Code Purpose Example

Who is sending the data/location of the site on which you are running the campaign. Use utm_source to identify a search engine, newsletter name, or another source. 

utm_source=google (Referrer)


Used for paid search. Use utm_term to note the keywords for this ad.

utm_medium Used to track the advertising medium (e.g. email, banner ad, pay-per-click ad, Twitter ad, etc.). utm_medium=cpc (Source)

Used for keyword analysis. Use utm_campaign to identify a specific product promotion or strategic campaign. Higher-level tracking like "Jan2014" or "Q1Initiative".

 utm_campaign=spring_sale (Keywords)


Used for A/B testing and content-targeted ads. Use utm_content to differentiate ads or links that point to the same URL.

utm_content=logolink or utm_content=textlink (Keywords)

Note: The parameters are case-sensitive and should all be lowercase.

Please note that utm_content and utm_campaign are both used to write the Web Analytics keywords in Sugar Market. These should never be used at the same time. utm_content should be used for paid searches and utm_campaign should be used for email campaigns generated from Sugar Market.

To enable tracking, you need to perform two steps:

  1. Setting Up in Google Analytics
  2. Copying Into Your Email
Setting Up in Google Analytics
  1. Log into Google Analytics and choose your account.
  2. Select "Admin" from the primary menu.
  3. Isolate the View column and scroll down to identify the Personal Tools & Assets section. Select "Segments".
  4. Select the segmentation to associate with the email campaign or select "+ New Segment", and then click the Traffic Sources tab.
  5. Identify or define the following options: Campaign, Medium, Source, and Keyword.
  6. Copy the content from Google Analytics to use in your Sugar Market campaign setup.
Copying Into Your Email
  1. In Sugar Market, create a new email or access an existing email draft.
  2. Enable the Google Analytics option at the bottom of the page, and then populate the appropriate fields from the Google Analytics content.
    SM UG EMB google

After inserting the Google Analytics content, the UTM codes will be automatically appended to each link when anyone clicks a link in your campaign. If you are sending people to a Landing Page from your email, you should also set up your Landing Page to record those UTM values.