Skip to content

Conversation

@robbievolt
Copy link

This adds GDPR consent to the meta-pixel and nuxt-meta-pixel package, following https://developers.facebook.com/docs/meta-pixel/implementation/gdpr/

This has been done by adding a consent parameter to the pixel config and init function.
By default the consent parameter is "grant", so pixels without this parameter will stay working.
To be GDPR compliant, the parameter needs to be set to 'revoke' in the pixel configuration, and later set to 'grant' with $fbq.consent('grant') after the user's cookie consent has been retrieved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant