react-cookiehub-banner

0.0.1 • Public • Published

React CookieHub Banner

With this React component you can integrate cookie banner from cookiehub.com

Configuration

Installation

npm:

npm install --save react-cookiehub-banner

dependencies: react-helmet

Example

import React from "react";
import CookieHubBanner from "react-cookiehub-banner";
 
class Application extends React.Component {
  render () {
    return (
        <div className="application">
            <CookieHubBanner 
                googleTrackingId="XX-XXXXXXXXX-X" 
                cookieHubId="XXXXXXXX"/>
        </div>
    );
  }
};

You can find the CookieHub ID within the script generated by CookieHub as part of the cookiehub url: https://cookiehub.net/cc/YOURCOOKIEHUBID.js

/react-cookiehub-banner/

    Package Sidebar

    Install

    npm i react-cookiehub-banner

    Weekly Downloads

    2

    Version

    0.0.1

    License

    none

    Unpacked Size

    208 kB

    Total Files

    8

    Last publish

    Collaborators

    • virtualfox0