Problem/Motivation
Matomo has a setVisitorCookieTimeout option that can be used to customize the duration of the cookie.
It would be useful if it could be set from the config of this module.
Proposed resolution
We could add a new field in Privacy on /admin/config/system/matomo.
Issue fork matomo-3376588
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
prudloff commentedComment #4
prudloff commentedRebased against 2.0.x.
The failing phpunit test seems to be unrelated: #3511606: MatomoBasicTest::testMatomoPageVisibility() fails in merge requests
Comment #5
arousseau commentedThis is working correctly and the "_pk_id" cookie duration follows the value set in the "Cookie duration" field, added to the settings form.
The "_pk_sess" cookie duration is left untouched as it should (30 min default).
Comment #6
prudloff commentedComment #7
grimreaperHello,
Thanks for the issue and MR.
Would it be possible to add a test please?
Comment #8
prudloff commentedI added a test.
Comment #9
grimreaperThanks, one question about existing installations in code review.
Comment #10
grimreaperComment #12
grimreaper