@Amber-Wish opened this Issue on June 18th 2021

Hello, dear project developers. I use img tag tracking to track order data. But it didn't work. Here's my link:
https://XXXXX.com/matomo.php?idsite=1&rec=1&idgoal=0&_id=fa7c52f5a0cc7c3e&ec_id=3762627510326&revenue=2.99&ec_st=2.99&ec_tx=0&ec_sh=2.99&ec_dt=5.96&ec_items=[["951650007","Blue Sea (Harmony) Small Size","",1.49,1],["951650003","Aquamarine (Freedom) Small Size","",1.49,1],["951650002","Clear Sky (Clear Thinking) Small Size","",1.49,1],["951650001","Flamingo Dance (Calmness) Small Size","",1.49,1]]
I can see that the request returns a 200 status code in the console, but I still can't see the order data in matomo.
image
Is there a problem with my link? Can you help me?

@sgiehl commented on June 18th 2021 Member

Hi @Amber-Wish
Did you maybe encode the & too often? It seems it's encoded in the request url, but it shouldn't.
Btw. if you enable the debug mode for the tracker in your config, you should be able to see possible reasons in the log file.

@Amber-Wish commented on June 18th 2021

Hello, do you mean I don't need to write 'amp;'?

@Amber-Wish commented on June 18th 2021

BTW, in which folder can I see the log?

@sgiehl commented on June 18th 2021 Member

That depends. Within an html attribute the & can be encoded as &, as the browser would decode it before sending the request. When querying the url directly, there shouldn't be & but &.

The log should be located in matomo/tmp/logs/matomo.log

For me the above URL works (when using & instead of &). At least the log says there are items tracked:

DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] Items found in current cart, for conversion_item (visit,idorder)=array (
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 0 => 357671,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 1 => '3762627510326',
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 2 => 0,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] )
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] array (
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] )
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] Ecommerce items that are added to the cart/order
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] array (
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 0 =>
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] array (
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 0 => 394600,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 1 => 394601,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 2 => false,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 3 => false,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 4 => false,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 5 => false,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 6 => false,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 7 => '1.49',
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 8 => 1,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] ),
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 1 =>
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] array (
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 0 => 394602,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 1 => 394603,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 2 => false,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 3 => false,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 4 => false,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 5 => false,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 6 => false,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 7 => '1.49',
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 8 => 1,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] ),
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 2 =>
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] array (
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 0 => 394604,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 1 => 394605,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 2 => false,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 3 => false,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 4 => false,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 5 => false,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 6 => false,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 7 => '1.49',
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 8 => 1,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] ),
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 3 =>
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] array (
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 0 => 394606,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 1 => 394607,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 2 => false,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 3 => false,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 4 => false,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 5 => false,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 6 => false,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 7 => '1.49',
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 8 => 1,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] ),
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] )
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] INSERT IGNORE INTO matomo_log_conversion_item (idaction_sku, idaction_name, idaction_category, idaction_category2, idaction_category3, idaction_category4, idaction_category5, price, quantity, deleted, idorder, idsite, idvisitor, server_time, idvisit) VALUES  ( ?,?,?,?,?,?,?,?,?,?,?,?,?,?,? ) , ( ?,?,?,?,?,?,?,?,?,?,?,?,?,?,? ) , ( ?,?,?,?,?,?,?,?,?,?,?,?,?,?,? ) , ( ?,?,?,?,?,?,?,?,?,?,?,?,?,?,? )
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] array (
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 0 => 394600,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 1 => 394601,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 2 => 0,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 3 => 0,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 4 => 0,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 5 => 0,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 6 => 0,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 7 => '1.49',
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 8 => 1,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 9 => 0,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 10 => '3762627510326',
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 11 => 1,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 12 => '|R|>',
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 13 => '2021-06-18 07:44:04',
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 14 => 357671,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 15 => 394602,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 16 => 394603,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 17 => 0,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 18 => 0,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 19 => 0,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 20 => 0,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 21 => 0,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 22 => '1.49',
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 23 => 1,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 24 => 0,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 25 => '3762627510326',
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 26 => 1,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 27 => '|R|>',
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 28 => '2021-06-18 07:44:04',
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 29 => 357671,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 30 => 394604,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 31 => 394605,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 32 => 0,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 33 => 0,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 34 => 0,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 35 => 0,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 36 => 0,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 37 => '1.49',
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 38 => 1,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 39 => 0,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 40 => '3762627510326',
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 41 => 1,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 42 => '|R|>',
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 43 => '2021-06-18 07:44:04',
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 44 => 357671,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 45 => 394606,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 46 => 394607,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 47 => 0,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 48 => 0,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 49 => 0,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 50 => 0,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 51 => 0,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 52 => '1.49',
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 53 => 1,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 54 => 0,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 55 => '3762627510326',
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 56 => 1,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 57 => '|R|>',
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 58 => '2021-06-18 07:44:04',
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] 59 => 357671,
DEBUG Goals[2021-06-18 07:44:07 UTC] [a1fd4] )
@Amber-Wish commented on June 18th 2021

That's OK. Thank you very much! Let me have a try.

@Amber-Wish commented on June 18th 2021

@sgiehl hi, Now my link is changed to this.
https://mymatomoX.com/matomo.php?idsite=1&rec=1&idgoal=0&_id=fa7c52f5a0cc7c3e&ec_id=3762627510326&revenue=2.99&ec_st=2.99&ec_tx=0&ec_sh=2.99&ec_dt=5.96&ec_items=%5B%5B%22951650007%22%2C%22Blue%20Sea%20%28Harmony%29%20Small%20Size%22%2C%22%22%2C1.49%2C1%5D%2C%5B%22951650003%22%2C%22Aquamarine%20%28Freedom%29%20Small%20Size%22%2C%22%22%2C1.49%2C1%5D%2C%5B%22951650002%22%2C%22Clear%20Sky%20%28Clear%20Thinking%29%20Small%20Size%22%2C%22%22%2C1.49%2C1%5D%2C%5B%22951650001%22%2C%22Flamingo%20Dance%20%28Calmness%29%20Small%20Size%22%2C%22%22%2C1.49%2C1%5D%5D&url=https%3A//lagunamoon.com/25226514/orders/d56e884498c9954ec4c12967922d86c4&apiv=1&token_auth=f4e7305532a4f895021075380a607d11&rand=34
There are two amp; It can't be removed. Once removed, a 400 error is returned. What is the reason for this?

@sgiehl commented on June 18th 2021 Member

That's hard to say. Might be a server configuration issue. Or does anything appear in the matomo.log in that case?
As I'm not able to reproduce it, it doesn't some to be a global bug and I don't have enough time to help you debug your issue further.
We actually only handle bug reports and feature requests in this issue tracker.
Maybe try to get some help on our forum at https://forum.matomo.org/

This Issue was closed on June 18th 2021
Powered by GitHub Issue Mirror