How to Integrate Google Analytics With ProProfs Live Chat
ProProfs Live Chat Google Analytics Integration enables you to record visitors’ live chat actions in your Google Analytics account. The integration pushes the data to your Google Analytics account via the Analytics JavaScript.
You need to save your account id (e.g. UA-123456-1) in your dashboard and then follow these steps to see statistics in your Google Analytics account.
If you want to track chat form, offline messages form, and survey form statistics in Google Analytics, 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 (UA-xxxxxx-x).
<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 -->
Here's how you can 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 (UA-xxxxxx-x).
Here's how you can retrieve your Google Analytics account Id (UA-xxxxxx-x) and script:
Step 1: Navigate to Admin >> Tracking code.
Step 2: 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.
Here's how you can set goals in the Google Analytic's panel:
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 three 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: