[Skip to main content](#vessel-content)

#   Matomo

##

- **[LOCELO](/forum/user/58815-locelo "View LOCELO's Profile")**
- [![LOCELO's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/58815-locelo "View LOCELO's Profile") Topic Author
- [ Offline](/forum/user/58815-locelo)

Less More

- Posts: 214
- Thank you received: 21
-

4 years 8 months ago [\#340406](#340406) by [LOCELO](/forum/user/58815-locelo "View LOCELO's Profile")  *[Matomo](/forum/5-support-en-francais-french-support-/904170-matomo#340406 "-- url of the page with the problem -- :   aunumis.com  -- HikaShop version -- : 4.5.0 -- Joomla version -- : 3.10.6 -- PHP version -- : 7.4  Bonjour,  Google Analytics ayant été déclaré non conforme avec les RGPD européens, je me suis tourné vers Matomo.  La solution est simple à mettre en œuvre mais hélas, si il existe des différentes, je n'ai rien trouvé pour Hikashop.  Cordialement, Patrick")* was created by *[LOCELO](/forum/user/58815-locelo "View LOCELO's Profile")*

-- url of the page with the problem -- : [ aunumis.com](https://aunumis.com)
-- HikaShop version -- : 4.5.0
-- Joomla version -- : 3.10.6
-- PHP version -- : 7.4

Bonjour,

Google Analytics ayant été déclaré non conforme avec les RGPD européens, je me suis tourné vers Matomo.

La solution est simple à mettre en œuvre mais hélas, si il existe des [ des plugins pour beaucoup de plateformes](https://matomo.org/integrate/#ecommerce-online-shops) différentes, je n'ai rien trouvé pour Hikashop.

Cordialement,
Patrick

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vOTA0MTcwLW1hdG9tbz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

4 years 8 months ago [\#340431](#340431) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Matomo](/forum/5-support-en-francais-french-support-/904170-matomo#340431 "-- url of the page with the problem -- :   aunumis.com  -- HikaShop version -- : 4.5.0 -- Joomla version -- : 3.10.6 -- PHP version -- : 7.4  Bonjour,  Google Analytics ayant été déclaré non conforme avec les RGPD européens, je me suis tourné vers Matomo.  La solution est simple à mettre en œuvre mais hélas, si il existe des différentes, je n'ai rien trouvé pour Hikashop.  Cordialement, Patrick")*

Bonjour,

Nous étions justement en train de travailler sur un plugin pour Matomo pour la prochaine version d'HikaShop.
Si vous voulez le béta tester, vous pouvez utiliser notre formulaire de contact pour faire la demande:
[ www.hikashop.com/support/contact-us.html](https://www.hikashop.com/support/contact-us.html)
Merci de fournir l'URL de ce sujet en référence dans votre message.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vOTA0MTcwLW1hdG9tbz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[LOCELO](/forum/user/58815-locelo "View LOCELO's Profile")**
- [![LOCELO's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/58815-locelo "View LOCELO's Profile") Topic Author
- [ Offline](/forum/user/58815-locelo)

Less More

- Posts: 214
- Thank you received: 21
-

4 years 7 months ago [\#340687](#340687) by [LOCELO](/forum/user/58815-locelo "View LOCELO's Profile")  Replied by *[LOCELO](/forum/user/58815-locelo "View LOCELO's Profile")* on topic *[Matomo](/forum/5-support-en-francais-french-support-/904170-matomo#340687 "-- url of the page with the problem -- :   aunumis.com  -- HikaShop version -- : 4.5.0 -- Joomla version -- : 3.10.6 -- PHP version -- : 7.4  Bonjour,  Google Analytics ayant été déclaré non conforme avec les RGPD européens, je me suis tourné vers Matomo.  La solution est simple à mettre en œuvre mais hélas, si il existe des différentes, je n'ai rien trouvé pour Hikashop.  Cordialement, Patrick")*

Bonjour,

Le plugin fonctionne parfaitement mais j'ai remarqué un comportement étrange.
Je ne sais pas si ça vient de Matomo :

Sur le site, le paiement des commandes se fait par virement bancaire.
Les commandes restent donc en status " créée" jusqu'à réception du virement.

Là, le vendeur passe la commande en "validée" puis "expédiée".

Dans le suivi de Matomo, les ventes apparaissent comme "abandonnées" même après changement de status .
J'ai anonymisé le suivi, donc Matomo ne dépose aucun cookie.

Merci d'avance,
Cordialement,
Patrick

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vOTA0MTcwLW1hdG9tbz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

4 years 7 months ago [\#340688](#340688) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Matomo](/forum/5-support-en-francais-french-support-/904170-matomo#340688 "-- url of the page with the problem -- :   aunumis.com  -- HikaShop version -- : 4.5.0 -- Joomla version -- : 3.10.6 -- PHP version -- : 7.4  Bonjour,  Google Analytics ayant été déclaré non conforme avec les RGPD européens, je me suis tourné vers Matomo.  La solution est simple à mettre en œuvre mais hélas, si il existe des différentes, je n'ai rien trouvé pour Hikashop.  Cordialement, Patrick")*

Bonjour,

Dans le menu Système&gt;Statuts de commande, vous avez une colonne "matomo" qui permet de configurer les statuts à prendre en compte pour l'envoi des données de la commande à matomo.
Donc à partir du moment où le plugin voit la commande passer dans un de ces statuts, il envoie les informations de la commande à matomo.
Il n'y a pas d'annulation ou d'abandon pour les commandes.

Ne serait-ce pas plutôt le panier qui serait vidé ?
Dans le fichier plugins/system/matomo/matomo.php, vous avez une fonction getCartJS qui va envoyer les informations du panier courant à matomo sur chaque page affichée: Code:

private function getCartJS() { $cartClass = hikashop_get('class.cart'); $cart = $cartClass-&gt;getFullCart(); $js = ''; if(!empty($cart)) { $total = 0; if(!empty($cart-&gt;total-&gt;prices[0]-&gt;price_value_with_tax)) $total = $cart-&gt;total-&gt;prices[0]-&gt;price_value_with_tax; if(!empty($cart-&gt;products)) { $config = hikashop_config(); $group = $config-&gt;get('group_options', 0); foreach($cart-&gt;products as $k =&gt; $product) { if(empty($product-&gt;cart_product_quantity) &#124;&#124; substr($k,0,1) === 'p') continue; if($group &amp;&amp; $product-&gt;cart_product_option_parent_id) continue; $js .= " _paq.push(['addEcommerceItem', '(".$product-&gt;product_id.') '.$product-&gt;product_code."', // (Required) productSKU ".json_encode(strip_tags($product-&gt;product_name)).", // (Optional) productName ".$this-&gt;getProductCategories($product)." ".round(@$product-&gt;prices[0]-&gt;price_value_with_tax, 2).", // (Recommended) price ".$product-&gt;cart_product_quantity." // (Optional, defaults to 1) quantity ]); "; } } $js .= "_paq.push(['trackEcommerceCartUpdate', ".round($total,2)."]);"; } return $js; }

Donc il possible qu'à la fin de la commande il voit un panier vide et ce serait cela qui génèrerait un "panier abandonné" ?
Peut être faudrait-il modifier le code de cette façon: Code:

private function getCartJS() { $cartClass = hikashop_get('class.cart'); $cart = $cartClass-&gt;getFullCart(); $js = ''; if(!empty($cart)) { $total = 0; if(!empty($cart-&gt;total-&gt;prices[0]-&gt;price_value_with_tax)) $total = $cart-&gt;total-&gt;prices[0]-&gt;price_value_with_tax; if(!empty($cart-&gt;products)) { $config = hikashop_config(); $group = $config-&gt;get('group_options', 0); foreach($cart-&gt;products as $k =&gt; $product) { if(empty($product-&gt;cart_product_quantity) &#124;&#124; substr($k,0,1) === 'p') continue; if($group &amp;&amp; $product-&gt;cart_product_option_parent_id) continue; $js .= " _paq.push(['addEcommerceItem', '(".$product-&gt;product_id.') '.$product-&gt;product_code."', // (Required) productSKU ".json_encode(strip_tags($product-&gt;product_name)).", // (Optional) productName ".$this-&gt;getProductCategories($product)." ".round(@$product-&gt;prices[0]-&gt;price_value_with_tax, 2).", // (Recommended) price ".$product-&gt;cart_product_quantity." // (Optional, defaults to 1) quantity ]); "; } if(!empty($js)) $js .= "_paq.push(['trackEcommerceCartUpdate', ".round($total,2)."]);"; } } return $js; }

(la ligne Code:

$js .= "_paq.push(['trackEcommerceCartUpdate', ".round($total,2)."]);";

n'est envoyée que si il y des produits dans le panier.
Si vous pouvez faire la modification et voir ce que cela donne de votre coté...

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vOTA0MTcwLW1hdG9tbz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[LOCELO](/forum/user/58815-locelo "View LOCELO's Profile")**
- [![LOCELO's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/58815-locelo "View LOCELO's Profile") Topic Author
- [ Offline](/forum/user/58815-locelo)

Less More

- Posts: 214
- Thank you received: 21
-

4 years 7 months ago [\#340705](#340705) by [LOCELO](/forum/user/58815-locelo "View LOCELO's Profile")  Replied by *[LOCELO](/forum/user/58815-locelo "View LOCELO's Profile")* on topic *[Matomo](/forum/5-support-en-francais-french-support-/904170-matomo#340705 "-- url of the page with the problem -- :   aunumis.com  -- HikaShop version -- : 4.5.0 -- Joomla version -- : 3.10.6 -- PHP version -- : 7.4  Bonjour,  Google Analytics ayant été déclaré non conforme avec les RGPD européens, je me suis tourné vers Matomo.  La solution est simple à mettre en œuvre mais hélas, si il existe des différentes, je n'ai rien trouvé pour Hikashop.  Cordialement, Patrick")*

Bonjour
Merci pour votre réponse.
Je vais tester ça et je vous tiens au courant.

Cordialement
Patrick

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vOTA0MTcwLW1hdG9tbz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[LOCELO](/forum/user/58815-locelo "View LOCELO's Profile")**
- [![LOCELO's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/58815-locelo "View LOCELO's Profile") Topic Author
- [ Offline](/forum/user/58815-locelo)

Less More

- Posts: 214
- Thank you received: 21
-

4 years 7 months ago [\#340706](#340706) by [LOCELO](/forum/user/58815-locelo "View LOCELO's Profile")  Replied by *[LOCELO](/forum/user/58815-locelo "View LOCELO's Profile")* on topic *[Matomo](/forum/5-support-en-francais-french-support-/904170-matomo#340706 "-- url of the page with the problem -- :   aunumis.com  -- HikaShop version -- : 4.5.0 -- Joomla version -- : 3.10.6 -- PHP version -- : 7.4  Bonjour,  Google Analytics ayant été déclaré non conforme avec les RGPD européens, je me suis tourné vers Matomo.  La solution est simple à mettre en œuvre mais hélas, si il existe des différentes, je n'ai rien trouvé pour Hikashop.  Cordialement, Patrick")*

Bonjour,

Effectivement, dans la configuration système -&gt; Statuts de commande je n’avais pas validé "created".
Donc, Matomo devait voir ça comme un abandon de commande.

Je vous tiens au courant.
Merci !

The following user(s) said Thank You: [nicolas](/forum/user/63-nicolas "View nicolas's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vOTA0MTcwLW1hdG9tbz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.138 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
