No Ecommerce data with EasyDigitalDownloads

The Matomo wordpress plugin is working great for website statistics on one of my websites, but the Ecommerce data is not updating at all, despite orders through the EasyDigitalDownloads plugin. It looks like Matomo is supposed to have “out of the box” support for this. First issue I had was user error on my part, since I did not have the “Enable ecommerce” checkbox checked. Once I enabled that though, I’m still not getting any order statistics. I’ve been looking over the source code in EasyDigitalDownloads.php, but was hoping someone might be able to provide some tips on troubleshooting this.

I’m having the same issue with WooCommerce, although i can’t find the checkbox “Enable ecommerce”.
The Ecommerce Tab is there, but there’s no data collected/shown.

hi @ElementGreen

Sorry to hear that you encounter some issues with matomo.
Could you share with us your system report available from matomo analytics > diagnostics?
Kind regards

Mat

hi @gavran

this option is available from the menu matomo analytics > settings > tracking

Regards

Thank you Matthieu,
there is a currency setting only, so the e-commerce tracking seems to be enabled.
Should i open another thread for the WooCommerce tracking issue?
@Matthieu_Mary

hi @gavran

If you have only the currency setting it could be because the add tracking code option is on disabled. Is it? If yes, you track anything, including the e-commerce data.
Please create a new topic for your issue.
Kind regards

Mat

Hi @ElementGreen

Have you already had a look at our last comment or maybe any question about it?

Kind regards

Mat

Here is the info you requested. Sorry for the delay, I kind of gave up on getting eCommerce statistics with Matomo working for now. It seems like the hook functions are not getting called. I suspect the function names for Easy Digital Downloads may have changed since support was implemented for it, but I’m not sure what the new function names are and don’t have much time for this at the moment.

			  # Matomo
  • Matomo Plugin Version: 4.2.0
  • Config exists and is writable.: Yes ("$ABSPATH/wp-content/uploads/matomo/config/config.ini.php" )
  • JS Tracker exists and is writable.: Yes ("$ABSPATH/wp-content/uploads/matomo/matomo.js" )
  • Plugin directories: Yes ([{“pluginsPathAbsolute”:"$ABSPATH/wp-content/plugins/matomo/plugins",“webrootDirRelativeToMatomo”:"…/"}])
  • Tmp directory writable: Yes ($ABSPATH/wp-content/uploads/matomo/tmp)
  • Matomo Version: 4.2.1
  • Matomo Blog idSite: 1
  • Matomo Install Version: 1.2.0 (Install date: 2020-08-23 01:12:37)
  • 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: 2021-08-10 21:30:53
  • Blog time: 2021-08-10 15:30:53 (Below dates are shown in blog timezone)
  • Sync users & sites: Next run: 2021-08-11 01:12:32 (9 hours 41 min) ( Last started: 2021-08-10 01:40:24 (-13 hours 50 min). Last ended: 2021-08-10 01:40:24 (-13 hours 50 min). Interval: daily)
  • Archive: Next run: 2021-08-10 16:12:32 (41 min 39s) ( Last started: 2021-08-10 15:15:18 (-15 min 35s). Last ended: 2021-08-10 15:15:25 (-15 min 28s). Interval: hourly)
  • Update GeoIP DB: Next run: 2021-08-18 01:12:32 (7 days 9 hours) ( Last started: 2021-07-19 01:13:10 (-22 days 14 hours). Last ended: 2021-07-19 01:13:11 (-22 days 14 hours). Interval: matomo_monthly)

Mandatory checks

  • PHP version >= : ok
  • PDO extension: ok
  • PDO\MYSQL extension: ok
  • MYSQLI extension: ok
  • Other required extensions: ok
  • Required functions: ok
  • Required PHP configuration (php.ini): ok
  • Directories with write access: ok
  • Directories with write access for Tag Manager: ok

Optional checks

  • Tracker status: ok
  • Memory limit: ok
  • Time zone: ok
  • Open URL: ok
  • PageSpeed disabled: ok
  • GD > 2.x + Freetype (graphics): ok
  • Other extensions: ok
  • Other functions: ok
  • Filesystem: ok
  • Last Successful Archiving Completion: ok
  • Database abilities: ok
  • Max Packet Size: ok
  • Geolocation: ok
  • Update over HTTPS: ok
  • Warning Writable JavaScript Tracker ("/matomo.js"): warning (The Matomo JavaScript tracker file “/matomo.js” is not writable which means other plugins cannot extend the JavaScript tracker. In the future even some core features might not work as expected. We recommend to make “/matomo.js” writable by running this command: chmod +w $ABSPATH/wp-content/plugins/matomo/app/matomo.js chown www-data:www-data $ABSPATH/wp-content/plugins/matomo/app/matomo.js )
  • Supports Async Archiving: Yes
  • Location provider ID: geoip2php
  • Location provider available: Yes
  • Location provider working: Yes
  • Had visit in last 5 days: Yes

