Submit a ticket My Tickets
Login  Sign up
Open navigation

How to Integrate Google Analytics 4 with LearnWorlds

Pro Trainer
Learning Center
High Volume & Corporate

Google Analytics is the industry-leading tool for tracking and reporting web traffic. LearnWorlds offers seamless integration with Google Analytics to easily see how many people are visiting your website, where they are coming from, how long they are staying, how they are interacting with the site, and much more.

Set up the Google Analytics 4 Property

1. Visit the Google Analytics Website and log in with your account. 

2. Click on Settings Admin and Create a property.

3. Enter your property name, and select the reporting time zone and currency.

4. Click on Next, choose the Industry Category, Business size, Business objectives, etc, and click on Create. Now you have created your GA4 property. 

5. You need to configure the source of your data collection, or data stream. First, select the type of platform you work with; for example, if you work with websites, select the Web platform option.

In the data stream creation panel that shows up, insert your domain (Website URL) and assign a name to your stream (Stream name). Click on Create stream. Your data stream is now created, along with all the needed information to set up Google Analytics 4 with Learnworlds.

6. There are three possible ways to set up Google Analytics 4 with Learnworlds. You need to make sure you go only with one of them: 

a. LearnWorlds native GA4 Integration (recommended)

b. LearnWorlds Custom Code Editor

c. Google Tag Manager

a. LearnWorlds native GA4 Integration (recommended)

Steps 1-5 above are required to proceed with this step.

Copy the Measurement ID that Google Analytics just generated for you and paste it into your LearnWorlds school under Settings Ιntegrations Analytics. Click on Save.

b. LearnWorlds Custom Code Editor

Steps 1-5 above are required to proceed with this step.

In the data stream details panel that shows up in your Google Analytics after the data stream creation, scroll all the way down and select View tag instructions.

Select the Install manually tab and copy the Google tag. 

Navigate to your LearnWorlds school and go to Site Builder Custom Code, and paste the Google tag in both head sections (logged in and logged out) of the Site Custom Code editor.

Your GA4 property is now set up in LearnWorlds.

c. Google Tag Manager

To follow this implementation you need to have a GTM (Google Tag Manager) Container already created and installed on your website.

Steps 1-5 above are required to proceed with this step.

Navigate to GTM, and create a new tag. In the creation panel, under Tag Configuration choose the tag type Google Analytics: GA4 Configuration and insert the measurement ID found in your GA account’s data stream’s details.

Under Triggering, choose the All Pages trigger to trigger the event on all pages. This way you’ll be measuring your users' behavior throughout the entire website. This is what your configuration will look like. Give your tag a name and hit Save. You’re all set.

Supported Events

In its current implementation, LearnWorlds uses the gtag.js library to help collect data in Google Analytics. The events supported out of the box by LearnWorlds’ GA integration are the following:

  • Sign up / Registration
  • Purchase
  • Free trial on a subscription plan
  • Page View


  • Follow the respective Google Support article on how to set up e-commerce events with your Google Analytics 4 property.
  • You can also add PayPal to Referral Exclusion List in Google Analytics. Click here and here for more information.  
  • Users will need to accept the Marketing Cookies, for Google Analytics to work properly.      

Did you find it helpful? Yes No

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