Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions tarteaucitron.services.js
Original file line number Diff line number Diff line change
Expand Up @@ -5774,6 +5774,10 @@ tarteaucitron.services.facebookpixel = {
n.version = '2.0';
n.queue = [];
tarteaucitron.addScript('https://connect.facebook.net/en_US/fbevents.js');
// Must be set before init, otherwise the pixel never loads the Conversions API Gateway plugin
if (typeof tarteaucitron.user.facebookpixelOpenBridge === 'string') {
fbq('set', 'openbridge', tarteaucitron.user.facebookpixelId, tarteaucitron.user.facebookpixelOpenBridge);
}
fbq('init', tarteaucitron.user.facebookpixelId);
fbq('track', 'PageView');

Expand Down
Loading