matomo-org / matomo

Empowering People Ethically with the leading open source alternative to Google Analytics that gives you full control over your data. Matomo lets you easily collect data from websites & apps and visualise this data and extract insights. Privacy is built-in. Liberating Web Analytics. Star us on Github? +1. And we love Pull Requests!
https://matomo.org/
GNU General Public License v3.0
19.92k stars 2.66k forks source link

Ecommerce tracking conversion problems #22620

Open tony-dimeo opened 1 month ago

tony-dimeo commented 1 month ago

Hello,

we connected our woocommerce via the matomo analytics and connect matomo plugins, doing some tests we realized that although visitors were tracked by deactivating the first plugin (analytics), orders were not tracked, is it necessary for both to remain active? The second problem is that not all orders are tracked anyway, there is no correspondence between the back end orders of the woocommerce and what is reported in the matomo summary, why? (out of 20 daily orders it usually tracks 1 or 2)

diosmosis commented 1 month ago

Hi @tony-dimeo, can you confirm you are using the WooCommerceAnalytics premium plugin (https://plugins.matomo.org/WooCommerceAnalytics)?

If so, can you tell me what WordPress plugins you have activated? There should be just two Matomo related ones:

tony-dimeo commented 1 month ago

Hi. No, I dont' have the premium plugin.

Now I have activated Connect matomo and this one too: https://wordpress.org/plugins/matomo/

However, in my matomo dashboard I have access to the ecommerce section, but as I was telling you there is no correspondence between the orders in woo and the tracked ones. I have already verified that the tracking code is present on all the pages of my e-commerce site.

diosmosis commented 1 month ago

Ok, you shouldn't need both Connect Matomo and the Matomo for WordPress plugin.

Connect Matomo is for sending tracking requests to an external, self-hosted Matomo.

The Matomo for WordPress plugin is all of Matomo hosted within WordPress.

If you want to use Matomo for WordPress, you should uninstall Connect Matomo.

For Matomo for WordPress, can you confirm that the "Enable ecommerce" setting in Matomo Analytics > Settings > Tracking is enabled? If it is enabled, can you provide a copy of your system report (see https://matomo.org/faq/wordpress/how-do-i-find-and-copy-the-system-report-in-matomo-for-wordpress/ for instructions)?

diosmosis commented 1 month ago

Hi @tony-dimeo, are you still encountering issues? Do you still need help?

tony-dimeo commented 1 month ago

Yes We have Connect Matomo because we have a self-hosted Matomo. But without the Matomo for wordpress plugin (with which we also inserted tracking code on woo), we noticed that orders are not tracked at all (no one). I confirm that tracking ecommerce is enabled. Here the system report:

  # Errors

Matomo

  • Matomo Plugin Version: 5.1.0
  • Config exists and is writable.: Yes ("$abs_path/wp-content/uploads/matomo/config/config.ini.php" )
  • JS Tracker exists and is writable.: Yes ("$abs_path/wp-content/uploads/matomo/matomo.js" )
  • Plugin directories: Yes ([{"pluginsPathAbsolute":"$abs_path\/wp-content\/plugins\/matomo\/plugins","webrootDirRelativeToMatomo":"..\/plugins"}])
  • Tmp directory writable: Yes ($abs_path/wp-content/cache/matomo)
  • Matomo Version: 5.1.0
  • Matomo Blog idSite: 1
  • Matomo Install Version: 5.1.0 (Install date: 2024-08-27 11:21:12)
  • Upgrades outstanding: No
  • Upgrade in progress: No

Endpoints

  • Matomo JavaScript Tracker URL: ($site_url/wp-content/uploads/matomo/matomo.js)
  • Matomo JavaScript Tracker - WP Rest API: ($site_url/wp-json/matomo/v1/hit/)
  • Matomo HTTP Tracking API: ($site_url/wp-content/plugins/matomo/app/matomo.php)
  • Matomo HTTP Tracking API - WP Rest API: ($site_url/wp-json/matomo/v1/hit/)

Crons

  • Server time: 2024-10-23 06:48:36
  • Blog time: 2024-10-23 08:48:36 (Below dates are shown in blog timezone)
  • Sync users & sites: Next run: 2024-10-23 11:32:07 (2 ore 43 minuti) ( Last started: 2024-10-22 13:10:09 (-19 ore 38 minuti). Last ended: 2024-10-15 09:07:01 (-7 giorni 23 ore). Interval: daily)
  • Archive: Next run: 2024-10-22 19:32:07 (-13 ore 16 minuti) ( Last started: 2024-10-22 19:05:18 (-13 ore 43 minuti). Last ended: 2024-10-22 19:05:22 (-13 ore 43 minuti). Interval: hourly)
  • Update GeoIP DB: Next run: 2024-10-26 11:32:07 (3 giorni 2 ore) ( Last started: 2024-09-26 13:05:38 (-26 giorni 19 ore). Last ended: 2024-09-26 13:05:40 (-26 giorni 19 ore). Interval: matomo_monthly)

Mandatory checks

  • Versione PHP >= 7.2.5: ok
  • PDO estensione: ok
  • PDO\MYSQL estensione: ok
  • MYSQLI estensione: ok
  • Altre estensioni Richieste: ok
  • Funzioni richieste: ok
  • Richiesta configurazione PHP (php.ini): ok
  • Directories con permessi di scrittura: ok
  • Directory con diritti di scrittura per Gestione Tag: ok

Optional checks

  • Binario PHP a 64 bit: ok
  • Stato del tracker: ok
  • Memoria massima: ok
  • Fuso orario: ok
  • Apri URL: ok
  • GD > 2.x + FreeType (grafica): ok
  • Altre estensioni: ok
  • Altre funzioni: ok
  • Filesystem: ok
  • Ultima archiviazione completata con successo: ok
  • Capacità del database: ok
  • Dimensione Massima Pacchetto: ok
  • Geolocalizzazione: ok
  • Aggiorna tramite HTTPS: ok
  • Mobile Messaging SMS Provider: ok
  • Supports Async Archiving: Yes
  • Async Archiving Disabled in Setting: No
  • Location provider ID: geoip2php
  • Location provider available: Yes
  • Location provider working: Yes
  • Matomo URL: Yes ($site_url/wp-content/plugins/matomo/app)

Matomo Settings

  • Track mode: manually
  • Track ecommerce: Yes
  • Track codeposition: footer
  • Track api endpoint: default
  • Track js endpoint: default
  • Version history: 5.1.0
  • Core version: 5.1.0
  • Last tracking settings update: 1727361915
  • Last settings update: 1727361915
  • Track user id: email

Logs

  • None:

WordPress

WordPress Plugins

MU Plugins

Plugins

Server

PHP cli

  • PHP CLI Version: 7.4.19
  • MySQLi support: ok
  • PHP CLI configuration: Configured correctly

Database

  • MySQL Version: 5.5.5
  • Mysqli Connect: Yes
  • Force MySQL over Mysqli: No
  • DB Prefix: wpfzns0t
  • DB CHARSET: utf8mb4
  • DB COLLATE:
  • SHOW ERRORS: Yes
  • SUPPRESS ERRORS: No
  • Uses Socket: No
  • Uses IPv6: No
  • Matomo tables found: 61
  • DB tables exist: Yes
  • Matomo users found: 12
  • Matomo sites found: 1
  • Required permissions: OK

Browser

  • Browser: (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36)
  • Language: it-it,it,en-us,en

Il giorno mer 23 ott 2024 alle ore 05:56 dizzy @.***> ha scritto:

Hi @tony-dimeo https://github.com/tony-dimeo, are you still encountering issues? Do you still need help?

— Reply to this email directly, view it on GitHub https://github.com/matomo-org/matomo/issues/22620#issuecomment-2430814437, or unsubscribe https://github.com/notifications/unsubscribe-auth/BLTV26NEL4WV37GXQBFPYIDZ44M5NAVCNFSM6AAAAABO5A34JOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMZQHAYTINBTG4 . You are receiving this because you were mentioned.Message ID: @.***>

-- Tony Di Meo Digital Marketing Assistant Servizi per la Camera Digitale

http://www.infocamere.it/

Via Viserba 20 - 20126 Milano tel. (+39) 02 7860 6164 cell. (+39) 333 2368076 www.infocamere.it

http://twitter.com/infocamere https://www.linkedin.com/company-beta/36221/[image: http://www.facebook.com/InfoCamere/] http://www.facebook.com/InfoCamere/ https://www.instagram.com/infocamere/ https://www.youtube.com/user/ICRoma

diosmosis commented 4 weeks ago

@tony-dimeo I see. For self-hosted matomo, you should NOT use Matomo for WordPress. Matomo for WordPress installs a local Matomo, embedded in Matomo, and tracks to that.

The reason WooCommerce orders were not tracked to your self-hosted Matomo, is that this functionality is provided by the WooCommerceAnalytics premium feature, not Connect Matomo.

Can you confirm you want to use a remote Matomo (ie, self-hosted or cloud), and not Matomo for WordPress (ie, built into WordPress, hosted on the same server as WordPress)?

tony-dimeo commented 4 weeks ago

Yes I confirm

Il giorno mer 23 ott 2024 alle ore 22:30 dizzy @.***> ha scritto:

@tony-dimeo https://github.com/tony-dimeo I see. For self-hosted matomo, you should NOT use Matomo for WordPress. Matomo for WordPress installs a local Matomo, embedded in Matomo, and tracks to that.

The reason WooCommerce orders were not tracked to your self-hosted Matomo, is that this functionality is provided by the WooCommerceAnalytics premium feature, not Connect Matomo.

Can you confirm you want to use a self-hosted Matomo, and not Matomo for WordPress?

— Reply to this email directly, view it on GitHub https://github.com/matomo-org/matomo/issues/22620#issuecomment-2433380969, or unsubscribe https://github.com/notifications/unsubscribe-auth/BLTV26NZDTYXRLHYMM74WOLZ5ABPHAVCNFSM6AAAAABO5A34JOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMZTGM4DAOJWHE . You are receiving this because you were mentioned.Message ID: @.***>

-- Tony Di Meo Digital Marketing Assistant Servizi per la Camera Digitale

http://www.infocamere.it/

Via Viserba 20 - 20126 Milano tel. (+39) 02 7860 6164 cell. (+39) 333 2368076 www.infocamere.it

http://twitter.com/infocamere https://www.linkedin.com/company-beta/36221/[image: http://www.facebook.com/InfoCamere/] http://www.facebook.com/InfoCamere/ https://www.instagram.com/infocamere/ https://www.youtube.com/user/ICRoma

diosmosis commented 4 weeks ago

@tony-dimeo Ok, then to track woocommerce orders you will have to:

This is currently the only way to track WooCommerce orders/events/etc. to a remote, self-hosted Matomo.