Inline Manual allows you to track the activities of your users in external Analytics applications like Google Analytics. For instance, you can track what Topics were played and completed by your users. In this guide we will show you how to integrate Google Analytics. You will require a Google Analytics 4 property with the tracking code and a created Site within Inline Manual.


Realtime Reports - Google Analytics


Please note that Universal Analytics (UA) will be retired by July 2023. We recommend that you use Google Analytics 4 (GA4) instead.



Integrating Google Analytics


  1. In your Inline Manual account, click on Sites > Settings (A) > Player Integrations (B). Enable the Google Analytics checkbox (C) and select the options for Topic Start, Topic End, Step Show, and Topic Done. These are the only events that are tracked by default.



  • Topic Start - This is an event that shows when a Topic has been launched in your application
  • Topic End - This event signifies when the Topic has been deactivated
  • Step Show - This event signifies when a Step in a Topic has been displayed to the user
  • Topic Done - This event signifies when a user has reached the last step in a Topic or if a Topic with the End Step option enabled is reached.


Make sure to click the Save button at the end of the page when you have changed the settings.


  1. Copy the Google Analytics 4 (GA4) tag from your Google Analytics property and paste it after the <head> in the application's HTML code.



Example code placement on your website:


<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <!-- Google tag (gtag.js) -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=G-YLJ4D51YQH"></script>
    <script>
        window.dataLayer = window.dataLayer || [];
        function gtag() { dataLayer.push(arguments); }
        gtag('js', new Date());

        gtag('config', 'G-YLJ4D51YQH');
    </script>

    <title>Document</title>
</head>

<body>

    <h1>Hello World!</h1>

</body>

</html>


Test that events are being sent to Google Analytics by launching a Walkthrough in your application, view the steps and complete the Walkthrough. Navigate to your GA4 property in Google Analytics, and click on Reports > Realtime.


Inline Manual Events in Google Analytics


Please note that other reports like Engagement and Acquisition may not reflect any tracking data until after a few hours.


Tracking other events

If you want to track other events like the Event Category, Topic title, Topic ID, Step title and Step index, please read our guide on Google Analytics 4 and Google Tag Manager analytics.


Troubleshooting

If you cannot see any Inline Manual events in your Google Analytics account, make sure that you have enabled the Google Analytics integration in your Inline Manual account for the Site and ensure that you followed the Google tag installation instructions provided by your Google Analytics account. If you still cannot resolve it please get in touch with support@inlinemanual.com to take a look at it for you.


Outcome: You should see the Inline Manual events in your Google Analytics property when users interact with the Topics in your application.