---
title: Send events into GA4 from DataLayer
slug: send-events-into-ga4-from-datalayer
description: Learn how to track default Serviceform events in Google Analytics 4 (GA4) using the DataLayer. Find out which events are included and discover how to add a trigger and tag in Google Tag Manager to send these events to GA4. Ensure the data is being receive
docTags: 
createdAt: 2023-01-11T13:07:17.000Z
---

## How to send default Serviceform events into GA4 from DataLayer.&#x20;

By default serviceform chatbots and forms send the following events to datalayer.

- Interaction - 'chat start'

  Interaction with any chatbot.

- Lead - 'chat complete'

  Lead / submission. Practically chat is completed.

- Live chat - 'live chat'

  A live chat between agent and end-user.

- Redirect - 'redirect'

  Redirect from a chatbot or form to any outside or in page url.

Practically they are sent as DataLayer events.

For example:

```Text
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
  'event': 'serviceform',
  'chatProgress': 'live chat'
});
```

To use these in Google Tag Manager, all you need to do is add a **trigger** and **tag**.&#x20;


### 1. Add a trigger


This should have the event name from the datalayer push before: **serviceform**

You should set it to trigger on All Custom Events.

Now all default serviceform events are triggering this trigger.

![](https://api.archbee.com/api/optimize/SRR7Dw6jlnoj-xk5jLa7o/K9x8EeJy85_iDEtBG62vy_screenshot-2023-01-11-at-145205.png)

### 2. Add a tag

Tag type: Google Analytics: GA4 Event

Add your configuration tag, or your configuration measurement ID (You can find this in your GA 4 admin data streams website settings).

And event parameters. You can modify these to your needs.

In the example we use the event name \{\{DLV - chatProgress}} which will be any of the values mentioned before based on the users trigger. For example: live chat, chat started, chat complete, redirect.



![](https://api.archbee.com/api/optimize/SRR7Dw6jlnoj-xk5jLa7o/ow7QmbfT-pUDUnI6n_jIt_screenshot-2023-01-11-at-145712.png)

### 3. Check your data

Double check that your data comes through to Google Analytics as wanted.

![](https://api.archbee.com/api/optimize/SRR7Dw6jlnoj-xk5jLa7o/ObUxCEeL__ZDrkuHbJKQb_screenshot-2023-01-11-at-150316.png)

### Customise

Due to the power of Google Tag Manager you can also customise these much further by adding logic to the tag configuration. You could for example change

**Event name:** Serviceform \{\{DLV - chatProgress}}

To make separation from your other events.

