
INSTRUCTIONS FOR CONNECTING AND SETTING THE INTEGRATION OF GOOGLE ANALYTICS 4 AND UNITALK
Google Analytics 4 is the new version of Google Analytics and provides more accurate and useful data about visitors and user experience than the previous version. GA4 uses a new method of tracking users and events that collects more comprehensive information about user behavior on a site or in an app. You can now collect data not only on visits and pages, but also on events, such as clicking a button, filling out a form, or watching a video. This gives you a more complete picture of how users interact with your content and what actions they perform on your site or app.
Setting up Google Analytics consists of 2 parts:
1. setting up on the Google Analytics service itself (creation of data flow, connection and setting up analytics on the required site);
2. configuration of integration in UniTalk cabinet to transfer analytics data on call events (calltracking and c2c)
Step-by-step setup of Google Analytics on the service site:
1. Go to the Google Analytics page

2. Go to the Administrator settings on the main page

3. Click on “Data Streams”

4. Select the platform on which you want to perform data collection. In this case, you must select Web to work with the website.

5. After selecting “Web”, you will be prompted to enter the address of the site where Analytics will run, and the name under which it will be saved in the Google Analytics cabinet.
You can also (optionally) set up more advanced analytics on various events occurring on the site.
After filling out the necessary data, you need to click “Create Flow”.

6. After the new “Data Stream” is created, a page opens with more detailed information and settings for this “Data Stream”.

To configure and transfer information from UniTalk to Google Analytics you need 2 main parameters:
- The Google Analytics Tracking ID (indicator) is a unique code that is assigned to each website or app to identify and track user traffic;
- A secret API token (API key) is a secret key that allows other services and applications to access data in Google Analytics.
A Google Analytics tracking ID is automatically created and assigned to each “Data Flow” and is always written in the format “G-XXXXXXXXXXXX”. This ID is displayed in the general flow information.

The secret API token, unlike the Google Analytics Tracking ID, is only created manually. This is done for data security purposes, as this token allows you to access your Google Analytics data and perform actions within the “Data Flow”. To create this token, go to the “Secret API tokens for Measurement Protocol” page and click “Create”.
You will need to enter an alias (the name under which this token will be saved and displayed on the Analytics page) and then the new token will be generated.


7. After this setup, the Google Analytics script needs to be installed on your tracked site. This can be done in various ways using special plugins for different platforms or you can manually insert the code on each page of the site.


Once these settings have been configured and saved, you can proceed to setting up Google Analytics in the personal UniTalk cabinet
1. To do this, go to the “Integrations” tab – “Google Analytics”. This is the integration with version 4 of Google Analytics; if you want to use an older version, you need to go to the “Universal Analytics” tab.

2. After going to this page, you have a page that displays previously created sites with dynamic call-tracking and a list of numbers that can be used for static call-tracking.

The option to add a new site for tracking in UniTalk opens a menu in which you need to specify the site name (or any of its identifier) and the Google Analytics tracking identifier, which you should copy from the Google Analytics service page.

When you open the call-tracking settings, the settings menu for this site opens. For convenience, all settings are divided into 3 blocks:
- The first block – contains the basic information that allows you to identify and work with this site
Google Analytics Tracking ID and Google Analytics API Key values must be filled in with data previously obtained in the Google Analytics service.
Thanks to this data, UniTalk can send information to a specific web stream about calls
- API Key is displayed in a hidden form after saving, which prevents its unauthorized reuse
- The 2nd and 3rd blocks have the same structure, but they are responsible for different types of calls;
- The 2nd block is responsible for Call Tracking calls;
- The 3rd block is responsible for c2c calls.
The main parameter in these blocks is the name of the event that is transmitted when a call occurs.
IMPORTANT! The name must not contain spaces. If there are spaces in the event name, such an event will be filtered on the Google Analytics side.
Optionally, you can configure additional 2 event parameters that can be configured to transmit both static and dynamic values.
Fully configured integration for dynamic call-tracking looks as follows:

You can check the operation of event transmission on the Google Analytics page in the “Reports” block

FREE CONSULTATION
