Skip to content

A Simple Cookie Notifikation Solution for Google Analytics and Goolge Tag.

License

Notifications You must be signed in to change notification settings

gietmanic/next-cookie-message

Repository files navigation

Next Cookie Massage

A Simple Cookie Notifikation Solution for Google Analytics and Goolge Tag.

Features

  • Easy Cookie Notifikation
  • Google Analytics
  • Google Tag

Installation

Install with npm

  npm i @gietmanic/next-cookie-massage

Usage/Examples

In the Main Layout File Replace GTag with your GTag ID and GAnalytics with your Analytics Id

import {CookieManager, CookieMessage} from "@gietmanic/next-cookie-message";

function App() {
  return (
      <html lang="en">
            <body>
                <CookieManager
                  GTag="YOUR GTAG ID"
                  GAnalytics="YOUR G Analytics ID"
                />
                {children}
               <CookieMessage
                  datenschutzlink={"LINK ZUM DATENSCHUTZ"}
                />
            </body>
        </html>

  )
}

Roadmap

  • Dark Mode

  • More Config Options

  • Additional Cookies

License

MIT

About

A Simple Cookie Notifikation Solution for Google Analytics and Goolge Tag.

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published