Ecommerce tracking throw a 400 error

Hi folks,

In my shop, some orders are well tracked by matomo and some are missing.

My source code for calling the tracker is :

<script type="text/javascript">
    var _paq = window._paq = window._paq || [];
        _paq.push(["trackEcommerceOrder","2641",27.12,27.12,0,0,false]);
        _paq.push(['trackPageView']);
        _paq.push(['enableLinkTracking']);
    (function() {
        var u="//mat.************.fr/";
        _paq.push(['addTracker', u+'matomo.php', 2]);
        var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
        g.type='text/javascript'; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
    })();
</script>

An example of the matomo called URL is :

https://mat.**************.fr/matomo.php with those parameters :
idgoal:0
ec_id:2641
revenue:27.12
ec_st:27.12
ec_tx:0
ec_sh:0
ec_dt:false
ec_items:[]
idsite:2
rec:1
r:549157
h:10
m:57
s:7
url:https://boutique.*************.fr/confirmation-commande?id_cart=13192&id_module=113&id_order=2641&key=**************************************
_id:12ac83bd845504b0
_idn:0
send_image:0
_refts:1676450205
_ref:https://**********.com/
pdf:1
qt:0
realp:0
wma:0
fla:0
java:0
ag:0
cookie:1
res:2048x1152
uadata:{"fullVersionList":[{"brand":"Not_A Brand","version":"99.0.0.0"},{"brand":"Google Chrome","version":"109.0.5414.120"},{"brand":"Chromium","version":"109.0.5414.120"}],"mobile":false,"model":"","platform":"Windows","platformVersion":"10.0.0"}

And this query is throwing a “400 (Bad Request)”.

Do you have any idea of what to do to fix that ?

Regards,
Ben

Hi @garantim
What is your Matomo host?
Can you have a look at the Matomo error log file?