matomo-sdk-ios icon indicating copy to clipboard operation
matomo-sdk-ios copied to clipboard

Use GET HTTP method for tracking API

Open itdevapps opened this issue 10 months ago • 1 comments

In some reason, our server Matomo web interface cannot process request by POST method. Is it possible to support GET method in SDK? Thank you so much.

itdevapps avatar Apr 17 '24 01:04 itdevapps

Hi @itdevapps, thanks for getting in touch. I wasn't aware this is actually possible. But I just checked the Server docs and it is an option. Currently this is not supported, but I am open for an option on for example the 'URLSessionDispatcher'. So if one wants to switch from POST to GET that would be a way. I am open for a PR 😊 Alternatively you can create your own 'Dispatcher' and use that. That should already work.

brototyp avatar Apr 17 '24 07:04 brototyp