How Do UTM Codes Work?
Marketers add UTM codes to the hyperlinks they publish so they can correctly attribute clicks and website traffic to the correct marketing channel, traffic source, campaign, keyword, or content element.

Here’s an example of an ordinary URL that links to our SaaS SEO agency service page:

Now, here’s the same URL with three UTM parameters attached to the end of it (highlighted in yellow):
When a user clicks on either of these links, they’ll be directed to our SaaS SEO agency service page. But when the user clicks the link that contains the UTM codes, our website analytics tool (Google Analytics) captures the information from those parameters and attributes their visit to the indicated source, medium, and marketing campaign.
In this example, any traffic coming to the designated URL through this link will be attributed to LinkedIn (the source), Social Media (the medium, or channel), and a marketing campaign we’re calling SEO Outreach.
Next, we’ll show you the five UTM codes supported by Google Analytics and how they can be used to understand where your traffic is coming from and why.