open-formulieren / open-forms

Smart and dynamic forms
https://open-forms.readthedocs.io
Other
35 stars 27 forks source link

Piwik Pro wrong url referrer? #3268

Closed SilviaAmAm closed 1 year ago

SilviaAmAm commented 1 year ago

Product versie / Product version

2.2.x, 2.3.x

Omschrijf het probleem / Describe the bug

Currently, the url referrer sent to Piwik pro is missing the protocol + host (it contains only the path of the referrer).

In the interface of piwik pro, I notice that I can only see the requests without a referrer (i.e. just the first request, when landing on the start page of the form). All subsequent requests have a referrer but they don't appear in the interface.

I tried modifying one of the subsequent requests to also contain the protocol+host part of the URL and then they appear in the interface.

So i think that this is the problem.

Note: We also set just the path for the custom URL (see docs below) https://developers.piwik.pro/en/latest/data_collection/web/javascript_tracking_client/api.html#setCustomUrl

However, the setCustomUrl operation will automatically add the protocol+host if we just pass a path (this is not said in the docs, but I played around with it and I can see this behaviour).

Stappen om te reproduceren / Steps to reproduce

No response

Verwacht gedrag / Expected behavior

No response

Screen resolution

None

Device

None

OS

None

Browser

No response

SilviaAmAm commented 1 year ago

Note: the Matomo API docs specify that the referrer URL should be a full URL: https://developer.matomo.org/api-reference/tracking-api