Skip to main content

Google Analytics and Tag Manager Events

Google Analytics and Tag Manager Events Why: Gain valuable insights into your app's performance and member interactions by automatically tracking k...

Written by Ken Truesdale

Platform 2 Guide — This article applies to the new platform. Looking for classic platform docs? Browse the Platform 1 collection.

Why: Gain valuable insights into your app's performance and member interactions by automatically tracking key events. This helps you understand user behavior, optimize your offerings, and improve member engagement.

Navigate: App Station > Settings > Advanced > Tracking & Scripts

Quick Start

  1. Go to Settings in App Station.

  2. Select Advanced and then Tracking & Scripts.

  3. Enable the Custom Tracking Scripts feature.

  4. Enter your GA4 Measurement ID and/or GTM Container ID.

  5. Save your settings.


Understanding Events Sent to GA4 and GTM

When you configure Google Analytics 4 (GA4) and Google Tag Manager (GTM) in your app settings, several key events are automatically tracked. These events help you monitor member interactions and lifecycle stages effectively.

Member Lifecycle Events

The following lifecycle events are sent to your GA4 property and/or GTM container:

  • mk_signup: Triggered when a new account is created, either through email registration or OAuth sign-in methods. Parameters include the method used (e.g., email, oauth_google).

  • mk_login: Fired when a member logs in, whether through email/password or returning OAuth. Parameters include the login method.

  • mk_purchase: Activated when a member successfully completes a purchase. This event includes details like the offer name, access levels granted, and the transaction ID.

SPA Page Views

For GTM, a page_view event is automatically pushed to the dataLayer on each client-side navigation within your app. This allows you to track how members interact with different pages without needing additional setup.

User ID Tracking

When a member logs in, their unique user ID (Member Kitchens user UUID) is set for tracking purposes. This enables cross-device tracking and enhances your ability to analyze user behavior.

Consent Mode v2

When GA4 or GTM is configured, the app automatically injects Consent Mode v2 defaults, ensuring that all necessary permissions are granted before tracking scripts load. This prepares your app for future cookie consent integrations.

What Is Not Sent to GA4/GTM

It's important to note that app usage analytics, such as content views, engagement metrics, and member interactions (like comments and ratings), are not duplicated to GA4 or GTM. These metrics are available exclusively in the App Station analytics dashboard.

Verifying Events

To ensure that your events are being tracked correctly, you can use the following methods:

GA4 DebugView

  1. Install the Google Analytics Debugger or enable debug mode in GA4.

  2. Navigate to Admin → DebugView in your GA4 property.

  3. Perform actions on your app (signup, login, purchase, navigate).

  4. Confirm that the events mk_signup, mk_login, mk_purchase, and page_view appear in the DebugView.

GTM Preview

  1. Open GTM and click on Preview.

  2. Connect to your tenant domain.

  3. Navigate through your app and complete lifecycle actions.

  4. Verify that the events appear in the Tag Assistant Data Layer.

Did this answer your question?