Analytics & Insights
Track performance, conversions, and user behavior
Analytics Setup Required
To start tracking analytics, you need to set up Google Analytics 4:
- Create a Google Analytics 4 property at analytics.google.com
- Copy your Measurement ID (starts with G-)
- Update
components/analytics/Analytics.jsxwith your ID - Deploy your changes and data will start flowing
Conversion Tracking
- Booking completions (purchase event)
- Booking funnel steps (4 steps tracked)
- Gift certificate purchases
- Newsletter signups
User Engagement
- Page views (all pages)
- External link clicks
- Event RSVPs
- Image gallery interactions
Key Metrics to Monitor in GA4
Booking Conversion Rate
Track funnel drop-off at each step
Traffic Sources
Where visitors come from
Event RSVP Rate
Event page to RSVP conversion
A/B Testing Framework
The app includes a simple A/B testing component for testing different CTAs, headlines, and UI variations.
import ABTest from '@/components/analytics/ABTest';
<ABTest
name="hero_cta"
variants={{
control: <button>Book Now</button>,
variant_a: <button>Reserve Your Stay</button>
}}
/>Test assignments and interactions are automatically tracked in GA4