Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow custom cookie expiry date for optUserOut() & forgetUserOptOut() functions #19530

Closed
marcopixel opened this issue Jul 14, 2022 · 0 comments · Fixed by #19532
Closed

Allow custom cookie expiry date for optUserOut() & forgetUserOptOut() functions #19530

marcopixel opened this issue Jul 14, 2022 · 0 comments · Fixed by #19532
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Milestone

Comments

@marcopixel
Copy link

It would be beneficial to overwrite the default cookie expiry date for the optUserOut() and 'forgetUserOptOut()', especially since you can also set custom values on most other functions which set cookies for tracking.

Summary

Adding an additional parameter to the optUserOut() & forgetUserOptOut() functions.

Example:

_paq.push(['optUserOut', 2160]);

would set the mtm_consent_removed to an expiry date in 90 days.

Your Environment

  • Matomo Version: 4.10.1
  • PHP Version: 7.3.28
@marcopixel marcopixel added the Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. label Jul 14, 2022
futureweb added a commit to futureweb/matomo that referenced this issue Jul 14, 2022
@sgiehl sgiehl linked a pull request Jul 19, 2022 that will close this issue
11 tasks
@justinvelluppillai justinvelluppillai added this to the 4.12.0 milestone Jul 20, 2022
sgiehl pushed a commit that referenced this issue Jul 21, 2022
* Implement cookie expire time - forgetConsentGiven

Implement Feature Request #19530

* Implement cookie expire time - forgetConsentGiven

* Implement cookie expire time - forgetConsentGiven

* Implement cookie expire time - forgetConsentGiven

* forgetConsentGiven cookie expire Param description
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants