Growth
Analytics events
Plans and adds GA4/GTM events for CTAs, forms and key steps, with UTM-friendly links.
Paste it into any prompt, or type @ in the chat.
Example prompt
Track button clicks and form submits @analytics-events
What Spearbot does with it
Add meaningful analytics events.
- If GA4 (gtag) or GTM (dataLayer) is installed, add events: cta_click (with cta_text and location), form_start, form_submit (success only), and for funnels step_view per step. Use dataLayer.push for GTM, gtag('event', ...) for GA4.
- Don't send personal data (names, emails) in events.
- Keep Spearbot's funnel tracking snippet (/t.js) untouched; it already records views and submits.
- If no analytics is installed, tell the user to add Google Analytics or Tag Manager from Integrations first, and add nothing.