Import data GA4 gets killed over and over (WordPress GA Importer)

The import of the GA4 data gets killed. No single import is done. The import starts, gets status ‘ongoing’ and is killed after a few minutes.

Error message: no message

Specifications:

  • Matomo for WordPress version 4.14.2
  • Google Analytics Importer (Matomo Plugin) version 4.6.4

Server info:

  • PHP time limit: 300
  • max input time: 600

I tried recreating the API (and reimported the json file), but no luck.
It does work for two other sites. I can’t figure out why it won’t work for this site.

I hope you can help me out.

Hey , I am also facing this issue .

Irritating, right?

Do you use the same versions of the plugins? And import GA4? Same PHP time limit and max input time?

Hi Daphne,

It seems like the import process might be hitting server-side limits or encountering conflicts specific to this site. Here are a few steps to troubleshoot the issue:

Check Server Resources: Even though your PHP time limit and max input time seem adequate, the import might require more resources if the GA4 dataset is large. Try increasing the max_execution_time and memory_limit in your PHP settings.

Debug Logs: Enable debug mode in WordPress and Matomo to see if any specific errors are logged during the import process. This might give insight into what’s causing the import to fail.

API Scopes and Permissions: Ensure that the Google API credentials you’re using have the correct permissions to access and import data from the GA4 account. Recheck the JSON key file for any inconsistencies.

Conflict with Other Plugins: Disable other plugins temporarily to rule out any conflicts. Sometimes plugins related to caching, security, or analytics might interfere.

Alternative Import Methods: If the issue persists, consider exporting GA4 data manually and importing it into Matomo using a different method.

If all else fails, I recommend reaching out to the Matomo support team directly with detailed logs and screenshots. Meanwhile, you can track urgent metrics through alternative tools or even share basic updates with your team on WhatsApp for quick insights.

Let me know if any of these steps help resolve the issue! :blush: