Gatsby Plugin Gdpr Tracking screenshot

Gatsby Plugin Gdpr Tracking

Author Avatar Theme by Andreas straub
Updated: 3 Oct 2020
15 Stars

GDPR conform analytics tracking for Gatsby website

Overview:

The gatsby-plugin-gdpr-tracking is an essential tool for web developers seeking to add powerful analytics capabilities, such as Google Analytics, Hotjar, and Google Ads, while adhering to GDPR compliance. With a focus on user consent, this plugin ensures that tracking scripts are only activated after visitors have accepted your website’s cookie policy, making it ideal for sites catering to European users or anyone concerned with data privacy.

Not only does it provide functionality to manage user consent appropriately, but it also integrates seamlessly with popular analytics solutions, allowing for real-time tracking without compromising user privacy.

Features:

  • Environment Check: The plugin first verifies the current operating environment, ensuring scripts are only added in specified conditions.

  • User Consent Management: Tracking only begins once a user has given consent, with the ability to configure cookie names for Google Analytics and other services.

  • Dynamic Tracking Activation: Instead of requiring page reloads, users can trigger Google Analytics tracking through a simple function call after consent has been granted.

  • Google Analytics Integration: Utilizes the latest Google Analytics API with gtag.js support, sending page view hits based on consent status.

  • Event Tracking Capabilities: Offers helper functions to record events and interactions, allowing detailed insights into user behavior while respecting consent.

  • Opt-Out Functionality: Includes provisions for an Opt-Out-Cookie, empowering users to prevent future tracking easily.

  • Hotjar and Google Ads Support: Similar to Google Analytics, tracking for Hotjar and Google Ads only activates post-user consent, ensuring compliance across all services.

  • Easy Setup: Installing the plugin is as simple as running a command, and it can quickly be integrated into any Gatsby site with minimal hassle.