esign / laravel-conversions-api

A laravel wrapper package around the Facebook Conversions API
MIT License
53 stars 11 forks source link

Support facebook pixel consent #8

Closed QuentinGab closed 9 months ago

QuentinGab commented 11 months ago

Omschrijving

This PR add the possibility to manage GDPR user consent by revoking consent before calling fb('init', ...) when using the blade component. The procedure implemented is described here: https://developers.facebook.com/docs/meta-pixel/implementation/gdpr/#cookieconsent

Type aanpassing

Verwijder opties die niet relevant zijn.

Testen

The blade component is now tested against the presence of fbq('consent', 'revoke');

Checklist:

Vervolledig de checklist & verwijder opties die niet relevant zijn.

jordyvanderhaegen commented 9 months ago

Hi @QuentinGab, thank you for your work on this PR.

I have decided not to merge this since we don't want this package to be involved with user consent for now. I would much rather leave the responsibility of handling user consent in the hands of the people implementing this package.

We have tagged a new release which adds support for publishing views, which will allow you to implement this yourself much easier. See 2.3.0.