website logo
⌘K
Getting started
Create your Serviceform account
Pixel
Your Dashboard
Conversational tools
Serviceform glossary
FAQs
Cookies
GA 4 and DataLayer
Send events into GA4 from DataLayer
Cookie controller
Website analytics (Insights)
Custom event tracking
Chatbot
Design your chatbot
Build your chatbot
Settings
Preview your chatbot
Install your chatbot
Duplicate your chatbot
Translate your chatbot
Facebook Chatbot
Advanced
Live chat
Livechat teams
Trigger your livechat
Set hours
Desktop notifications
SMS notifications
Livechat in Serviceform App
Talk with the clients
Popup
Create your first popup
Popup type settings
Popup content
Popup design
Thank you page
Tracking and advanced settings
Language
Install your popup
Leadbar
Create your Lead bar
Types of Bars
Form
Build your form
Question types
Settings and design
Custom CSS & JS
Install your form
Emails
Install tools
Insights
Website analytics
Flow statistics
Live chat statistics
Ourly Calendar
Setup Ourly
Events
Sync Calendar
Email signature
Add email signature to Gmail
Social Inbox
Connect Facebook and Instagram
Meta Business Suite
Integrations
Sending lead via Webhooks
Google Analytics
Zapier and Webhooks
HubSpot with Zapier webhooks
Collect payments with Stripe
Leads
Filter leads
Export leads as XLS
Account
Settings
Change password
Plan settings and invoice history
Docs powered by archbee 
16min

Google Analytics

All the information collected from the Serviceform tools will be automatically sent to the Google Analytics Account connected to the website. The information will firstly go to Events.

Document image

You can create the Goals using the data from the Chat Complete or Form submitted.

Create Goals in Google Analytics using an Event





In your Google analytics account, go to 'Admin' and then 'Goals'.

Document image

Click on 'New Goal'.

Document image

Setup you goal, by using a Custom configuration.

Document image

In the Goal description add a Name and select the Event type.

Document image

In the goal detail add:

For chatbots

  • Category: Serviceform
  • Action: Chat complete

For popups

  • Category: Serviceform
  • Action: Popup lead
Document image

Save your Goal and it's all set.



Change the Event name on your chatbot

Under Settings in the chatbot builder, you have the Notification settings, there, you can change the datalayers for both interactions or submissions.

Document image



Create Goals in Google Analytics using different chatbot options

For this you'll need to have basic undestanding of coding.

1. Think of the use cases that you need

Let’s say you want to seat as a goal “users who finished the submission and are interested in buying” or “users who finished the submission and are interested in recruitment processes”.

2. Add the Javascript

In the select one type of question paste the code in the Custom Javascript field, under the option 'show advanced seetings'. For example, this for buyers:

window.sfGaOptions = {  eventCategory: 'Chatbot option', eventAction: 'click', eventLabel: 'Buyers', transport: 'beacon' }

And this for recruiting:

window.sfGaOptions = {  eventCategory: 'Chatbot option', eventAction: 'click', eventLabel: 'Recruiting', transport: 'beacon' }



3. Change the eventLabel according to the name you want to be displayed in GA

4. Paste this at the end of the bot in Custom JS, under Settings

if (typeof ga === 'function') {  if ("ga" in window) {  tracker = ga.getAll(); for (var i = 0; i < tracker.length; i++) { if (tracker[i]) { tracker[i].send('event', sfGaOptions); } } } }

Do as many options as you like.

Updated 03 Nov 2021
Did this page help you?
Yes
No
UP NEXT
Zapier and Webhooks
Docs powered by archbee 
TABLE OF CONTENTS
Create Goals in Google Analytics using an Event
For chatbots
For popups
Change the Event name on your chatbot
Create Goals in Google Analytics using different chatbot options
1. Think of the use cases that you need
2. Add the Javascript
3. Change the eventLabel according to the name you want to be displayed in GA
4. Paste this at the end of the bot in Custom JS, under Settings