Analytics
Go to Settings â Analytics.

Supported integrations
Section titled âSupported integrationsâ| Provider | Field | Format |
|---|---|---|
| Google Analytics 4 | Google Analytics 4 Measurement ID | G-XXXXXXXXXX |
| Google Tag Manager | Google Tag Manager ID | GTM-XXXXXXX |
| Facebook Pixel | Facebook Pixel ID | numeric ID |
| Hotjar | Hotjar Site ID | numeric site ID |
| Any provider | Custom Analytics Code | Paste raw <script> tags |
Add Google Analytics
Section titled âAdd Google AnalyticsâIn your Google Analytics account, copy your Measurement ID (starts with
G-).- Open Settings â Analytics in Swebsy.
- Paste the ID into the Google Analytics 4 Measurement ID field.
- Click Save and close.
Analytics scripts are injected at export and deploy time. They do not run inside the Swebsy editor or editor Preview mode, so test tracking on the exported or deployed site.
Custom analytics
Section titled âCustom analyticsâPaste any <script> tag (or raw tracking code) into the Custom analytics
field. Itâs injected into <head> on every exported or deployed page.
If you use a strict Content Security Policy in Settings â Performance, add the analytics providerâs script and connection domains there too.
Analytics not firing â tracking only activates on your exported or deployed site. It wonât fire inside the Swebsy editor or Preview mode.
Double-tracking â if youâre also using Settings â Advanced â Custom <head> code to inject tracking, remove the duplicate so your events arenât counted twice.