# Bitlybot generates page-hits for Contact

**URL:** <https://forum.mautic.org/t/bitlybot-generates-page-hits-for-contact/33130>\
**Category:** Product Support\
**Created:** [August 14, 2024, 9:15am UTC](https://forum.mautic.org/t/bitlybot-generates-page-hits-for-contact/33130 "2024-08-14T09:15:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![larsmattia](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/larsmattia/32/13016_2.png) [@larsmattia](https://forum.mautic.org/u/larsmattia)\
**Post date:** [August 14, 2024, 9:15am UTC](https://forum.mautic.org/t/bitlybot-generates-page-hits-for-contact/33130/1 "2024-08-14T09:15:21Z")

</div>

**Your software**  
My Mautic version is: 5.1.0  
My PHP version is: 8.1.29  
My Database type and version is: MariaDB 10

**Your problem**

bitlybot creates page hits on contact when sending text messages that contains bitly shortened links.

I’ve created this simple campaign to send a text message and to inform a user about the visit that happened:

![sms-test-campaign](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/b/ba73d18de7cfc668af525ab18cd12a6462b6e5a2.png)

The message is only a link:

 ![sms-test-text-message](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/0/0cfdbe7cd9286644a4df5702451babdd023d5ee8.png)

The contacts events after the campaign fired:

 ![sms-test-contact-events-overview](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/7/7ef3ae1965c70e3e0f7f9eebbeaf134cc4e1153d.png)

When looking up the event details I can see 3x bitlybot (probably bitly checking the link) and 2x Google-PageRenderer (probably the Google Messages app on Android)

 ![sms-test-concat-event-details](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/8/884656284813571cace62d66f0a31b5866ce892e.png)

At least the bitlybot is contained in the list of bots not to track in Mautic settings. I would expect to not see page hits by bitlybot.

These errors are showing in the log: none

Steps I have tried to fix the problem: tried to understand the PHP code, but I’m not very fluent on PHP. 🙂

GIhtub Issue: [bitlybot recorded as page hit](https://github.com/mautic/mautic/issues/14053) #14053

---

<div class="post-metadata">

**Author:** ![larsmattia](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/larsmattia/32/13016_2.png) [@larsmattia](https://forum.mautic.org/u/larsmattia)\
**Post date:** [August 14, 2024, 9:28am UTC](https://forum.mautic.org/t/bitlybot-generates-page-hits-for-contact/33130/2 "2024-08-14T09:28:06Z")

</div>

The link in the text message is a Mautic Landing Page. Wasn’t able to use the short-code `{pagelink=8)` because the link isn’t shortened when using it.

---

<div class="post-metadata">

**Author:** ![larsmattia](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/larsmattia/32/13016_2.png) [@larsmattia](https://forum.mautic.org/u/larsmattia)\
**Post date:** [February 19, 2025, 5:45am UTC](https://forum.mautic.org/t/bitlybot-generates-page-hits-for-contact/33130/3 "2025-02-19T05:45:55Z")

</div>

It looks like only Mautic Landing pages are recording Page hits from banned user-agents.

a possible solution outlined here: [bitlybot recorded as page hit · Issue #14053 · mautic/mautic · GitHub](https://github.com/mautic/mautic/issues/14053#issuecomment-2660253622)
