mediengarage/piwik-consent-manager
Composer 安装命令:
composer require mediengarage/piwik-consent-manager
包简介
README 文档
README
PIWIK Consent Manager TYPO3 extension
PIWIK Consent Manager integration in order to make TYPO3 content elements GDPR compliant.
You can click on the images in this readme to see a larger version.
🤔 What does it do?
Instead of privacy harming content a placeholder will be displayed to the user.
Only when the user gives its consent on the PIWIK Consent Manager the page is reloaded and the actual content will be shown.
📦 Installation
-
Install extension
-
Composer
composer req mediengarage/piwik-consent-manager:~0.1 -
Non Composer
If you want to install into a non composer TYPO3, using the TER is recommended. You can download and install it directly from the Extension Manager of your TYPO3 instance.
-
-
Include static template into your root TypoScript template and click save:
-
Navigate to Configure extensions from the Settings module under Admin Tools:
-
Enter your PIWIK Pro credentials. Check step 5 to see from where to retrieve those values from. Keep them secret!
-
Login to your PIWIK Pro account and navigate to Menu -> Administration. Choose your website and click the Installation tab.
🚀 Quick Start
Quickstart shows how to embed a YouTube video which is only displayed when a user gives its consent. A placeholder will be shown if no consent was set or it was declined.
In order to have a basic website for presentation purposes the quick start guide uses https://github.com/benjaminkott/bootstrap_package.
-
Create a new content element anywhere on the page and choose YouTube from the new privacy tab:
-
Paste the embed markup into text area and choose a consent type to which the element should react. React means it will be displayed when the user gives its consent on that type. The default placeholder image can be overwritten on a per content element basis in the image tab.
-
Login to your PIWIK Pro account and navigate to Menu -> Tag Manager. Create an asynchronous tag for the chosen consent type (Custom Consent in this example) in order to reload the page when a consent was sent. Don't forget to save and publish (or debug to test on production system).
<script> location.reload(); </script>
🤓 Custom TypoScript Condition
In order to e.g. embed JavaScript based on whether a consent is set or not a custom TypoScript condition can be used.
[ConsentAspect('custom_consent')]
page.includeJSFooter {
foo = EXT:bar/Resources/Public/JavaScript/script.js
}
[GLOBAL]
🛣 Roadmap
- We're currently working on a solution that works using ajax instead reloading the complete page.
- The readme is clearly under construction 🙂
mediengarage/piwik-consent-manager 适用场景与选型建议
mediengarage/piwik-consent-manager 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 87 次下载、GitHub Stars 达 6, 最近一次更新时间为 2022 年 06 月 09 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 mediengarage/piwik-consent-manager 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 mediengarage/piwik-consent-manager 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 87
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 7
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2022-06-09

