- Help Center
- Getting Started
- SPA Optimizations
-
Getting Started
-
Configuration
- Targeting
- Split URL
- Product Testing
- Full Stack
- Experiment Management
- CSP Configuration
- Experiment Execution
- Reports
- Exit Popups
- GTM Integration
- Troubleshooting
- Performance Optimization
- Event-Triggered Changes
- Holdout Groups
- Split URL Pages
- URL Parameters
- DataLayer
- Menu Configurations
- Traffic Exclusion
- Experiment Scheduling
- Dynamic Element Changes
- Price Targeting
- Experience Scheduling
- Privacy
- Hash Changes
- Async Tracking
- Selective Installation
- CSS Selectors
- Vue.js Integration
- Page Content
- Multipage Split URL
- Organic Traffic
- Visual Editor
- Server-Side Testing
- Traffic Bucketing
- GDPR Warnings
- Statistical Confidence
- Browser Privacy
- Query Parameters
- Embedded Videos
- Tracking Code Execution
- Simultaneous Experiments
- Tags
- Deployments
- Disable Testing
- Locations
- Programmatic Bucketting
- Query Parameter Handling
- Convert Library
- Variation Previews
- Experiment Editing
- Opt-Out Script
- Data Reset
- Body Hiding
- Visit-Specific Variations
- Variation Styling
- Preview Issues
- Variation Editing
- Full-Site Testing
- Blinking Variations
- Cross-Domain Cookies
- Regex Support
- Conversion Tracking
- SPA Testing
- Project Setup
- Cross-Domain Tracking
- Geo-Targeting
- Analytics Tools
- Campaign Tags
- Previewing
- IDs
- Query String Targeting
- Bounce Rate Goals
- Bot Filtering
- Query String Variables
- Custom Audiences
- Redirects
- Baseline
- Tracking Code Location
- Secure Cookies
- AngularJS
- Cloudflare
- Code Installation
-
Track Goals
- Form Tracking
- Cookie Management
- iFrame Click Tracking
- Performance Optimization
- Revenue Tracking
- Interaction Goals
- Form Submissions
- Advanced Goals
- Lazy Loading
- Multi-Conversions
- URL Parameters
- Bounce Rate Goals
- DataLayer Integration
- Scroll Depth
- Social Interactions
- Page Views
- Marketo Forms
- Feature Analysis
- AJAX Forms
- Revenue Tracking via GTM
- Order Outliers
- Cumulative Revenue
- Goal Templates
- Adding Revenue Goals
- JS-Based Goals
- Goal Basics
- Google Analytics Goals
- Social Sharing
- Dynamic Goals
- Typeform Integration
-
Target Visitors
- Geolocation
- Interaction Goals
- Goal-Based Targeting
- Weather Targeting
- Cookie-Based Targeting
- Page Visits
- Audience Management
- Audience Segmentation
- Experiment Targeting
- Advanced Audience Creation
- Audience Templates
- Audience Creation
- Data Layer Integration
- Manual Activation
- JavaScript Conditions
- Device Targeting
- Language Targeting
- IP-Based Exclusion
- Visitor Management
- Page Tagging
- Cookies
-
Troubleshooting
- Google Warnings
- Visual Editor
- HTTPS Content
- Logs
- Support Options
- Bootstrap
- Cookie Blocking
- Change History
- Mobile Debugging
- AdWords
- Bot Exclusion
- Domain Issues
- Cloudflare Issues
- Monitoring
- Cloaking Penalties
- Goal Editor Issues
- Variations
- Snippet Performance
- Changes Not Saved
- Blocked Visual Editor
- Goal Testing
- Visual Editor Browsing
- Experiment Issues
- Installation Verification
- Data Leak Prevention
- Usage Limits
- Experiment Previews
- GA4 Revenue
- Chrome Debugger Logs
- SPA Errors
- Checkout JSON Error
-
Analyze Results
-
Integrations
- Google Analytics
- Cookie Consent Platforms
- Microsoft Clarity
- Plausible
- Marketo
- HubSpot
- Tealium
- Smartlook
- Klaviyo
- Salesforce CRM
- FullStory
- Snowplow Analytics
- Webflow
- GA4 Roles
- Amplitude
- Segment
- React
- BigCommerce
- WooCommerce
- Active Campaign
- Google Tag Manager
- Mixpanel
- Zapier
- Inspectlet
- Crazy Egg
- LanderApp
- Unbounce
- Instapage
- Drupal
- PrestaShop
- Magento
- Roistat
- Piano Analytics
- Heap Analytics
- Kissmetrics
- Mouseflow
- Adobe Analytics
- Clicky
-
Account Management
-
Developers
-
What's New
-
Common Questions
-
Shopify
SPA Optimizations
Mastering SPA Tracking for Seamless A/B Testing Results
IN THIS ARTICLE YOU WILL:
- Get an overview of SPA & Hydration
- Understand SPA challenges
- SPA Optimization UI settings
- Step-by-Step guide
- Best Practices
- Conclusion
Introduction
Welcome to our technical guide on utilizing the new SPA (Single Page Application) Optimizations feature in our A/B testing tool. This document is designed to help you understand and effectively use our latest tracking script, especially in the context of SPA frameworks.
SPAs have revolutionized web development with their dynamic loading capabilities, leading to faster and more interactive user experiences. A key aspect of SPAs is the 'hydration' process, where a static page becomes interactive. However, this can pose challenges for A/B testing, as traditional tracking scripts may not account for these dynamic changes.
Our new tracking script is specifically designed to seamlessly integrate with SPAs. It includes:
-
Hydration Detection: The script detects when the SPA hydration process starts, ensuring any modifications made to web elements prior to hydration are maintained afterward.
-
Continuous Activation: Post-activation, it continually monitors for changes (mutations) in the DOM and reapplies modifications to maintain the integrity of your A/B tests.
This feature allows you to toggle the advanced SPA handling capabilities of our tracking script:
-
Enable: The script will actively manage element changes before and after hydration, ensuring consistent A/B testing results.
-
Disable: The script operates without SPA-specific adjustments, suitable for traditional web applications.
-
Access the Convert UI: Log into your dashboard and navigate to My Project > Configuration > Other Settings.
-
Locate SPA Optimizations: Find the SPA Optimizations toggle under the script settings.
-
Toggle the Setting: Choose to enable or disable the feature based on your application's architecture and testing requirements.
-
Enable SPA Optimizations for websites using SPA frameworks to ensure accurate A/B testing results.
-
Regularly monitor your A/B tests for any anomalies, especially after major updates to your website.
-
If unsure, consult with your support team to understand the impact of SPA on your site's functionality and A/B testing.
Our new tracking script with SPA Optimizations is a powerful tool for conducting A/B tests in dynamic web environments. By understanding and utilizing these features, you can ensure more accurate and reliable testing outcomes.
For further assistance or to share feedback, please reach out to our support team.