You can integrate with Google Analytics to create custom segments based on bot and human traffic, then share data enrichment for further analysis. You can then use this to filter bot segments out of your Google Analytics dashboards, allowing your organization to make better decisions without data contamination.
You can learn how to integrate with Google Analytics with this article.
gtag.js) deployed on your applicationTo send data to GA4, you need to create custom dimensions, which let you collect and analyze custom data within Google Analytics.
You must create a custom dimension for each data type you want to share with GA4. For example, if you want to send score reporting and two data classification enrichment types, then you need to make three custom dimensions.
HUMAN will send an asynchronous event to the client-side environment, containing the result of the bot-or-not decision, as well as any other configured enrichment data. To share this data with Google Analytics, you need to add a new function to the client-side code that receives each of these events, then passes it along to GA4 as an event with custom dimensions.
Below is an example for an implementation for:
bot_flag, andf_id