Matomo Settings

  • Track mode: default
  • Track codeposition: footer
  • Track api endpoint: default
  • Track js endpoint: default
  • Version history: 4.2.0, 4.1.3, 4.0.2, 1.2.0
  • Core version: 4.2.1
  • Last tracking settings update: 1626624493
  • Last settings update: 1626624493
  • Track 404: Yes
  • Show get started page: 0

Logs

  • None:

WordPress

  • Home URL: $site_url
  • Site URL: $site_url
  • WordPress Version: 5.7.1
  • Number of blogs: 1
  • Multisite Enabled: No
  • Network Enabled: No
  • WP_DEBUG: No
  • WP_DEBUG_DISPLAY: Yes
  • WP_DEBUG_LOG: No
  • DISABLE_WP_CRON: -
  • FORCE_SSL_ADMIN: Yes
  • WP_CACHE: No
  • CONCATENATE_SCRIPTS: -
  • COMPRESS_SCRIPTS: -
  • COMPRESS_CSS: -
  • ENFORCE_GZIP: -
  • WP_LOCAL_DEV: -
  • DIEONDBERROR: -
  • WPLANG: -
  • ALTERNATE_WP_CRON: -
  • WP_CRON_LOCK_TIMEOUT: 60
  • WP_DISABLE_FATAL_ERROR_HANDLER: -
  • MATOMO_SUPPORT_ASYNC_ARCHIVING: -
  • MATOMO_TRIGGER_BROWSER_ARCHIVING: -
  • MATOMO_ENABLE_TAG_MANAGER: -
  • MATOMO_SUPPRESS_DB_ERRORS: -
  • MATOMO_ENABLE_AUTO_UPGRADE: -
  • MATOMO_DEBUG: -
  • MATOMO_SAFE_MODE: -
  • MATOMO_GLOBAL_UPLOAD_DIR: -
  • MATOMO_LOGIN_REDIRECT: -
  • Permalink Structure: /%postname%/
  • Possibly uses symlink: No
  • Compatible content directory: Yes

WordPress Plugins

  • Advanced Editor Tools (previously TinyMCE Advanced): 5.6.0
  • Classic Editor: 1.6
  • Contact Form 7: 5.4
  • Easy Digital Downloads: 2.10.3
  • Enable Media Replace: 3.5.0
  • Mailgun: 1.7.7
  • Matomo Analytics - Ethical Stats. Powerful Insights.: 4.2.0
  • MetaSlider: 3.20.3
  • Newsletter: 7.1.3
  • PDFjs Viewer: 2.0.0
  • Recent Posts Widget With Thumbnails: 7.0.3
  • Widget Content Blocks: 2.3.9
  • WP Affiliate Manager: 2.8.3
  • Active Plugins: 12 (affiliates-manager contact-form-7 easy-digital-downloads enable-media-replace mailgun matomo ml-slider newsletter pdfjs-viewer-shortcode recent-posts-widget-with-thumbnails tinymce-advanced wysiwyg-widgets)
  • Theme: elemental-bootstrap (elemental-bootstrap)

Server

  • Server Info: Apache/2.4.41 (Ubuntu)
  • PHP OS: Linux
  • PHP Version: 7.4.3
  • PHP SAPI: apache2handler
  • PHP Error Reporting: 0 After bootstrap: 0
  • PHP Found Binary: php -q
  • Timezone: UTC
  • WP timezone: America/Denver
  • Locale: en_US
  • User Locale: en_US
  • Memory Limit: 256M (At least 128MB recommended. Depending on your traffic 256MB or more may be needed.)
  • WP Memory Limit: 40M
  • WP Max Memory Limit: 256M
  • Timezone version: 0.system
  • Time: 1628631053
  • Max Execution Time: 30
  • Max Post Size: 8M
  • Max Upload Size: 5242880
  • Max Input Vars: 1000
  • Disabled PHP functions: Yes (pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,)
  • zlib.output_compression is off: Yes
  • Curl Version: 7.68.0, OpenSSL/1.1.1f
  • Suhosin installed: No

Database

  • MySQL Version: 8.0.23
  • Mysqli Connect: Yes
  • Force MySQL over Mysqli: No
  • DB Prefix: wp_
  • DB CHARSET: utf8
  • DB COLLATE:
  • SHOW ERRORS: No
  • SUPPRESS ERRORS: No
  • Uses Socket: No
  • Uses IPv6: No
  • Matomo tables found: 98
  • Matomo users found: 3
  • Matomo sites found: 1
  • Required permissions: OK

Browser

  • Browser: (Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:90.0) Gecko/20100101 Firefox/90.0)
  • Language: en-us,en

Hi @ElementGreen

Thanks for sharing your system report.
It looks like you have a file permission issue which lead that the tracker is not writeable. It could explain why your module is not working has it cannot update this file.
Could you run the following command and check if this fix your issue?

Kind regards

Mat