Google Analytics 4
Engati’s integration hub allows integration with external applications to provide added functionality to portal users to build their bots. Integration of Google Analytics lets you track a wide range of user analytics. Studying user behavior and analytics can lead to the bot builders not just making a better bot for the users but also gaining key insights into their user base. You can track multiple activities such as paths triggered, FAQs triggered, buttons clicked, live chat triggered, etc.
To enable it, navigate to the ‘Integrations’ menu present at the bottom left corner, then go to ‘Cloud Integrations’.
![Document image Document image](https://images.archbee.com/FEqjvWZnyymr_PEhXLLlG/OFxFY1fmMDcAllp6ontv8_group-84.png?format=webp)
- Go to https://analytics.google.com/analytics/web/ and sign in/sign-up for your account. Click on the ‘Start Measuring’ button.
![Document image Document image](https://images.archbee.com/FEqjvWZnyymr_PEhXLLlG/v1BNmEs0gTR6Svnehn461_image.png?format=webp)
2. Provide the required information and click on the ‘Next’ button.
![Document image Document image](https://images.archbee.com/FEqjvWZnyymr_PEhXLLlG/p7-CsQLJXWQC1Ip09qD8z_image.png?format=webp)
3. Enter a Property Name relevant to your business/use case and select the relevant Country, Timezone, and Currency.
![Document image Document image](https://images.archbee.com/FEqjvWZnyymr_PEhXLLlG/9NH5TryfqlzpzfvJrIeHb_image.png?format=webp)
4. Migration from Universal Analytics to Google Analytics 4
In case you’re using the ‘Universal Properties’ then to continue using it or to migrate it to ‘Google Analytics 4’ click on the ‘Show Advanced Options’ button. Select the desired property option and click on ‘Next’.
For detailed steps navigate to https://support.google.com/analytics/answer/10759417?hl=en
![Document image Document image](https://images.archbee.com/FEqjvWZnyymr_PEhXLLlG/n9MQd-QpHC7AXyY93OQMm_image.png?format=webp)
5. Select the relevant ‘Industry Category’ and the ‘Business size’ which describes your business.
![Document image Document image](https://images.archbee.com/FEqjvWZnyymr_PEhXLLlG/LYZ2UGGJMHeE_08SDxbLK_image.png?format=webp)
6. Select the objective which suits your business based on the information provided in the checkboxes.
![Document image Document image](https://images.archbee.com/FEqjvWZnyymr_PEhXLLlG/lMCucBjBNY7sZgfVCRWnh_image.png?format=webp)
7. Click on ‘I accept’ to proceed
![Document image Document image](https://images.archbee.com/FEqjvWZnyymr_PEhXLLlG/E8JmoGS_pJeSNeWwJI32S_image.png?format=webp)
8. For the Engati platform select ‘Web’ as an option for adding a stream.
![Document image Document image](https://images.archbee.com/FEqjvWZnyymr_PEhXLLlG/wYj5QVjkGm6Tbc4tk6lF6_image.png?format=webp)
9. You’re done with the setup.
![Document image Document image](https://images.archbee.com/FEqjvWZnyymr_PEhXLLlG/dUbZ7HuDWMzg0m-F2wAAX_image.png?format=webp)
- To connect your Google Analytics account to the Engati portal, click on ‘Connect’
![Document image Document image](https://images.archbee.com/FEqjvWZnyymr_PEhXLLlG/kx3CpP1Rq96X4WA8NtoWz_image.png?format=webp)
2. Once you click on ‘Connect’, it will ask you to assign a name for your account.
![Document image Document image](https://images.archbee.com/FEqjvWZnyymr_PEhXLLlG/dLASCnJ4BUiSR-eQu0yTq_image.png?format=webp)
3. Proceed by clicking on the ‘Next’ button, you will be redirected to the Google’s sign-in page. Select the same Google account used for creating the Google Analytics account.
![Document image Document image](https://images.archbee.com/FEqjvWZnyymr_PEhXLLlG/HF5G0C7pnzo-k6-92bbxi_group-85.png?format=webp)
4. Click on ‘Allow’ to proceed
![Document image Document image](https://images.archbee.com/FEqjvWZnyymr_PEhXLLlG/qp6TdwWj5YgH_8RIwvgN__image.png?format=webp)
5. Fill up the fields with relevant information:
![Document image Document image](https://images.archbee.com/FEqjvWZnyymr_PEhXLLlG/h9FAZD8VFfwaLiZl_NjXz_image.png?format=webp)
- Account: Choose the relevant account name created on Google Analytics
- Property: If you have already created the ‘Property’ then proceed to select it from the dropdown menu and to create a new property click on the ‘Add new property’ button (present below the dropdown menu)
![Document image Document image](https://images.archbee.com/FEqjvWZnyymr_PEhXLLlG/3Js0mGq1quSOvTls8qKC9_image.png?format=webp)
- Measurement Stream: Similarly, select the existing ‘Measurement Stream’ from the dropdown menu, and to create a new Stream click on the ‘Add new stream’ button.
![Document image Document image](https://images.archbee.com/FEqjvWZnyymr_PEhXLLlG/JwnFoEgtxXGfXcaS86Y-O_image.png?format=webp)
6. Click on ‘Authorize’ to proceed.
![Document image Document image](https://images.archbee.com/FEqjvWZnyymr_PEhXLLlG/hhp9kTkFQnfTYSnR7Pug__image.png?format=webp)
7. Navigate to Configure > Integrations > Google Analytics
![Document image Document image](https://images.archbee.com/FEqjvWZnyymr_PEhXLLlG/7sJS7D-rdbCtptGP6h69x_group-86.png?format=webp)
8. Select the relevant account from the dropdown menu and click on the ‘Save changes’ button.
![Document image Document image](https://images.archbee.com/FEqjvWZnyymr_PEhXLLlG/jELLMy-5673nJm0HVzOrk_image.png?format=webp)
9. You’re now ready to track events on Google Analytics.
![Document image Document image](https://images.archbee.com/FEqjvWZnyymr_PEhXLLlG/ucIdnCnsSSxlzbn4cGYXI_image.png?format=webp)
Once Google Analytics 4 has been integrated with Engati, you can create and track custom events in a different node.
Let’s see how to track these events:
1. Go to the node that you wish to track and click on the edit button.
![Document image Document image](https://images.archbee.com/FEqjvWZnyymr_PEhXLLlG/iNhUMYUykV0cCXdQo1eB8_image.png?format=webp)
2. Once you open the edit window you will see a toggle button against the Track Event field. Toggle this to on and give the event a name. Multiple nodes can be assigned the same event.
![Document image Document image](https://images.archbee.com/FEqjvWZnyymr_PEhXLLlG/A3Du4WE828rhaXZzKe946_image.png?format=webp)
3. Start typing and selecting the available existing event name from the suggestions
4. To create a new event, click on the ‘Add New Event’ button and give a new name. You can also use an existing attribute as an event name.
This event will now be tracked in Google Analytics 4 when a user reaches the particular path.
In the past, we had a comprehensive analytics dashboard that provided metrics and charts to gain valuable insights of the events.
However, in the transition to GA4, we currently need to create each chart and metric manually in order to gain the same level of insights they were familiar with in universal analytics.
1) To begin with, Navigate to the left side panel and click on ‘Explore’.
![Document image Document image](https://images.archbee.com/FEqjvWZnyymr_PEhXLLlG/bgE7159PLsUyl6svCpcAP_image.png?format=webp)
2) After clicking on the 'Explore' button, you will be presented with an exploration screen that offers two options: creating a new exploration or viewing the existing ones.
![Document image Document image](https://images.archbee.com/FEqjvWZnyymr_PEhXLLlG/HtU__nmPs1ee2sfyAFWtC_image.png?format=webp)
3) In this case, Click on ‘Blank’ to create a new exploration.
Assign a name to your declaration form and create your own custom charts for the metrics. By clicking on the plus icon beside free-form multiple charts can be created under one document.
![Document image Document image](https://images.archbee.com/FEqjvWZnyymr_PEhXLLlG/GX8nOqfvlwdH3EQY-ymzx_image.png?format=webp)
4) To filter out the data in each chart, we need to import the custom dimension. So before creating charts, Navigate to the ‘Dimensions’ option on the left panel and Click on the plus sign beside the ‘Dimension’ option.
![Document image Document image](https://images.archbee.com/FEqjvWZnyymr_PEhXLLlG/-H5vcnyAIif6kbJe7ckix_image.png?format=webp)
Click on ‘Custom’ and Select the custom dimensions based on your need for each chart.
![Document image Document image](https://images.archbee.com/FEqjvWZnyymr_PEhXLLlG/jh-qw_JJiS2yBpG8tsNCz_image.png?format=webp)
5) To measure a specific metric in the file, we need to import it. The primary metric we will be using is 'event-count', and it should be imported into the report file. Follow the steps below to import it:
- Click on the plus sign (+) located next to the 'Metric' section.
- Search for 'event count' in the available options.
- Click on 'import' to import the 'event-count' metric into the report file.
![Document image Document image](https://images.archbee.com/FEqjvWZnyymr_PEhXLLlG/ePgRy6FLQgG8_OaEXaYew_image.png?format=webp)
6) Now the setup is complete, You can begin creating custom charts. To assist you in creating the charts, we have provided screenshots that illustrate the tab settings.
- Event-triggered chart
![Document image Document image](https://images.archbee.com/FEqjvWZnyymr_PEhXLLlG/gah8_7nxC7RRRbcfVK31a_image.png?format=webp)
- The user has initiated the channel
![Document image Document image](https://images.archbee.com/FEqjvWZnyymr_PEhXLLlG/jyJqgm3-szJDM7UrpPLzU_image.png?format=webp)
- Live chat initiated
![Document image Document image](https://images.archbee.com/FEqjvWZnyymr_PEhXLLlG/V6F773KF1vtGLz5lbgv4t_image.png?format=webp)
![Document image Document image](https://images.archbee.com/FEqjvWZnyymr_PEhXLLlG/we-JIzaKHIrR88C5otcRf_image.png?format=webp)
- Total User
![Document image Document image](https://images.archbee.com/FEqjvWZnyymr_PEhXLLlG/rqdeLXMY5LKbOv6CODwFB_image.png?format=webp)
![Document image Document image](https://images.archbee.com/FEqjvWZnyymr_PEhXLLlG/9jPx58VslP4INYu6-1iEd_image.png?format=webp)
- Website Source URL
![Document image Document image](https://images.archbee.com/FEqjvWZnyymr_PEhXLLlG/2mOokxhX_5E_b0b2JZT3B_image.png?format=webp)
![Document image Document image](https://images.archbee.com/FEqjvWZnyymr_PEhXLLlG/WfR1PCsLb7NULI6dbblE3_image.png?format=webp)
- Buttons Clicked
![Document image Document image](https://images.archbee.com/FEqjvWZnyymr_PEhXLLlG/2a9UPFfvQS2SCLxiCLW-8_image.png?format=webp)
![Document image Document image](https://images.archbee.com/FEqjvWZnyymr_PEhXLLlG/W-XbrjSZGJPxbpNK-uCN1_image.png?format=webp)
- Path Triggered
![Document image Document image](https://images.archbee.com/FEqjvWZnyymr_PEhXLLlG/T_m-NtMI8P-NSdDXkVXTc_image.png?format=webp)
![Document image Document image](https://images.archbee.com/FEqjvWZnyymr_PEhXLLlG/-PMmyMI1hrVSDUZIMid3k_image.png?format=webp)