Is your feature request related to a problem? Please describe.
Is there any particular reason to trigger the window.fbq('track', 'PageView') event inside of the trackTikTokPixel function ?
Describe the solution you'd like
It would be really helpful to have a way to opt out of the PageView event for the tiktok tracker or in general, like a pageViewDisable bool field inside of gatsby-config.js for the facebookPixel and tikTokPixel objects.
Additional context
My problem is that I wanted to add the eventID param to the PageView event for facebook pixel, after adding it manually (I had to opt out of the gatsby-gdpr-facebook-pixel and install fbevent.js manually because there is no way of doing it with this package), I got a warning that the event is getting duplicated and found out it was getting triggered by the trackTikTokPixel.
Is your feature request related to a problem? Please describe. Is there any particular reason to trigger the
window.fbq('track', 'PageView')
event inside of thetrackTikTokPixel
function ?https://github.com/andrezimpel/gatsby-plugin-gdpr-cookies/blob/02ce0e6aed6277b34041c6f9ca662ec26abad752/src/services/tiktok.js#L35-L44
Describe the solution you'd like It would be really helpful to have a way to opt out of the
PageView
event for the tiktok tracker or in general, like apageViewDisable bool
field inside ofgatsby-config.js
for thefacebookPixel
andtikTokPixel
objects.Additional context My problem is that I wanted to add the
eventID
param to thePageView
event for facebook pixel, after adding it manually (I had to opt out of thegatsby-gdpr-facebook-pixel
and installfbevent.js
manually because there is no way of doing it with this package), I got a warning that the event is getting duplicated and found out it was getting triggered by thetrackTikTokPixel
.