LogoLogo
WebsiteBlog
  • Introduction
  • CDP Overview
  • Identity Resolution
  • CDP Guidelines for Data Sanity and Campaign Governance
  • Login and User Management
    • Login to the platform
    • Change Password / Retrieve your Account
    • Role Based Access Control
      • User Management
      • Roles
    • Single Sign-On (SSO)
  • Events
    • Events Overview
    • App Events
    • Track
    • Identify
    • Page
    • Screen
    • Event Dictionary
  • Sources
    • Sources Overview
    • Android SDK
    • iOS SDK
    • JavaScript SDK
    • React Native SDK
    • Flutter SDK
    • REST API
    • Adobe Analytics Exports
    • SFTP
    • Kafka
    • Offline File Ingestion
  • Destinations
    • Destinations Overview
    • Quora Pixel
    • Hotjar
    • Clevertap
    • Google Analytics 4 (GA4)
    • Meta Pixel
    • Meta Conversion API
    • LinkedIn Insight Tag
    • Adobe Target
    • AppsFlyer
    • AWS S3
    • Criteo
    • Kafka
  • Integrations
    • Rudderstack
    • Azure Blob
    • Adobe Launch Private Extension
    • Adobe Launch Extension
    • Salesforce CRM
    • Microsoft Dynamics 365
  • Customer One View
    • Introduction
    • Basic details, Attributes and Devices
    • Segment and Engagement
    • Activity
  • Segments
    • Getting Started
    • Create a Segment
  • Channels
    • Getting Started
    • A/B Testing
    • SMS
      • Set up an SSP
        • Netcore
        • Twilio
        • Adobe Campaign Classic
        • Gupshup
        • Unifonic
        • Infobip
        • Tubelight
      • Add an SSP
      • Create SMS campaign
      • FAQs
    • Email
      • Set up an ESP
        • SendGrid
        • SendInBlue
        • SparkPost
        • Taximail
        • Netcore
        • Adobe Campaign Classic
        • Mailchimp
        • Oracle Email Delivery
        • Infobip
        • Vision6
      • 🆕Add an ESP
      • Create Email campaign
      • Common use cases with Email Editor
      • Why Email Notification may not get delivered?
      • FAQs
    • App Push Notification
      • Create App Push Notification - Android
      • Create App Push Notification - iOS
      • Why App Push Notification may not get delivered?
      • FAQs
    • WhatsApp
      • Configure a WSP
        • Yellow Messenger
        • Infobip
        • Gupshup
        • BIK.ai
        • Vonage
        • Sinch
        • Tubelight
      • Create WhatsApp campaign
      • FAQs
    • RCS
      • Add an RCS API
      • Example: Netcore RCS API
      • Create an RCS campaign
      • FAQs
    • Web Push Notification
      • Create a Web Push Notification
      • Create a Default Web Push Notification
      • FAQs
    • On-site Notification
      • Create On-site Notifications.
      • Common use cases with On-site Notification.
      • Notification Templates
    • Banner Personalization
      • Create a Personalized Banner
      • Create a Default Banner
    • External API
      • Create Engagement
      • Test your API configuration
      • Example Use Cases of External APIs
        • Use case 1: HubSpot - Create Contacts API
        • Use case 2: Exotel's Make a call API
        • Use case 3: Mailmodo's Send Campaign Email API
  • Ramanujan AI
    • Lead scoring
    • Channel Orchestration
    • Content Generator
      • Generate Web Push Content
  • Journey Builder
    • Overview- Journey Builder
    • View all Journeys
    • Create a Journey
    • Journey Reports
    • FAQs
  • Audience Export
    • Facebook Export Channel
    • Google Ads Export Channel
  • Analytics
    • Dashboard
      • Guiding through the Dashboard
      • Unique Profile
      • Profile and Merge Trends
      • Campaign and Revenue Dashboard
    • Campaign Summary
    • Events Occurrence
    • Event Telemetry
    • App Installs and Uninstalls
    • Funnels
    • Paths
    • Traffic Analysis
    • Cohorts
    • Data sanity between Funnels, Paths and Events
    • FAQs
  • Developer APIs
    • User Profile API
    • WhatsApp Opt-in/Opt-out API
    • Subscription Management
  • Settings
    • Product Label
    • Frequency Caps
    • Contacts
