Google Analytics 4 (GA4) Integration
Track HoloStep 3D viewer interactions in Google Analytics 4 to understand how users engage with your product visualizations.
Overview
HoloStep automatically sends events to GA4 when users interact with your 3D product viewers. This integration supports:
- Existing gtag.js - If GA4 is already on your site, HoloStep uses it automatically
- Google Tag Manager - Via dataLayer events
- Dedicated Measurement ID - Send events to a specific GA4 property
Tracked Events
| Event Name | Trigger | GA4 Event |
|---|---|---|
| 3D Viewer Open | User opens 3D viewer | holostep_3d_open |
| 3D Interaction | User rotates/zooms model | holostep_3d_interaction |
| AR Mode Open | User launches AR | holostep_ar_open |
| Measurement Tool | User opens measurements | holostep_measurement_open |
| Animation Play | User plays animation | holostep_animation_play |
| Variant Select | User changes variant | holostep_variant_select |
| Page View | Page with HoloStep loads | page_view |
Quick Start
Option A: Use Your Existing GA4 (Recommended)
If you already have GA4 configured on your website, you can enable HoloStep tracking without any additional configuration:
- Go to Settings → Integrations
- Click Configure on the Google Analytics 4 card
- Enter a name (e.g., "My GA4")
- Leave the Measurement ID empty (HoloStep will use your existing gtag)
- Click Create Integration
- Toggle the integration ON
That's it! HoloStep events will flow to your existing GA4 property.
Option B: Use a Specific Measurement ID
If you want to send HoloStep events to a dedicated GA4 property:
- Get your Measurement ID from GA4 (see below)
- Go to Settings → Integrations
- Click Configure on the Google Analytics 4 card
- Enter your Measurement ID (format:
G-XXXXXXXXXX) - Click Create Integration
- Toggle the integration ON
Getting Your Measurement ID
If you need to specify a Measurement ID:
- Go to Google Analytics
- Click Admin (gear icon) in the bottom left
- In the Property column, click Data Streams
- Select your web data stream
- Copy the Measurement ID (format:
G-XXXXXXXXXX)
Verify in GA4
Real-Time Reports
- Go to GA4 → Reports → Realtime
- Open your website with HoloStep
- Interact with a 3D viewer
- You should see
holostep_*events appearing
DebugView
For detailed debugging:
- Go to GA4 → Admin → DebugView
- Install the GA Debugger Chrome extension
- Enable debug mode and interact with your 3D viewer
- Events will appear with full parameter details
Using Google Tag Manager
If you use GTM without direct gtag.js, you can use our GTM container template.
Download and Import
- Download the HoloStep GTM Container
- In GTM, go to Admin → Import Container
- Select the downloaded JSON file
- Choose Merge → Rename conflicting tags
- Click Confirm
Configure the GA4 Tag
After importing:
- Open the imported HoloStep - GA4 Event tag
- Update the Measurement ID to your GA4 property
- Save and Publish your container
How It Works
HoloStep pushes events to the dataLayer:
dataLayer.push({
event: 'holostep_event',
holostep_event_name: 'holostep_3d_open',
holostep_action: 'viewer_open',
holostep_scene_id: '12345',
holostep_scene_name: 'Product Name',
holostep_domain: 'yoursite.com'
});The GTM container includes:
- Trigger: Fires on
holostep_event - Variables: Extract event parameters
- GA4 Tag: Sends event to your property
Event Parameters
All HoloStep events include these parameters:
| Parameter | Description | Example |
|---|---|---|
page_location | Current page URL | https://shop.com/product |
session_id | HoloStep session ID | abc123 |
sceneId | 3D scene identifier | 12345 |
sceneName | Product/scene name | Modern Chair |
traffic_source | Referrer source | google |
Troubleshooting
Events Not Appearing
| Issue | Solution |
|---|---|
| No events in Realtime | Wait 30 seconds; check integration is enabled |
| Measurement ID error | Verify format starts with G- |
| No gtag on page | Check that GA4 is properly installed on your website |
Debug Checklist
- Browser Console: Look for
[HoloStep] GA4 initializedmessage - Network Tab: Filter for
google-analytics.comrequests - GA4 DebugView: Enable debug mode for detailed event inspection
Events show in Realtime but not in Reports
Standard GA4 reports can take 24-48 hours to process data. Use Realtime or DebugView for immediate verification.
Duplicate events appearing
Check if you have multiple GA4 implementations (e.g., both direct gtag and GTM). HoloStep detects existing GA4 and won't duplicate if gtag is present.