Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Here's a simple patch that adds an option in the configuration page which lets the site administrator control whether the pixel code appears on admin pages.
Comment | File | Size | Author |
---|---|---|---|
#2 | fb_pixel-2698207-2.patch | 1.26 KB | hargobind |
|
Comments
Comment #2
hargobindPatch attached
Comment #3
hargobindComment #5
Perignon CreditAttribution: Perignon as a volunteer commentedIf you like, we welcome contributions on the Facebook Tracking Pixel module.
https://www.drupal.org/project/facebook_tracking_pixel
The owner of this module will not be doing any updates to it. I have been in contact with the owner and they were going to point to our module but haven't done so yet.
Comment #6
jasom CreditAttribution: jasom commentedTurn of FB pixel on admin pages as default. Facebook does not need to track site's admins.
Comment #7
maciej.zgadzaj CreditAttribution: maciej.zgadzaj commentedI have updated the module project page and marked the module as Unsupported/No further development.
Comment #8
maciej.zgadzaj CreditAttribution: maciej.zgadzaj commentedOn the other hand, as the good-looking patch was provided, I don't actually mind merging this.
It has been pushed to 7.x-1.x.