eminos/statamic-consent-manager 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

eminos/statamic-consent-manager

最新稳定版本:v2.0.1

Composer 安装命令:

composer require eminos/statamic-consent-manager

包简介

A powerful, GDPR-compliant consent management solution ("cookie banner") for Statamic CMS that gives you complete control over tracking scripts and user privacy.

README 文档

README

Statamic Consent Manager Banner

Statamic Consent Manager

A powerful, GDPR-compliant consent management solution ("cookie banner") for Statamic CMS that gives you complete control over tracking scripts and user privacy.

FeaturesInstallationQuick StartDocumentationSupport

Why Statamic Consent Manager?

Most cookie banner solutions are either too simple (just a "we use cookies" message) or too complex (expensive third-party SaaS platforms). Statamic Consent Manager is the perfect middle ground:

  • Native to Statamic: Managed entirely within your Statamic Control Panel.
  • Privacy First: Scripts are blocked by default until explicit consent is given.
  • Developer Friendly: Built with Antlers and Tailwind, making it easy to style and extend.
  • Compliance Made Easy: Built-in support for Google Consent Mode v2 and other major platforms.

Statamic 5.0+ Statamic 6.0+ Commercial License

Screenshot 1 Screenshot 2 Screenshot 3
Screenshot 4 Screenshot 5 Screenshot 6

Statamic support

Statamic version Addon version Addon branch
Statamic 5 1.x 1.x
Statamic 6 2.x main

Features

Powerful & Flexible

  • Service-level Consent - Users consent to individual services, organized into logical categories (Analytics, Marketing, etc.)
  • Built-in Integrations - Google Tag (gtag.js) with Consent Mode v2, Meta Pixel, and LinkedIn Insight Tag ready out of the box
  • Custom Script Support - Add any third-party script with conditional loading based on consent
  • Control Panel Management - Manage categories, services, and tracking scripts without touching code
  • Conditional Content - Show placeholders for YouTube embeds, Google Maps, and other content requiring consent
  • Smart Cookie Management - Automatically stores and respects user preferences for 180 days (configurable)
  • Permission-based Access - Control Panel access restricted by Statamic permissions

Fully Customizable

  • Publishable Views - Complete control over dialog markup and styling using Antlers templates
  • Native Dialog Elements - Built on semantic HTML <dialog> elements for accessibility
  • Tailwind CSS Out of the Box - Pre-styled dialogs you can fully customize or replace
  • Multi-language Support - Translate all text via Laravel's translation files
  • Flexible Script Placement - Load scripts in <head> or before </body>
  • Configurable Settings - Customize cookie name, duration, and behavior via config file

Developer Experience

  • Simple JavaScript API - Easy-to-use methods for checking consent and triggering dialogs
  • Debug Mode - Built-in console logging tied to Laravel's APP_DEBUG
  • Live Preview Control - Optionally disable in Statamic's Live Preview mode
  • Zero Dependencies - Lightweight vanilla JavaScript, no frameworks required

Compliance Ready

  • GDPR Compliant - Respects user privacy choices before loading tracking scripts
  • Consent Versioning - Require re-consent when you make significant changes to your privacy policy
  • Required Categories - Mark essential functionality as required (e.g., security, functionality)
  • Granular Control - Per-service consent for maximum transparency
  • Revocation Support - Users can withdraw consent at any time with automatic page reload

Installation

This is a commercial addon. Purchase a license on the Statamic Marketplace →

composer require eminos/statamic-consent-manager

That's it! The addon automatically publishes its assets during installation.

Quick Start

  1. Add tags to your layout:
<head>
    {{ consent_manager:head }}
</head>
<body>
    {{ consent_manager:dialog }}
    {{ consent_manager:body }}
</body>
  1. Configure in Control Panel:

    • Navigate to Tools > Consent Manager
    • Add your tracking services and scripts
    • Enable built-in integrations (Google Tag, Meta Pixel, etc.)
  2. Done! Your consent dialogs are live.

Documentation

Complete documentation is available in DOCUMENTATION.md:

Built-in Integrations

Google Tag (Consent Mode v2)

Complete integration with Google's Consent Mode v2, automatically mapping your consent categories to Google's storage types.

Meta Pixel

Manage Facebook Pixel consent with automatic grant/revoke handling.

LinkedIn Insight Tag

Track conversions and audience building with proper consent management.

Support

For support, questions, or feature requests, please open an issue on this GitHub repository.

License

This is a commercial addon that requires a license for production use.

Purchase a license on the Statamic Marketplace →

See LICENSE.md for full license terms.

Copyright © 2026 Emin Jasarevic

Made by kiwikiwi for the Statamic community

统计信息

  • 总下载量: 183
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: proprietary
  • 更新时间: 2025-12-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固