neosrulez/cookieoptin

Last activity 25 days ago
composer require neosrulez/cookieoptin

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

1.0.1

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

Version
1.0.1
Type
neos-package
Release Date
05.06.2021 17:03:42
Source
git
Distribution
zip
Requires
Requires (dev)
None
Suggest
None
Provides
None
Conflicts
None
Replaces
None
f92a08a688d71062953dfac1d6544aa992c6e28f

Cookie Opt-In for Neos CMS

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:
    cookieMetadata: 'resource://NeosRulez.CookieOptIn/Private/Metadata/'

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

The content of the readme is provided by Github
The same vendor provides 41 package(s).