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
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-XXXX-Y', 'auto'); // Replace with your property ID.
ga('send', 'pageview');
</script>
<!-- End Google Analytics -->
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.
Step 2: Paste your Google Analytics account ID and click Save.
How to Retrieve Your Google Analytics Account Id (UA-xxxxxx-x):
Step 1: Navigate to Admin > Tracking code.
Step 2: Copy the Tracking ID.
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."
Step 3: Enter your ProProfs Chat URL and Stream name. Click "Create stream" to continue.
Step 4: You will get the Web stream details. Copy the 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.
Step 2: Under Goal description, enter the name of the goal and set the goal type as Event.
Step 3: 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:
That is all about integrating ProProfs Chat integration with Google Analytics.