Google Analytics
TractStack can integrate with Google Analytics to send engagement events and provide additional analytics capabilities alongside the built-in analytics system.
Setup Process
Section titled “Setup Process”1. Obtain Google Analytics Measurement ID
Section titled “1. Obtain Google Analytics Measurement ID”Create a Google Analytics 4 (GA4) property:
- Visit Google Analytics
- Create new account or use existing account
- Set up GA4 property for your domain
- Copy the Measurement ID (format: G-XXXXXXXXXX)
2. Configure in StoryKeep
Section titled “2. Configure in StoryKeep”Add your measurement ID through StoryKeep:
- Access Advanced Settings (Admin only)
- Navigate to integrations section
- Enter Google Analytics key in the provided field
- Save configuration
The measurement ID will be stored in your site configuration.
Event Integration
Section titled “Event Integration”Automatic Event Forwarding
Section titled “Automatic Event Forwarding”TractStack automatically forwards internal events to Google Analytics:
Core events sent to GA:
- Page views: When visitors load story fragments
- Content engagement: Reading, scrolling, and interaction events
- Belief interactions: Widget usage and preference declarations
- Impression clicks: Call-to-action notification interactions
- Custom events: Site-specific tracking events
Event Mapping
Section titled “Event Mapping”TractStack to GA4 event mapping:
PAGEVIEWED
→page_view
CLICKED
→click
READ
→engagement
Impression
→impression_click
- Belief events →
belief_declaration
Enhanced Analytics
Section titled “Enhanced Analytics”Custom Dimensions
Section titled “Custom Dimensions”Set up custom dimensions in Google Analytics to track belief-based visitor segmentation:
Recommended custom dimensions:
- Visitor Persona: Track declared identity (Developer, Manager, etc.)
- Engagement Level: Anonymous vs Known Lead status
- Belief Categories: Preference declarations
- Content Personalization: Whether visitor sees personalized content
Goal Tracking
Section titled “Goal Tracking”Configure goals in Google Analytics:
- Lead generation: Email capture and form submissions
- Engagement depth: Reading completion and time on site
- Belief completion: Preference declaration frequency
- Conversion events: Business-specific goal completion
Privacy Considerations
Section titled “Privacy Considerations”Data Sharing
Section titled “Data Sharing”What gets sent to Google Analytics:
- Page views and navigation: Standard web analytics
- Engagement events: Content interaction without personal data
- Belief categories: Preference types without visitor identity
- Goal completions: Conversion events
What is NOT sent:
- Personal information: Email addresses or contact details
- Session identifiers: TractStack-specific session data
- Detailed belief values: Specific preference declarations
- Individual visitor tracking: Personal behavior patterns
Compliance
Section titled “Compliance”Privacy compliance considerations:
- Cookie consent: Google Analytics requires consent in many jurisdictions
- Data processing agreements: Review Google’s terms for your region
- Visitor notification: Inform visitors about Google Analytics usage
- Opt-out options: Provide mechanisms for visitors to decline tracking
Configuration Options
Section titled “Configuration Options”Advanced Settings
Section titled “Advanced Settings”Additional GA4 configuration:
- Enhanced measurement: Automatic scroll, outbound clicks, site search
- Conversion events: Mark important events as conversions
- Audience segments: Create visitor segments based on behavior
- Attribution modeling: Track visitor journey across sessions
Custom Event Tracking
Section titled “Custom Event Tracking”Send additional events to Google Analytics:
// Example custom eventgtag("event", "custom_action", { custom_parameter: "value", event_category: "engagement", event_label: "specific_action",});
Reporting and Analysis
Section titled “Reporting and Analysis”Google Analytics Reports
Section titled “Google Analytics Reports”Available GA4 reports:
- Real-time: Live visitor activity
- Acquisition: How visitors find your site
- Engagement: Content performance and interaction
- Conversions: Goal completion and business outcomes
TractStack-Specific Insights
Section titled “TractStack-Specific Insights”Enhanced reporting with TractStack integration:
- Belief-driven segmentation: Visitor analysis by declared preferences
- Content personalization impact: Engagement before/after belief declaration
- Adaptive content performance: Effectiveness of personalized experiences
- Lead generation analysis: Path from anonymous to known visitor
Troubleshooting
Section titled “Troubleshooting”Common Issues
Section titled “Common Issues”Events not appearing in GA:
- Verify measurement ID: Ensure correct ID format (G-XXXXXXXXXX)
- Check configuration: Confirm settings saved in StoryKeep Advanced section
- Real-time testing: Use GA4 real-time reports to verify event delivery
- Browser extensions: Ad blockers may prevent GA tracking
Data discrepancies:
- Different methodologies: TractStack and GA may count events differently
- Privacy settings: Visitor privacy controls affect GA tracking
- Bot filtering: GA filters some automated traffic
- Time zone differences: Ensure consistent time zone settings
Verification Steps
Section titled “Verification Steps”Confirm integration is working:
- Check real-time reports in Google Analytics
- Trigger test events on your site
- Verify event parameters are being sent correctly
- Monitor for 24-48 hours for full data flow
Best Practices
Section titled “Best Practices”Data Strategy
Section titled “Data Strategy”Effective GA integration:
- Define clear goals: Set up meaningful conversion events
- Segment visitors: Use belief data for visitor analysis
- Monitor performance: Regular review of key metrics
- Privacy compliance: Respect visitor privacy preferences
Analysis Approach
Section titled “Analysis Approach”Combine TractStack and GA data:
- Use TractStack: For detailed belief and engagement analysis
- Use Google Analytics: For broader web analytics and acquisition data
- Cross-reference insights: Validate findings across both systems
- Focus on actionable metrics: Concentrate on data that drives decisions
Google Analytics integration provides additional web analytics capabilities while TractStack’s built-in analytics focus on belief-driven engagement and content personalization insights.