# UTM/URL tracking

**URL:** <https://forum.mautic.org/t/utm-url-tracking/28875>\
**Category:** Marketing Support\
**Created:** [August 8, 2023, 9:04am UTC](https://forum.mautic.org/t/utm-url-tracking/28875 "2023-08-08T09:04:31Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![tancredi](https://avatars.discourse-cdn.com/v4/letter/t/b3f665/32.png) [@tancredi](https://forum.mautic.org/u/tancredi)\
**Post date:** [August 8, 2023, 9:04am UTC](https://forum.mautic.org/t/utm-url-tracking/28875/1 "2023-08-08T09:04:31Z")

</div>

**Your problem** If I wanted to track a contact source, using UTM or URL tracking filters will it work on facebook?

_My problem is_ : It doesn’t seem to work.

_Steps I have tried to fix the problem_ : Implemented both UTM source params and URL tracking filters to see if at least one of those would work.

---

<div class="post-metadata">

**Author:** ![leoschuler](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/leoschuler/32/4798_2.png) [@leoschuler](https://forum.mautic.org/u/leoschuler)\
**Post date:** [August 8, 2023, 6:25pm UTC](https://forum.mautic.org/t/utm-url-tracking/28875/2 "2023-08-08T18:25:26Z")

</div>

try the following things:

1. make sure the mautic tracking code is placed in your page
2. test the tracking in an anonymous tab or in another browser / profile where you don’t use to login in mautic/tracking ignore the activity of logged users (sometimes even if they have been logged off)
3. you can create a segment with a particular utm tag and see how many contact appear, if you are using those utm for advertising, for example, chances are the majority will be anonymous
4. you can create a Page hits report, showing only pages containing utm in the url  
in this example I am showing page hits with utm or facebook tracking id to list my fb campaigns:  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/9/941e19eafedc8589b9a5a7f4e09a6b890b7bd3d1.png)

when seeing the page hit result, click in the contact record link and see if the utm tags have been marked in the history timeline:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/8/81a2c0ab40d5b81411eb4d31ef48d44adef408eb.png)

---

<div class="post-metadata">

**Author:** ![tancredi](https://avatars.discourse-cdn.com/v4/letter/t/b3f665/32.png) [@tancredi](https://forum.mautic.org/u/tancredi)\
**Post date:** [August 9, 2023, 11:53am UTC](https://forum.mautic.org/t/utm-url-tracking/28875/3 "2023-08-09T11:53:46Z")

</div>

thank you for following up.  
Are you on Mautic 3.3?

Your screenshot seems different I dont have that filter options.

Here are my segment filters set up:

 ![Screen Shot 2023-08-09 at 2.50.05 PM](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/4/4af43bbd0a55a3f9a1d02af76f5b2a97dc43c17d.png)

---

<div class="post-metadata">

**Author:** ![leoschuler](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/leoschuler/32/4798_2.png) [@leoschuler](https://forum.mautic.org/u/leoschuler)\
**Post date:** [August 15, 2023, 7:30pm UTC](https://forum.mautic.org/t/utm-url-tracking/28875/4 "2023-08-15T19:30:25Z")

</div>

yes, I am on Mautic 3.3.  
the second screenshot is not from the segment screen, it is the history tab of the contact screen

---

<div class="post-metadata">

**Author:** ![leoschuler](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/leoschuler/32/4798_2.png) [@leoschuler](https://forum.mautic.org/u/leoschuler)\
**Post date:** [August 15, 2023, 7:32pm UTC](https://forum.mautic.org/t/utm-url-tracking/28875/5 "2023-08-15T19:32:45Z")

</div>

for the utm source, select just `Facebook` , on visit url put just the baseurl, everything before `?` , remove the `?` and everything after and select the option `contains` instead of `equals`

---

<div class="post-metadata">

**Author:** ![leoschuler](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/leoschuler/32/4798_2.png) [@leoschuler](https://forum.mautic.org/u/leoschuler)\
**Post date:** [August 15, 2023, 7:33pm UTC](https://forum.mautic.org/t/utm-url-tracking/28875/6 "2023-08-15T19:33:47Z")

</div>

ah, and the first screenshot I took is not from the segment screen, its from the report screen

---

<div class="post-metadata">

**Author:** ![tancredi](https://avatars.discourse-cdn.com/v4/letter/t/b3f665/32.png) [@tancredi](https://forum.mautic.org/u/tancredi)\
**Post date:** [August 21, 2023, 4:19pm UTC](https://forum.mautic.org/t/utm-url-tracking/28875/7 "2023-08-21T16:19:34Z")

</div>

I did remove those params and leave just the page URL, change UTM source to Facebook and “contains” filter, still not tracking hits from facebook though, do you have any other suggestion?

---

<div class="post-metadata">

**Author:** ![leoschuler](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/leoschuler/32/4798_2.png) [@leoschuler](https://forum.mautic.org/u/leoschuler)\
**Post date:** [August 21, 2023, 8:09pm UTC](https://forum.mautic.org/t/utm-url-tracking/28875/8 "2023-08-21T20:09:24Z")

</div>

> [@tancredi](#):
>
> params and leave just the page URL, change U

so, did you create a page hit report? can you share a screenshot of the report filter/configuration?

we can take a step back, and just check if your mautic is tracking any page hits, can you see page hit entries on a contact history tab? do you see a page hit specifically for the page you are trying to check?

also keep in mind that if you want to test the tracking you should be using another browser or a anonymous tab, because the tracking will ignore logged users.

---

<div class="post-metadata">

**Author:** ![tancredi](https://avatars.discourse-cdn.com/v4/letter/t/b3f665/32.png) [@tancredi](https://forum.mautic.org/u/tancredi)\
**Post date:** [September 2, 2023, 7:55am UTC](https://forum.mautic.org/t/utm-url-tracking/28875/9 "2023-09-02T07:55:29Z")

</div>

My tracking works fine. Here’s the screenshot of the filter config.  
I’ve added the facebook contains filter and only the page URL.

Yes I’ve been using an anonymous tab to track users.

 ![Screen Shot 2023-09-02 at 9.50.28 AM](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/f/fd4fde3ddc6240f2ce333e9d1f26c9abb5ac46e8.png)

I can see from the results that there are no contacts within my segment.

Also tested with just the facebook filter without success.

 ![Screen Shot 2023-09-02 at 10.05.13 AM](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/d/d585274e3d3aee89acc6bfd48e03ec3ca613a263.png)

---

<div class="post-metadata">

**Author:** ![leoschuler](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/leoschuler/32/4798_2.png) [@leoschuler](https://forum.mautic.org/u/leoschuler)\
**Post date:** [September 4, 2023, 9:47pm UTC](https://forum.mautic.org/t/utm-url-tracking/28875/10 "2023-09-04T21:47:20Z")

</div>

does the page hit appears on the contact history tab?

---

<div class="post-metadata">

**Author:** ![tancredi](https://avatars.discourse-cdn.com/v4/letter/t/b3f665/32.png) [@tancredi](https://forum.mautic.org/u/tancredi)\
**Post date:** [September 8, 2023, 12:50pm UTC](https://forum.mautic.org/t/utm-url-tracking/28875/11 "2023-09-08T12:50:39Z")

</div>

Im getting page hits and history for all the other pages my assumption is that tracking works.

Perhaps I’m not getting enough hits on this specific page where I set the UTM filter. Especially coming from facebook.

I’m not running ads.

Also you mentioned:

> can create a page hit report on the report section to look for pages with the utm tag (the way I propose on aug 8)

Is there a way to filter out contacts from contact search widget for the specific page hits?

I tested as you suggested in incognito mode and I can confirm that tracking works, I can see myself as anonymous user for that page.

 ![Screen Shot 2023-09-09 at 9.57.04 AM](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/0/0725cfa20e5e369489d7bb2f64173f754f572e03.png)

---

<div class="post-metadata">

**Author:** ![leoschuler](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/leoschuler/32/4798_2.png) [@leoschuler](https://forum.mautic.org/u/leoschuler)\
**Post date:** [September 8, 2023, 6:32pm UTC](https://forum.mautic.org/t/utm-url-tracking/28875/12 "2023-09-08T18:32:56Z")

</div>

you can create a page hit report on the report section to look for pages with the utm tag (the way I propose on aug 8). the reason I asked you if the page hit appears in the history tab is to confirm that the tracking is working, you keep saying that the track is ok, but I could not see any evidence that it is.

the only reason I can think for the segment not to be working is that the page hit is not being recorded, and there is only 2 places you can see if the page hit is being recorded, thru the page hit report or history tab.

the contact list is usually ordered by the last activity, so if you open a page tracked by mautic in a incognito tab, at least an anonymous contact should be on the top of your contact list with a page hit as its last activity

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/a/a4c4a31a5a8fd6163e760f970b7ed68a5cd18856.png)

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/f/ff62cc5e647e995f6f33b9dcc95a0a5d734699c1.png)

a report for page visited with utm or comming from facebook or google ads, should look like this:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/1/1cc327ed16cdb32705bb141e76b26a28527b020c.png)  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/b/b03aeb996147930bf7e17e7d3bc8f48f2f076148.png)

---

<div class="post-metadata">

**Author:** ![tancredi](https://avatars.discourse-cdn.com/v4/letter/t/b3f665/32.png) [@tancredi](https://forum.mautic.org/u/tancredi)\
**Post date:** [September 9, 2023, 8:01am UTC](https://forum.mautic.org/t/utm-url-tracking/28875/13 "2023-09-09T08:01:16Z")

</div>

Im getting page hits and history for all the other pages my assumption is that tracking works.

Perhaps I’m not getting enough hits on this specific page where I set the UTM filter. Especially coming from facebook.

I’m not running ads.

Also you mentioned:

> can create a page hit report on the report section to look for pages with the utm tag (the way I propose on aug 8)

Is there a way to filter out contacts from contact search widget for the specific page hits?

I tested as you suggested in incognito mode and I can confirm that tracking works, I can see myself as anonymous user for that page.

The direct hit on the page works but when I click on the link on facebook the UTM tracking doesnt work.

 ![Screen Shot 2023-09-09 at 9.57.04 AM](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/0/0725cfa20e5e369489d7bb2f64173f754f572e03.png)

---

<div class="post-metadata">

**Author:** ![tancredi](https://avatars.discourse-cdn.com/v4/letter/t/b3f665/32.png) [@tancredi](https://forum.mautic.org/u/tancredi)\
**Post date:** [September 11, 2023, 1:16pm UTC](https://forum.mautic.org/t/utm-url-tracking/28875/14 "2023-09-11T13:16:09Z")

</div>

The direct hit on the page works but when I click on the link on facebook the UTM tracking doesnt work.

---

<div class="post-metadata">

**Author:** ![leoschuler](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/leoschuler/32/4798_2.png) [@leoschuler](https://forum.mautic.org/u/leoschuler)\
**Post date:** [September 11, 2023, 5:59pm UTC](https://forum.mautic.org/t/utm-url-tracking/28875/15 "2023-09-11T17:59:45Z")

</div>

that is odd, is the page a mautic landing page or it is hosted outside?

if it is a mautic landing page, did you configure to show the page category as part of the page url? if you did, try accessing the page using different paths to see if there is any difference on the tracking, eg:

[mautic-server.com/page-category/page-id?utm\_campaign=value1](http://mautic-server.com/page-category/page-id?utm_campaign=value1)  
[mautic-server.com/page-id?utm\_campaign=value1](http://mautic-server.com/page-id?utm_campaign=value1)

---

<div class="post-metadata">

**Author:** ![tancredi](https://avatars.discourse-cdn.com/v4/letter/t/b3f665/32.png) [@tancredi](https://forum.mautic.org/u/tancredi)\
**Post date:** [September 12, 2023, 8:40am UTC](https://forum.mautic.org/t/utm-url-tracking/28875/17 "2023-09-12T08:40:53Z")

</div>

It is a page on my website. Do you mean this works only for mautic generated landing pages?  
Does it work on external pages?

My set up mautic subdomain, website main domain.

On a side note, are you aware there is a way to filter out contacts from contact search widget for the specific page hits?  
Is is there any other way to do it, such as via database, can you share how?

I wanted to try something just in case.

---

<div class="post-metadata">

**Author:** ![leoschuler](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/leoschuler/32/4798_2.png) [@leoschuler](https://forum.mautic.org/u/leoschuler)\
**Post date:** [September 12, 2023, 12:12pm UTC](https://forum.mautic.org/t/utm-url-tracking/28875/18 "2023-09-12T12:12:29Z")

</div>

> [@tancredi](#):
>
> is works only for mautic generated landing pages?  
> Does it work on external pages?
> 
> My set up mautic subdomain, website main domain.

tracking works fine on external or internal page, but if you were using internal pages, I would ask you to check additional mautic configuration (but it is not your case)

I don’t believe you can filter out contacts by page hit in the contact widget.

you can create a page hit report in the report section, there you can filter the page hit by contact email (showing the page visited for a specific user or filtering for anonymous user, for example: “email is empty”)

you can also filter the page hit by url, including only pages containing the utm string in the url, for example

---

<div class="post-metadata">

**Author:** ![tancredi](https://avatars.discourse-cdn.com/v4/letter/t/b3f665/32.png) [@tancredi](https://forum.mautic.org/u/tancredi)\
**Post date:** [September 12, 2023, 1:39pm UTC](https://forum.mautic.org/t/utm-url-tracking/28875/20 "2023-09-12T13:39:56Z")

</div>

> tracking works fine on external or internal page

Not in this case though, it doesnt work yet for me. The segment and UTM filter is properly set so why it doesnt work then?

Any other suggestion on how to get it to work with the external page?

> you can create a page hit report in the report section, there you can filter the page hit by contact email (showing the page visited for a specific user or filtering for anonymous user, for example: “email is empty”)
> 
> you can also filter the page hit by url, including only pages containing the utm string in the url, for example

Im trying to check the report under - Visit published pages, it is empty no data here. No hits, nothing.

 ![Screen Shot 2023-09-12 at 3.32.00 PM](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/6/6d0d3c45f72c1e9e395dcebac4a5bc182fdab3a3.png)

The only data set I can see working somehow is time on site which is not really needed.

Any hints on why?

FYI I also set up another segment, with three filters, “page title” and “visited url” “page hit source” all set on contains for direct hits to another specific page that I want to track, I’m not getting any hits/contacts added to my segment though.

---

<div class="post-metadata">

**Author:** ![tancredi](https://avatars.discourse-cdn.com/v4/letter/t/b3f665/32.png) [@tancredi](https://forum.mautic.org/u/tancredi)\
**Post date:** [September 18, 2023, 1:48pm UTC](https://forum.mautic.org/t/utm-url-tracking/28875/21 "2023-09-18T13:48:33Z")

</div>

Any other suggestion on this one?

---

<div class="post-metadata">

**Author:** ![leoschuler](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/leoschuler/32/4798_2.png) [@leoschuler](https://forum.mautic.org/u/leoschuler)\
**Post date:** [September 21, 2023, 7:58pm UTC](https://forum.mautic.org/t/utm-url-tracking/28875/22 "2023-09-21T19:58:59Z")

</div>

> [@tancredi](#):
>
> a set I can see working somehow is time on site which is not reall

I am using mautic 3.3 so I am not sure if this is different:  
There is 2 different Pages report, the visited Page and page hits - visited Page only include internal pages, page hit includes all, so you should create a page hit report.

[Next page](https://forum.mautic.org/t/utm-url-tracking/28875.md?page=2)
