# Empty Referrer = "Broken event"?

**URL:** <https://community.piwik.pro/t/empty-referrer-broken-event/3868>\
**Category:** Data collection and tags\
**Created:** [April 8, 2024, 2:19pm UTC](https://community.piwik.pro/t/empty-referrer-broken-event/3868 "2024-04-08T14:19:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mbaersch](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/mbaersch/32/35_2.png) [@mbaersch](https://community.piwik.pro/u/mbaersch)\
**Post date:** [April 8, 2024, 2:19pm UTC](https://community.piwik.pro/t/empty-referrer-broken-event/3868/1 "2024-04-08T14:19:38Z")

</div>

Hi,

I am sending data from my own endpoint using tha HTTP Tracking API for quite a while and noticed that tracking stopped working a few days ago. After making sure that my recent code changes are not the main reason I found out that populating the urlref parameter with an empty value leads to missing data.

I see an “Broken event” error in the debugger and “Error message: urlref is not a valid URL: relative URL without a base”. Well… sometimes it really is empty and I do not think that I did something differently in the past. This is my raw payload:

![image](https://europe1.discourse-cdn.com/flex005/uploads/piwikpro/original/2X/f/f8912add2e784033ba71a943df4d89398324cafc.png)

I fixed it in my outgoing requests for now but I would like to know if a parameter that is present but empty really should lead to an error… and: has it been always like that or was there a change on your side?

best,  
Markus

---

<div class="post-metadata">

**Author:** ![anthonybartczak](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/anthonybartczak/32/2430_2.png) [@anthonybartczak](https://community.piwik.pro/u/anthonybartczak)\
**Post date:** [April 8, 2024, 3:30pm UTC](https://community.piwik.pro/t/empty-referrer-broken-event/3868/2 "2024-04-08T15:30:28Z")

</div>

Hi @mbaersch!

We have released an update to the backend as a part of enhanced channel recognition feature.

This broken event might not be intentional, so we have already tasked investigating this.

Sorry for the inconvenience.

---

<div class="post-metadata">

**Author:** ![anthonybartczak](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/anthonybartczak/32/2430_2.png) [@anthonybartczak](https://community.piwik.pro/u/anthonybartczak)\
**Post date:** [April 22, 2024, 9:20am UTC](https://community.piwik.pro/t/empty-referrer-broken-event/3868/3 "2024-04-22T09:20:17Z")

</div>

Hi @mbaersch,

We have checked this and it looks like there wasn’t a change to how we treat the `urlref` parameter for around 2 years. The broken event is being generated intentionally.

---

<div class="post-metadata">

**Author:** ![mbaersch](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/mbaersch/32/35_2.png) [@mbaersch](https://community.piwik.pro/u/mbaersch)\
**Post date:** [April 22, 2024, 1:26pm UTC](https://community.piwik.pro/t/empty-referrer-broken-event/3868/4 "2024-04-22T13:26:38Z")

</div>

Thanks for checking. However, it seems unnecessarily strict do do so(?) HTTP Tracking API users might fall into that kind of trap easily.

---

<div class="post-metadata">

**Author:** ![anthonybartczak](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/anthonybartczak/32/2430_2.png) [@anthonybartczak](https://community.piwik.pro/u/anthonybartczak)\
**Post date:** [April 22, 2024, 7:10pm UTC](https://community.piwik.pro/t/empty-referrer-broken-event/3868/5 "2024-04-22T19:10:12Z")

</div>

> [@mbaersch](#):
>
> However, it seems unnecessarily strict do do so(?) HTTP Tracking API users might fall into that kind of trap easily.

I’d answer yes and no 😅. This behaviour is in place as a precautionary measure - I’d say a good practice from a coding perspective. `urlref` is pretty crucial in 2 cases:

- Channel detection
- Session detection - depending on the tracker settings, a specific `urlref` might cause a session split

Is it necessary? I don’t think so.  
Is showing a broken event helpful? Yes, as it might indicate an error in your HTTP API setup.

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex005/uploads/piwikpro/original/1X/db7013c4fd6a24443b339309db52f14995207737.png) [@system](https://community.piwik.pro/u/system)\
**Post date:** [April 24, 2024, 7:10pm UTC](https://community.piwik.pro/t/empty-referrer-broken-event/3868/6 "2024-04-24T19:10:36Z")

</div>

Closed on April 24, 2024, 7:10pm UTC

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
