How to Integrate Google Analytics With ProProfs Live Chat


ProProfs Live Chat Google Analytics Integration lets you record visitors’ live chat actions in your Google Analytics account. The integration pushes the data to your Google Analytics account via Analytics JavaScript.

You need to save your account ID i.e. UA-123456-1 (if using Google Universal Analytics) or G-JEERSVXXXX (if using Google Analytics 4) in your ProProfs Chat integration settings and then follow these steps to see statistics in your Google Analytics account.


Suppose you want to track chat form, offline messages form, and survey form statistics in Google Analytics. In that case, you need to generate code for multiple domains from your Google Analytics account or replace existing codes in your web pages with the following codes after replacing your Google Analytics account Id .


Here is the code snippet for Google Universal Analytics


<!-- Google Analytics →
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
ga('create', 'UA-XXXX-Y', 'auto');  // Replace with your property ID.
ga('send', 'pageview');
<!-- End Google Analytics -->


NOTE: Google Universal Analytics is going to be replaced by Google Analytics 4 (GA4) from July 2023. So we recommend you to use the following GA4 code snippet.
<!-- Google tag (gtag.js) --> <script async src=""></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-JEERSVKM7M'); </script>


How to Integrate ProProfs Live Chat with Google Analytics:


Step 1: On your ProProfs Live Chat dashboard, go to Settings > Integration > Analytics and Enable Google Analytics integration.

Enable Google Analytics integration.


Step 2: Paste your Google Analytics account ID and click Save.


Paste your Google Analytics account Id



Make sure you have both the ProProfs Live Chat code and Google Analytics tracking code installed on your sites to log all the information coming from ProProfs Live Chat to your Google Analytics account.


How to Retrieve Your Google Analytics Account Id (UA-xxxxxx-x):


Step 1: Navigate to Admin > Tracking code.


Navigate to Admin and Select Tracking code.


Step 2: Copy the Tracking ID.


Copy the Tracking code.


You can now set goals for different Chat window URLs given below, or you can see reports without setting goals in your account under ‘Visitors’ -----> ‘Custom Variables’ for chats from separate chat IPs.


How to Retrieve Your Google Analytics 4 (GA4) Account ID


Step 1:  Login to your Google Analytics account and navigate to Configure, and click "Go to Admin."




Step 2: Go to Data Streams and select stream as "Web."


set data streams as web


Step 3: Enter your ProProfs Chat URL and Stream name. Click "Create stream" to continue.


setup web data stream


Step 4:  You will get the Web stream details. Copy the MEASUREMENT ID.


copy measurement ID


Goals are automatically set in GA4 is already defined. But for Google Universal Analytics you have to set it manually.

How to Set Goals in the Google Universal Analytics:


Step 1: Under Settings, go to Goals > Goal setup > Custom.


Navigate to Goals and Select Goal setup and Click on Custom.


Step 2: Under Goal description, enter the name of the goal and set the goal type as Event.


Set the goal type as Event


Step 3: Set the Goal details.


Set the Goal details.


Following are the 3 Goal categories:


1. Pre chat

2. Post chat

3. Offline Messages


When all three goal categories have been set, their respective data will be visible in the realtime report, as shown in the screenshots below:


Data will display in the realtime report


That is all about integrating ProProfs Chat integration with Google Analytics.



© 2005 - 2024 ProProfs
add chat to your website