Matomo and MatomoCloud services settings save issue

Created on 17 October 2022, about 2 years ago
Updated 8 February 2023, almost 2 years ago

Problem/Motivation

On tacjs services form (/admin/config/system/tacjs/add-services), on save, Matomo data is duplicated in Matomo Cloud if config is empty, then when trying to change data in Matomo fields while changing nothing in Matomo Cloud fields, nothing change after save.

Proposed resolution

Change in assets/content.json Matomo Cloud code part from :

"code": {
        "js": "tarteaucitron.user.matomoId = ###SITE_ID###;",
        "html": "<script>tarteaucitron.user.matomoHost = '###YOUR_MATOMO_URL###';</script>"
      },

to :

"code": {
        "js": "tarteaucitron.user.matomoCloudId = ###SITE_ID###;",
        "html": "<script>tarteaucitron.user.matomoCloudHost = '###YOUR_MATOMO_URL###';</script>"
      },
🐛 Bug report
Status

Postponed: needs info

Version

6.1

Component

Code

Created by

🇫🇷France amaloisel

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇫🇷France amaloisel

    Hi Boulaffasae !

    I looked for this issue today and I'm not sure there are same service. Indeed in tarteaucitron.services.js, Matomo and MatomoCloud don't call the same php file for tracker neither same js script for tracking. What I understand is that the difference is the hosting of the solution and so nobody will use both of them.

    I don't know how to manage it to avoid the save issue when setting data in services config form of the module.

Production build 0.71.5 2024