定制 neosrulez/cookieoptin 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

neosrulez/cookieoptin

最新稳定版本:2.0.9

Composer 安装命令:

composer require neosrulez/cookieoptin

包简介

A package which handles Cookie Opt-In for Neos CMS.

README 文档

README

A package which handles Cookie Opt-In for Neos CMS.

Installation

The NeosRulez.CookieOptIn package is listed on packagist (https://packagist.org/packages/neosrulez/cookieoptin) - therefore you don't have to include the package in your "repositories" entry any more.

Just run:

composer require neosrulez/cookieoptin

Usage

Definition of the cookies used in the json files in all necessary languages.

NeosRulez:
  CookieOptIn:
    metadataPathAndFilename: 'resource://NeosRulez.CookieOptIn/Private/Metadata/{lang}.cookie.json'
    bannerDelayTime: 2000

Neos side

Definition of data-attributes (data-cookie) in iframe tags and additionally type="text/plain" in script tags. It's easy with Fusion.

<iframe data-cookie="bar" width="1116" height="628" cookie-src="https://www.youtube.com/embed/7KUdmFyefSA" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<script data-cookie="all" type="text/plain" async src="https://www.googletagmanager.com/gtag/js?id=UA-141147524-30"></script>
<script data-cookie="all" type="text/plain">window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);}gtag("js", new Date());gtag("config", "UA-141147524-30");</script>

Author

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2021-06-03