Powered by GitBook
On this page
  • Connection
  • Use Cases of GA4
  • Getting started
  • Configuring GA4 for Flutter SDK
  • Add Google Analytics 4 to Flutter SDK
  • Recommended Events
  • Custom Events
  1. Destinations

Google Analytics 4 (GA4)

PreviousClevertapNextMeta Pixel

Last updated 1 year ago

Google Analytics 4 is the most powerful and popular analytics tool available. It is used to track and report traffic for both websites and applications across a variety of sources. With Google Analytics 4, you can uncover insights and gain a deeper understanding of your customers across devices and platforms with machine learning.

Connection

Connection
Web
Mobile

​📱Device Mode

​✅

​✅

☁️Cloud Mode

🚫

🚫

Use Cases of GA4

  • Fewer settings are required since data mapping is done during configuration for action-based destinations.

  • Data mapping is made much clearer. With action-based destinations, you can define the mapping between the data segments you receive from your source and the data segments you send to Google Analytics 4.

  • Mappings for recommended Google Analytics 4 events are prebuilt and can be customized.

  • Google Analytics 4 supports multi-product arrays. An analytics tool can be used to analyze products nested within arrays, such as those in the order completed event.

GA4 helps you to see users moving on your site and between subdomains accurately. Therefore, you can see how your visitors are interacting with your site without needing multiple views.

Getting started

First, you'll have to configure a Google Analytics 4 property in your Analytics account. You can refer to Google’s article on how to .

After configuring GA4 in your analytics account, please provide the measurement ID and API Secret associated with your GA4 account to our customer success or delivery team. We will further help you set up the account.

Destination
Description

​Measurement ID

The measurement ID associated with your account. You can navigate to Google Analytics UI under: Admin > Data Streams > choose your stream > Measurement ID

Configuring GA4 for Flutter SDK

Step 2: Add the below configuration to the main.dart file:

Add Google Analytics 4 to Flutter SDK

Dart:

main.dart
 //GA4 params
    LemniskFirebaseCore lemniskFirebaseCore = LemniskFirebaseCore(
      projectName: "xxx",
      enable: false,
      appId: "xxx",
      apiKey: "xxx",
      projectId: "xxx",
      messagingSenderId: "xxx"
    );
Parameter
Description

​projectName

Your project name

appId

Your app ID

apiKey

Your app API key

​projectId

Your project ID

​messagingSenderId

Y​our unique sender ID

enable

Flag to toggle sending events to GA4 (default: false)

Recommended Events

Some recommended events are listed below. With Lemnisk SDK, you can map your events with GA4-recommended events.

Event
Description

Page View

You can send this event when a user views a page.

​View Item List

​You can send this event when a user views a list of items.

Add to Cart

You can send this event when a user adds items to the cart.

​Purchase

You can send this event when a user completes a purchase.

​Login

You can send this event when a user logs in.

For any mapping requirements, feel free to contact us.

Custom Events

You will first have to create custom dimensions and metrics within the Google Analytics 4 account and link the event parameters to their corresponding dimension or metrics. As you create the dimension or metric, you can either select a parameter from the list of already collected fields or enter the name of the parameter you wish to collect in the future.

Step 1: Follow the steps to initialize the SDK .

To add GA4 destination to Flutter SDK, follow the steps to initialize the SDK . Then add the following configuration:

You can refer to the to know more about the events.

You can refer to the document to know more.

Recommended events
Custom dimensions
Set up Analytics for a website and/or app
Web stream details
Configuring custom events
here
here