The method disableCookies is registered more than once in "_paq" variable

Created on 29 April 2024, 7 months ago
Updated 15 May 2024, 6 months ago

Problem/Motivation

We ran into Browser console showing error The method disableCookies is registered more than once in "_paq" variable.

Steps to reproduce

Our setup with Matomo is cookieless, so it already uses _paq.push(['disableCookies']); which is triggered also by this module.

Proposed resolution

Check for Matomo config

$matomo_config->get('privacy.disablecookies')

to be false before adding _paq.push(['disableCookies']); to eu_cookie_compliance_matomo.js dynamically.

Issue fork is following.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇩🇪Germany akoe

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024