Skip to content

Commit

Permalink
Update customer-events-custom-pixel.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ceaksan committed Mar 12, 2023
1 parent 808858c commit 90fccb2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions customer-events-custom-pixel.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
const analyticsTools = {
logging: true,
logging: false,
ga4: {
enabled: true,
debug_mode: true,
id: 'G-LQ2EEY9CXP',
debug_mode: false,
id: 'G-XXXXXXXXXX',
sendEvent: function (eventName, eventData) {
// send event to Google Analytics 4
gtag('event', eventName, eventData);
},
},
gtm: {
enabled: true,
id: 'GTM-TRGXFL',
id: 'GTM-XXXXXXXXXX',
sendEvent: function (eventName, eventData) {
// send event to Google Tag Manager
dataLayer.push({ event: eventName, ...eventData });
}
},
fbq: {
enabled: true,
id: 'XXXXX',
id: 'XXXXXXXXXX',
sendEvent: function (eventName, eventData) {
// send event to Facebook Pixel
fbq('track', eventName, eventData);
Expand Down

0 comments on commit 90fccb2

Please sign in to comment.