matomo-org / piwik-dotnet-tracker

C# API client SDK for the Piwik Tracking API
BSD 3-Clause "New" or "Revised" License
74 stars 47 forks source link

404 while tracking ECommerceOrders and CartUpdates #73

Closed mirkomaty closed 5 years ago

mirkomaty commented 5 years ago

The matomo.php can be reached and it tracks the user interactions etc. But if it comes to tracking ECommerceOrders and cart updates, the answer is a 404. This is a sample request from the web server log:

GET /piwik.php idsite=2&rec=1&apiv=1&r=531306&cip=93.208.239.194&uid=e03626b2-fa10-400a-ac1b-4eee0640af5e&_idts=1569310788&_idvc=18&_viewts=1569310788&_id=17eb15fa88371f61&url=https%3a%2f%2fsite.mycustomer.de%2fumbraco%2fapi%2fWarenkorb%2fGetSapPreiseFromWarenkorb%3flcid%3d6&urlref=https%3a%2f%2fsite.mycustomer.de%2fprodukte%2f&idgoal=0&revenue=699.37&ec_items=%5b%5b%22130462%22%2c%22Agnus+castus+AL%2c+100+Filmtabletten+(N3)%22%2c%5b%22Artikel%22%5d%2c%2219.99%22%2c5%5d%2c%5b%22151778%22%2c%22ASS+MC+Protect+100+mg+magensaftresistente+Tabletten%2c+100+Tabletten+magensaftresistent+(N3)%22%2c%5b%22Artikel%22%5d%2c%222.97%22%2c3%5d%2c%5b%22130765%22%2c%22ASS+MC+100+TAH%2c+100+Tabletten+(N3)%22%2c%5b%22Artikel%22%5d%2c%2249.17%22%2c60%5d%2c%5b%22130334%22%2c%22Cetirizin+MC+1+mg%2fml+Sirup%2c+75+ml%22%2c%5b%22Artikel%22%5d%2c%2225.16%22%2c15%5d%2c%5b%22130880%22%2c%22Clotrimazol+MC+2%25%2c+20+g%22%2c%5b%22Artikel%22%5d%2c%2212.54%22%2c10%5d%2c%5b%2227752%22%2c%22Nasengel+AL%2c+10+g+(N1)%22%2c%5b%22Artikel%22%5d%2c%224.56%22%2c5%5d%2c%5b%2227751%22%2c%22Nasenspray+MC+0%2c1+%25%2c+10+ml+(N1)%22%2c%5b%22Artikel%22%5d%2c%22130.9%22%2c200%5d%2c%5b%22136892%22%2c%22Nasenspray+MC+0%2c05+%25%2c+10+ml+(N1)%22%2c%5b%22Artikel%22%5d%2c%2232.01%22%2c60%5d%2c%5b%2227749%22%2c%22Nasentropfen+MC+0%2c05+%25%2c+10+ml+(N1)%22%2c%5b%22Artikel%22%5d%2c%225.33%22%2c10%5d%2c%5b%22130411%22%2c%22Cimicifuga+AL%2c+100+Filmtabletten+(N3)%22%2c%5b%22Artikel%22%5d%2c%228.81%22%2c3%5d%2c%5b%22119961%22%2c%22Aciclovir+MC+Creme%2c+2+g+(N1)%22%2c%5b%22Artikel%22%5d%2c%225.33%22%2c5%5d%2c%5b%2227750%22%2c%22Nasentropfen+MC+0%2c1+%25%2c+10+ml+(N1)%22%2c%5b%22Artikel%22%5d%2c%2211.22%22%2c20%5d%2c%5b%22119279%22%2c%22Loperamid+MC+akut%2c+10+Hartkapseln+(N1)%22%2c%5b%22Artikel%22%5d%2c%2212.98%22%2c20%5d%2c%5b%22132860%22%2c%22Paracetamol+MC+500%2c+20+Tabletten%22%2c%5b%22Artikel%22%5d%2c%223.68%22%2c10%5d%2c%5b%22131272%22%2c%22Clotrimazol+MC+1%25%2c+50+g+(N2)%22%2c%5b%22Artikel%22%5d%2c%2212.54%22%2c10%5d%2c%5b%22130428%22%2c%22PVP-Jod+MC+Salbe%2c+25+g%22%2c%5b%22Artikel%22%5d%2c%2223.32%22%2c20%5d%5d

Do you have any idea? This behavior didn't appear in the test site. Might the url be too long? Any workarounds like POST?

mirkomaty commented 5 years ago

I'm sorry for posting this before having a closer look at the issue. The protocol shows a 404.15 which says, that the query string is too long. For anyone searching for a solution: Change the request filtering limits. In IIS you find information about filtering limits here:

https://docs.microsoft.com/en-us/iis/configuration/system.webserver/security/requestfiltering/requestlimits/

Under 5. Specify your options, and then click OK. -- This is the dialog for the URL and query lengths.