Skip to content

Analytics Overview

AerialPS uses two primary analytics tools, both managed through a single Google Tag Manager (GTM) container:

  1. Microsoft Clarity
  2. Google Analytics

GTM acts as the orchestration layer for all analytics scripts. Rather than initialising each tool individually and managing consent separately, everything flows through a single GTM snippet.

For further reading: tagmanager.google.com

Adding Tags

Consent is centralised inside the <BlackBoxLayout /> component. All cookies on AerialPS are non-essential marketing cookies, so no analytics fire until the user explicitly accepts.

Apply Consent

This means:

  • No scripts break the site if consent is declined
  • No functionality is gated behind consent
  • The GTM container handles start/stop for all tools automatically

User consent is persisted in localStorage. This is intentional — it is cheap, efficient, and persistent across sessions, so users are not shown the consent banner on every visit.

Reference: MDN - Window.localStorage

How consent is stored

Specific implementation details are in the code repository inside <BlackBoxLayout />.

  • Session Recordings
  • Heatmaps
  • Session Events
  • Insights
  • AI Overviews
  • Errors
  • Ranking Status (aggregated by Google regardless of consent)
  • Session Graphs
  • Raw visitor counts (repeat, bots, non-bots)
  • Bandwidth usage
  • Page performance statistics (speed, LCP, cache hits)

For business and marketing purposes, prioritise Microsoft Clarity and Google Analytics. Cloudflare data is secondary and infrastructure-focused.