> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.metalocator.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Tracking Lead campaign effectiveness with UTM Codes

When a lead is captured in MetaLocator, if the page was loaded with UTM URL parameters in place, those codes will be saved with the lead. There is no special configuration to implement this strategy.

For more information on how to use UTM codes, [and what they are for, see here](https://www.semrush.com/blog/utm-tracking-codes-google-analytics/).

For example, if the page on your site where the locator is installed is yourwebsite.com/locator/, then the same page with UTM parameters would be yourwebsite.com/locator/?utm_source=newsletter&utm_medium=web&utm_campaign=2023_sale

If a lead is then captured by the locator on that page, it will be found in MetaLocator's Lead section with the same UTM codes as shown below:

[![](https://storage.crisp.chat/users/helpdesk/website/-/f/8/4/c/f84cf39253553000/1eaab1df-d634-4ef4-80c7-0b9112_16ojva7.png)](https://downloads.intercomcdn.com/i/o/765593076/1ca17673a562ad8e6dae672e/image.png?expires=1794512700&signature=dac3d118572c3507d00cbc4dd993947b1718923412ad39b3bfcdd047b44215ba&req=cyYiE8B9nYZZFb4f3HP0gBI9j64xDy9skz1rvkRqjos%2BusNP0OQ9gluGsyLF%0A63BWBufJ9UPLsMVIYA%3D%3D%0A)

These UTM codes have also been added to the PaaS API response and the lead bulk export file, found under Leads > All Leads > Export.

## Passing UTM Codes to MetaLocator

UTM codes are traditionally for inbound data source tracking and will be automatically taken from the URL of the page on which the MetaLocator interface is installed. To programmatically pass UTM parameters to the MetaLocator Interface, they can be passed as [deep linking](https://intercom.help/metalocator/en/articles/1656158-deep-linking-and-dynamic-options) parameters.

For example, if the page on your site where the locator is installed is yourwebsite.com/locator/, then the same page with forced UTM parameters would be yourwebsite.com/locator/?ml___utm_source=newsnetter&ml___utm_medium=web&ml___utm_campaign=2025_sale

Like all deep linking parameters, these can also be [provided via JavaScript](https://intercom.help/metalocator/en/articles/1656158-deep-linking-and-dynamic-options) as follows:

```
var ml___params = {  
'utm_source':'newsletter',  
'utm_medium':'web',  
'utm_campaign':'2025_sale'  
};
```

In the case where both URL parameters and `ml___params` values are provided, the URL parameters will be preferred.