Submit a ticket My Tickets
Welcome
Login  Sign up
Open navigation

How to Use Automations Combined with GA4 (Google Analytics 4)

Availability
Starter
Pro Trainer
Learning Center
High Volume & Corporate

Google Analytics is the top tool for tracking and reporting web traffic. LearnWorlds integrates effortlessly with Google Analytics, enabling you to quickly view how many people are visiting your site, where they're coming from, how long they stay, how they interact with your content, and more.


In LearnWorlds, by default, certain events like Registration, Free Trial, and Purchase are automatically sent to your Google Analytics 4 account. This allows you to track key interactions on your platform for better ad targeting and analytics.


However, if you want to track additional events beyond these default ones—like course completions, or quiz submissions—you can do so by using an advanced setting for Server-Side Events combined with automations. 


In this article, we will walk you through setting up automations and enabling the necessary settings to send custom events for use in GA4.

Create your Automation

The most important part is that you need to set up Automations: Within LearnWorlds, you can create automations that are triggered by specific user actions. For example, you could set up an automation to trigger when a student completes a course.


Navigate to Users Automations and create a new automation.

You have the option to use only if conditions with your automations related to GDPR. You can choose to send these data only if the user has accepted cookies or if they are subscribed to marketing emails.

Before completing your automation make sure that your integration is activated so the flow can work properly. To do so, navigate to Integrations Analytics and Enable server side events and paste the Secret value created in your GA4 account. In case you also want to send the default events make sure to enable the three checkboxes related to Google Analytics 4.

You can check how to find your tracking ID (needed for the default events) here. To get your Secret value follow the following steps:


1. Navigate to admin settings in your Analytics dashboard.

2. Go to Data Collection and modificationsData Streams and choose your DataStream.

3. Click on “Measurement Protocol API secrets”.

4. Copy the “Secret value”.

5. Navigate back to your LearnWorlds school and paste the Secret value on the respective field.

You can now leverage automations to send any type of event you desire on GA4, and utilize it for your campaigns.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.