Gatsby plugin to add Google Analytics (V4 is supported), Google Tag Manager, Facebook Pixel, TikTok Pixel and Hotjar in a GDPR form to your site.
The gatsby-plugin-gdpr-cookies is an essential tool for developers looking to incorporate GDPR compliance into their sites while utilizing popular tracking tools like Google Analytics, Google Tag Manager, Facebook Pixel, TikTok Pixel, and Hotjar. Version 2 of the plugin has undergone significant rewrites, particularly removing server-side rendering (SSR) components to prevent any data transmission before securing user consent. This ensures that webmasters can maintain compliance without sacrificing the utility of tracking analytics, making it a reliable choice for modern web applications.
With GDPR regulations becoming increasingly important, this plugin’s features allow site owners to seamlessly integrate varied tracking codes while keeping user privacy at the forefront. The ease of installation and configuration, combined with the plugin’s focus on compliance, provides a solid foundation for any Gatsby developer looking to enhance their site’s tracking capabilities responsibly.
GDPR Compliance: No data is sent prior to user consent, ensuring your site adheres to GDPR regulations.
Flexible Tracking Integration: Supports Google Analytics (including V4), Google Tag Manager, Facebook Pixel, TikTok Pixel, and Hotjar for comprehensive analytics tracking.
Customizable Cookie Management: Users can define custom cookie names and manage consent for each tracking feature individually.
Route Update Tracking: Automatically tracks page views and updates tracking based on user consent, minimizing the need for page reloads.
Anonymization Support: Provides options for anonymizing IP addresses for compliance with country-specific regulations.
Opt-Out Functionality: Visitors can easily opt-out of tracking by setting the relevant cookies to false, allowing for user control over data sharing.
Minimal Dependencies: Streamlined code with reduced dependencies ensures a lightweight bundle size, enhancing site performance.
User-Friendly Installation: Quick setup with Yarn or NPM commands makes it accessible even for those who are not deeply familiar with coding.