If you are using Google Tag Manager to integrate our tag and the one of Google Analytics then you will have to configure it so that Google Analytics takes the events triggered by iAdvize into account.
1. Configuration of the connector from iAdvize
Go to the Settings > Integration > Apps tab and click on GoogleAnalytics
You must first configure the Google Analytics connector to make it compatible with your use of Google Tag Manager.
From the drop-down menu, select "Google Tag Manager"
Then indicate the name of the Google Tag Manager container used on your site. By default, the value is "dataLayer" unless you have customized this value during your integration of Google Tag Manager.
You will find the name of the container in the Google Tag Manager code that you have integrated on your site (in green below):
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-XXXXXXX');</script>
<!-- End Google Tag Manager -->
Then configure Google Tag Manager so that iAdvize events are taken into account by your Google Analytics.
The configuration we propose below works on a classic Google Tag Manager environment but can be adapted to your needs.
2. Create a trigger
iAdvize sends this event when a chat conversation is assigned to a respondent. To test your setup, start a conversation and wait until a respondent picks it up.
- Go to the "Triggers" sub-menu
- Click on "New"
- Choose "Custom Event"
- (1) Name of the event "iAdvize"
- (3) Click on "Save" (name the trigger "iAdvize")
3. Create variables
- Go to the "Variables" sub-menu
- Click on "New"
- Click on "Data Layer Variable"
- (1) Put "category" in "Data Layer Variable Name"
- (2) Click on "Save"
- Name it "iAdvize Category"
- Redo the operation for the "action" data layer variable with the name "iAdvize Action".
- Redo the operation for the "label" data layer variable with the name "iAdvize Label".
4. Create a tag
- Go to the "Tags" submenu
- Click on "New"
- Select a tag type (The tag type depends on the version used by the client - cf. Document Google).
- In the example: "Google Analytics : GA4 Event"
- (1) In "Event Name", click the button on the right and choose the "iAdvize Action" variable in the list (its value is Chat).
- (2) Under "Event Parameters", add the event_category parameter with the "iAdvize Category" variable.
- (3) Add the event_label parameter with the "iAdvize Label" variable.
You should get this:
- In "Measurement ID", enter the Measurement ID of your Google Analytics 4 data stream.
You should get this:
- Click on "Save"
- Click on the button in "Triggers"
- Select the box with the name "iAdvize" and the type "Custom Event"
- Name the tag "iAdvize"
- Click on "Save"
At the end of the step, you should get this:
Also read: Monitor the iAdvize performances with Google Analytics