Skip to content

Add To Google Analytics action

The Google Analytics action in Stack allows you to fire a custom event in your Google Analytics (GA) account. This feature supports both Google Analytics 4 (GA4) and Universal Analytics (UA), enabling you to track specific user interactions or behaviors on your website or app for enhanced insights.

Google Analytics

This action lets you send custom events directly to Google Analytics (GA4 or UA) by specifying details such as the Measurement ID, Event Name, API Secret, and Event Value.

  • Action Name: Set a descriptive name for the action (e.g., “Add to Google Analytics”).
  • Action Type: Choose either “Google Analytics 4” or “Universal Analytics” based on your setup.
  • Measurement ID: Enter the Measurement ID for your GA4 property.
  • Event Name: Specify the event name that will appear in GA4/UA (e.g., “purchase”, “page_view”). Refer here for Google’s event naming rules.
  • API Secret: Input the API secret from your GA4 setup to securely send event data.
  • Event Value: Optionally, pass a value related to the event, such as revenue or clicks.
Field Name Description Mandatory
Measurement ID The unique ID for your Google Analytics property in GA4 Yes
Event Name The name of the event you want to trigger in GA4 or UA Yes
API Secret A secret key generated in Google Analytics to send data securely Yes
Event Value The value or parameter you want to pass along with the event No

Imagine you want to track when a user completes a form submission on your website. You can use this action to fire a “Form Submitted” event in Google Analytics. The Measurement ID will link the event to the correct property, and the API secret ensures the data is securely transmitted.

  • Form Submission: Trigger this action when a form on your website is submitted to send event data to GA.
  • Page Visit: Trigger the event when a user visits a specific page, like a product page, to track user behavior.
  • Tag Added: When a user tag is added (e.g., “New Lead”), this action could send an event to GA tracking that change.
  • Appointment Booked: Fire an event when a user books an appointment to track how many appointments are made through your system.
  • Product Purchase: Trigger this action when a product is purchased and send relevant information to Google Analytics (e.g., purchase value).
  • Ensure that Google Analytics is correctly configured in your system before using this action.
  • Events sent to Google Analytics can be used for reporting, segmentation, and marketing automation.
  • Verify that the Measurement ID and API secret are accurate for successful event tracking.
Can't find what you need? Call or text +1 787 665-9212 or email support@stackapp.co.© Stack · Privacy · Terms