Error when creating import job

Hello, thank you for matomo and this plugin.
Trying to import GA to matomo on my wordpress site.
When creating an import job, I get the error in dutch, which translates to:
date format should be yyyy-mm-dd, or today or yesterday or any keyword supported by the strtotime function

This is when leaving the two date fields empty, but also when populating these two fields with something in the format yyyy-mm-dd

Can a kind person help me with this one?
Thank you & kind regards


Can you share the exact command you are running?

Thank you for your reply.

I am using the import plugin for wordpress, and (have to) use the webform to create an import job, using the instructions on

Kind regards

Hi @mdlaat, sorry you’re experiencing this problem, can you add the following PHP to your wp-config.php file:


? Then trigger the error again post the full error message. This should provide a backtrace that will help diagnose the problem you’re experiencing.

Hello @diosmosis. Thank you for taking the time to reply.

I have added the line you mentioned, but I can’t see any difference in the error. Should the backtrace become visible in the same browser-page, or am I looking in the wrong place?

@mdlaat It looks like the plugin is preventing the backtrace from displaying, can you replace the /path/to/matomo/plugins/GoogleAnalyticsImporter/Controller.php file with and try again? And can you post a screenshot of the error notification when you see the error?

Thank you @disomosis
I replaced the php script and got a more verbose error.

Does this give you more insight?
Kind regards

@mdlaat Apologies for the late response! I did not get an email notification for your reply, I’ll be looking into this soon.

@mdlaat I believe I found the fix, can you replace the /path/to/matomo/plugins/GoogleAnalyticsImporter/Input/EndDate.php file with: and try an import?

Hello @diosmosis, thank you so much for your time and effort.
Import is running now!
Kind regards