> For the complete documentation index, see [llms.txt](https://docs.iheartjane.com/partner-success/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.iheartjane.com/partner-success/marketing-with-jane/marketing-attribution.md).

# Marketing Attribution

![](/files/-MB1Nef0-b_VgV-5jbsd)

## What is Marketing Attribution?

Marketing attribution with Jane is essentially tracking how your customers came to your menu and measuring the ROI of your campaigns based on conversion.&#x20;

## How do you set up your menu to track this?

You will want to add the attached code into the Head of every page on your website. If you're using WordPress, Squarespace or a similar builder, you should be able to enter this just once into the main template of your site.

You'll want to add this to every page as many users might go from your menu, to your homepage and back again. By having this code on every page, we can track that it is the same user during the same session.&#x20;

If you need any help setting this up, just let us know!

```
<script type="text/javascript">
document.addEventListener("click", function(e) {
      var linkNode = e.srcElement.href ? e.srcElement : e.srcElement.parentNode;
  if(linkNode.localName !== "a" || linkNode.href.endsWith("#")) return;
  
  e.preventDefault();
  var currentQuery = location.search.substr(1);
  var url = new URL(linkNode.href);
  url.search += (url.search.indexOf('?') > -1 ? '&' : '?') + currentQuery;
  var dst = e.target;
  if (dst.target) {
window.open(url.toString(), dst);
  } else {
location.assign(url.toString());
  }
});
</script>
```

## How do you send out your campaigns?

To send out your campaigns, you'll want to make sure you send out a UTM link. UTM links will have customizable components:

* **Source** - where your visitors will be clicking on this link (ie. Newsletter)
* **Medium** - type of place your visitors are finding your link (ie. email)
* **Campaign** - the event or theme of marketing (ie. 4th of July)
* **Piece of Content** - helps you track specific links, for instance if you have 3 links of your newsletter and want to see which one folks click the most (ie. bannerad, sidebarlink etc) \* optional
* **Term -** when you're using a PPC ad through Google or similar services, this will help you track traffic from that link (ie. holiday savings) \* optional

Regular Link:

[http://bradysbuds.com/menu](http://bradysbuds.com/menu?utm_source=Newsletter\&utm_medium=Email\&utm_campaign=4th%20of%20July\&utm_term=holiday%20savings\&utm_content=banner%20ad)

Example of that link made into a UTM link:

<http://bradysbuds.com/menu?utm_source=Newsletter&utm_medium=Email&utm_campaign=4th%20of%20July&utm_term=holiday%20savings&utm_content=banner%20ad> . &#x20;

### Struggling to build your links?

Check out this link generator!: <https://ga-dev-tools.appspot.com/campaign-url-builder/>&#x20;

## Use your Jane Analytics to measure the success of your campaigns

[You can track and measure your campaign success here. ](https://retail.janeanalytics.com/marketing-attribution/)Keep in mind this page refreshes every 6-8 hours.

![](/files/-MB1T7qkGETK5RFt_mAM)

On the Marketing Attribution tab in your Jane Analytics, you'll be able to see:

* UTM Source & Campaign - to help you identify the metrics from specific links (not sure where these come from? Check out the section above to generate your links!)
* Menu Clicks - to help you see how many times your link was clicked
* Interactive sessions - of the people who clicked on your links, how many people interacted with your menu? If they click on a product, select a filter or search for anything these will count as interactive sessions
* Bounce Rate - of the people who clicked on your menu, what percentage did not interact and simply left your site?
* Checked out # - How many people from this link completed a purchase from your menu?
* Checked out $ - What was the amount purchased from folks that checked out from this link?
* Checkout Conversion - The overall conversion rate of people from this campaign based on the number of people who clicked the link

## Find trends in your Jane Data

![](/files/-MB1V0xlPwabZ3rRJF59)

On the Marketing Attribution tab, you can also gain insights by checkout your UTM Activity for Export

From here, you can look for trends in products viewed from specific campaigns, search terms or abandoned carts. Everything here can always be exported to Excel or searched to track any specific events.\
&#x20;
