ignitionstack.pro v1.0 is out! Read the announcement →
Skip to Content

📊 Quick Reference - GA4 Events

Quick guide to every Google Analytics 4 event

🏠 Landing Page

EventWhen it firesComponent
hero_cta_clickClick on a hero buttonHero Section
nav_item_clickClick on a menu itemHeader
project_card_clickClick on a project cardProjects Section
project_tab_changeProject tab changeProjects Section
content_highlight_clickClick on a content highlightContent Highlights
store_cta_clickClick on the store CTAStore CTA
footer_link_clickClick on a footer linkFooter
footer_social_clickClick on a social iconFooter

📝 Blog

EventWhen it firesComponent
blog_post_card_clickClick on a blog post cardBlog List
blog_filter_changeFilter changeBlog Filters
blog_searchSearch performedBlog Search
blog_post_reactionReaction addedBlog Post
blog_post_sharePost sharedBlog Post
blog_related_post_clickClick on related postBlog Post
blog_reading_progressReading milestones (25%, 50%, 75%, 100%)Blog Post

💡 Insights

EventWhen it firesComponent
insight_card_clickClick on an insight cardInsights List
insight_filter_changeFilter changeInsights Filters
insight_lead_magnet_viewLead magnet displayedInsight Detail
insight_lead_magnet_downloadMaterial downloadedInsight Detail
insight_newsletter_subscribeNewsletter subscriptionNewsletter Form

🛒 Store

EventWhen it firesComponent
store_template_viewTemplate viewedStore List
store_template_demo_clickClick on “View Demo”Template Card
store_filter_changeFilter changeStore Filters
store_add_to_cartTemplate added to cartTemplate Card
store_initiate_checkoutCheckout startedTemplate Card
purchasePurchase completedStripe Checkout
store_template_downloadFree template downloadTemplate Card

📧 Contact

EventWhen it firesComponent
contact_form_startForm startContact Form
contact_form_field_interactionField interactionContact Form
contact_form_submitForm submittedContact Form
contact_form_errorForm errorContact Form

🚀 Projects

EventWhen it firesComponent
projects_card_clickClick on a project cardProjects Page
projects_github_cta_clickClick on “View on GitHub”Projects Page
projects_live_demo_clickClick on “View Demo”Projects Page
projects_filter_changeFilter changeProjects Page

🎨 UI / Theme

EventWhen it firesComponent
theme_toggleTheme changeTheme Switcher
locale_switchLocale changeLocale Switcher
scroll_to_sectionScroll to sectionNavigation

👨‍💼 Admin

EventWhen it firesComponent
admin_post_createPost createdAdmin Panel
admin_post_editPost editedAdmin Panel
admin_image_uploadImage uploadedAdmin Panel

📋 Common Parameters

Every event automatically includes:

{ locale: string, // "pt", "en", "es" page_path: string, // "/pt/blog" page_title: string, // "Blog - ignitionstack.pro" funnel_stage: string, // "awareness", "consideration", "conversion", "loyalty" source_component: string, // "hero_section", "blog_list", etc engagement_type: string, // "click", "impression", "form", "tab_change" environment: string // "production", "development", "preview" }

💻 How to Implement

1. Import

import { landingPageEvents, blogEvents, storeEvents, contactEvents } from "@/app/lib/analytics-events"; import { getCurrentPageMetadata } from "@/app/lib/analytics";

2. Track Event

const handleClick = () => { const metadata = getCurrentPageMetadata(); landingPageEvents.heroCTAClick({ ...metadata, destination: "/pt#projects", cta_type: "primary", }); };

3. Inspect in the console (dev)

[GA4] hero_cta_click { locale: "pt", ... }

🎯 Suggested Conversion Funnels

Purchase Funnel

  1. store_template_view → CONSIDERATION
  2. store_template_demo_click → CONSIDERATION
  3. store_initiate_checkout → CONVERSION
  4. purchase → CONVERSION

Lead Funnel (Insights)

  1. insight_card_click → CONSIDERATION
  2. insight_lead_magnet_view → CONVERSION
  3. insight_lead_magnet_download → CONVERSION
  4. insight_newsletter_subscribe → LOYALTY

Contact Funnel

  1. hero_cta_click (secondary) → AWARENESS
  2. contact_form_start → CONVERSION
  3. contact_form_submit → CONVERSION

🐛 Debug Mode

To enable GA4 debug mode:

window.gtag('set', 'debug_mode', true);

To log events in the production console:

localStorage.setItem('GA_DEBUG', 'true');

Full documentation: GA_EVENTS_DOCUMENTATION.md Source code: src/app/lib/analytics-events.ts