Platform 2 Guide — This article applies to the new platform. Looking for classic platform docs? Browse the Platform 1 collection.
Why: Automatically track key member interactions to understand your app's performance and improve user engagement. This integration helps you gain insights into signups, logins, and purchases, enabling you to make data-driven decisions.
Navigate: App Station > Settings > Advanced > Tracking & Scripts
Quick Start
Go to App Station and navigate to Settings > Advanced > Tracking & Scripts.
Enable the Custom Tracking Scripts feature.
Enter your GA4 Measurement ID and/or GTM Container ID.
Save your changes.
Verify events in GA4 DebugView or GTM Preview.
Understanding Events Sent to GA4 and GTM
When you configure tracking in your app, several key member lifecycle events are automatically sent to your Google Analytics 4 (GA4) property and Google Tag Manager (GTM) container. These events help you track important actions taken by your members.
Member Lifecycle Events
The following events are tracked:
mk_signup: Triggered when a member creates a free account or signs up via OAuth.mk_login: Triggered when a member logs in using email/password or OAuth.mk_purchase: Triggered when a member successfully completes a purchase on the checkout success page.
Each of these events uses the mk_ prefix to avoid conflicts with built-in GA4 events.
SPA Page Views
For GTM, a page_view event is sent to the dataLayer during client-side navigation. This is part of the Single Page Application (SPA) tracking, which allows you to monitor how members interact with your app without reloading the page.
User ID Tracking
When a member is logged in, the app sets a user_id using the Member Kitchens user UUID. This enables cross-device tracking, allowing you to see how members interact with your app across different devices.
Consent Mode v2
Consent Mode v2 is automatically configured when you set up GA4 or GTM. This ensures that tracking scripts respect user consent settings, preparing your app for future cookie banner 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 favorites and comments), are not sent to GA4 or GTM. Instead, these metrics are available in the App Station analytics section. Use the App Station analytics to track content engagement and site traffic.
Verifying Events
To ensure that your events are being tracked correctly, you can verify them using the following methods:
GA4 DebugView
Install the Google Analytics Debugger or enable debug mode in GA4.
Open Admin → DebugView in your GA4 property.
Perform actions in your app (signup, login, purchase, navigation).
Check that the events
mk_signup,mk_login,mk_purchase, andpage_viewappear in the DebugView.
GTM Preview
Open GTM and click on Preview.
Connect to your tenant domain.
Navigate through your app and complete lifecycle actions.
Confirm that the events appear in the Tag Assistant Data Layer.
