Zaraz Triggers

Hey everyone, if I load GA4 with zaraz, standard config, can I then do:
await gtag("event", name, config)
await gtag("event", name, config)
To track events or I need to do something else?
3 Replies
Mackenly
Mackenly7mo ago
No, you use zaraz triggers to make event calls.
cosbgn
cosbgnOP7mo ago
So: zaraz.track("purchase", {value: 200, currency: "USD"}) ? And I don't need to import zaraz right? Where do I tell it that it's a GA event? ah I create a trigger in the dashboard, got it
Mackenly
Mackenly7mo ago
Zaraz is loaded in automatically when your site is orange clouded :pixelcf: and zaraz configured Yes, you create triggers in the dashboard. You can think of Zaraz as similar to Google Tag Manager. You don't directly interact with tools. Instead, you use Zaraz to send data and events to the tools. For serverside managed components, the tool's code itself isn't even loaded on the page.
Want results from more Discord servers?
Add your server