Skip to main content
All CollectionsStaylist ProAccount SetupIntegrations with Other Services
How to Set Up Google Tag Manager (GTM) in Staylist for Cross-Domain Tracking
How to Set Up Google Tag Manager (GTM) in Staylist for Cross-Domain Tracking
B
Written by Brea Parke
Updated this week

Why is Cross-Domain Tracking Important?

When a guest clicks ‘Book Now’ on your website, they are taken to Staylist’s secure booking page (e.g., https://booking.staylist.app/yourrvpark). Without proper tracking, analytics might treat this as a new session—making it seem like your visitor "dropped off" instead of completing a booking.

By setting up cross-domain tracking with GTM, Google Analytics will recognize the same user across both your website and Staylist.

This helps you:

✅ Accurately track conversions
✅ Measure the true performance of your marketing campaigns
✅ Understand your guests’ journey from browsing to booking

Watch the video below for a step-by-step guide:


Step 1: Find Your GTM Code

  1. Copy your GTM container ID (it looks like GTM-XXXXXX).

Step 2: Add Your GTM Code in Staylist

  1. Log in to your Staylist Admin Dashboard.

  2. Navigate to Settings > Account > Settings > Online.

  3. Find the box labeled “GTM Code”.

  4. Paste your GTM container ID and click Save.

This ensures that GTM can fire tracking events while guests move between your website and the Staylist booking engine.

Step 3: Enable Cross-Domain Tracking in Google Analytics 4 (GA4)

  1. Open Google Analytics 4 (GA4) and go to Admin > Data Streams.

  2. Click your website’s data stream.

  3. Under Tagging Settings, choose Configure Tag Settings.

  4. Select Configure your domains

  5. Select Cross-Domain Tracking and add:

    • Your website’s domain (e.g., myrvpark.com)

    • Staylist’s booking domain (booking.staylist.app/myparkrv)

  6. Save your changes.

This links the user session between your website and Staylist, preventing session breaks and ensuring accurate tracking.

Step 4: Test Your Setup

  1. Open Google Tag Assistant (Chrome extension) or use GA4 Debug View.

  2. Click ‘Book Now’ on your website and complete a test booking.

  3. Check that the session ID remains the same across both domains.

If everything is set up correctly, your analytics will now track the full booking journey seamlessly!


Need Help?

If you have any questions or need assistance, our support team is here to help. Contact us via chat, or reach out to [email protected] for additional support.

🎥 Watch the full video walkthrough above to see the process in action!

Did this answer your question?