@@ -5,7 +5,5 @@ export const executeGoogleAnalyticsBlock = async (
|
||||
options: GoogleAnalyticsOptions
|
||||
) => {
|
||||
if (!options?.trackingId) return
|
||||
const { default: initGoogleAnalytics } = await import('@/lib/gtag')
|
||||
await initGoogleAnalytics(options.trackingId)
|
||||
sendGaEvent(options)
|
||||
}
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
import { trackPixelEvent } from '@/lib/pixel'
|
||||
import { isEmpty } from '@typebot.io/lib/utils'
|
||||
import type { PixelBlock } from '@typebot.io/schemas'
|
||||
|
||||
export const executePixel = async (options: PixelBlock['options']) => {
|
||||
if (isEmpty(options?.pixelId)) return
|
||||
trackPixelEvent(options)
|
||||
}
|
||||
Reference in New Issue
Block a user