Google Analytics

Google Analytics Integration: Guide and FAQ

Understand your guest behavior! Seamlessly integrate Google Analytics with Campspot via Tag Manager for accurate tracking and a unified view across your website and booking pages.

Summary:

Integrate Google Analytics seamlessly with your Campspot online booking page using Google Tag Manager for comprehensive insights into visitor behavior, user experience, and reservation conversions.

Uses:

  • Enhanced User Experience Tracking: Gain insights into user interactions, time spent on the site, and actions taken on your Campspot booking page, all within Google Analytics.
  • Accurate Cross-Domain Tracking: Ensure accurate tracking across separate domains (your website and Campspot booking page) to view user journeys and conversions in a unified dashboard.
  • Optimized for Single-Page Applications: Leverage Google Tag Manager to effectively track changes on Campspot's single-page application, providing a superior user experience.

Before you get started, there are things you should know:

This page will specifically outline how to best set up Google Analytics via our Google Tag Manager integration. While Campspot offers a standard Google Analytics tracking field, this is best implemented via the Google Tag Manager integration for the reasons below:

  1. Campspot's Single-Page Application Structure: Campspot's online booking page is built as a Single-page application, providing visitors with a vastly improved user experience. All content is loaded at once and dynamically changes based on search parameters, amenity and pricing filters, and more. While this structure enhances user experience, it requires more complex tracking. Google Tag Manager is capable of effectively tracking changes on a single-page application, which Google Analytics alone cannot achieve.
  2. Cross-Domain Tracking for Accuracy: As your Campspot booking page is implemented as a third-party site, it's crucial to add cross-domain tracking to your analytics setup. This feature in Google Analytics and Tag Manager ensures a user's visit is counted as one across separate domains (your website and Campspot booking page), providing accurate tracking, visibility in a unified dashboard, and correct reporting on conversions (reservations).
  3. Optimal Setup with Google Tag Manager: For the best results, Google Analytics needs to be added to your website via the same Google Tag Manager account added in Campspot.
  4. Compatibility with Google Universal Analytics: At this time, Campspot works seamlessly with Google Universal Analytics. Future development is planned to incorporate Google Analytics 4 functionality.

Integration Instructions:

Step 1: What you'll need prior to setup

Ensure you have the following in place:

  1. Google Tag Manager account
  2. Google Analytics account

Step 2: Set up Page View Tracking

In Campspot:

Using the primary navigation button:
  1. Navigate to Consumer Site Admin
  2. Click on Analytics tab
  3. Insert your Google Tag Manager container ID to the 'Google Tag Manager' field
  4. Click Save Changes

Please note: Your Google Tag Manager container ID will be found near the top of the window in Google Tag Manager, formatted as "GTM-XXXXXX"

In Google Tag Manager

Start a new Google Analytics: Universal Analytics tag. From the home screen:

  1. Select New Tag
  2. Click on Tag Configuration
  3. Click on Google Analytics: Universal Analytics 
  4. Keep the Track Type as Page View
  5. In the Google Analytics Settings field, select an existing Google Analytics variable or create a new variable (click here to learn how to add a new variable).
  6. Add a trigger in the Triggering section to specify when the tag should fire
    1. Select Choose a trigger to make this tag fire...
    2. Select All Pages. If this option does not appear:
      1. Select the '+' button in the upper right corner
      2. Select Choose a trigger type to begin setup...
      3. Select Page View
      4. Keep the settings as This trigger fires on - All page views
      5. Name and save this trigger
  7. Add a second firing trigger using the '+' button
    1. Select the '+' button from the Choose a trigger page
    2. Select Choose a trigger type to begin setup...
    3. Select Custom Event
      1. In the Event name field, add consumer-page-view
      2. In the This trigger fires on section, switch the selection to Some Custom Events
      3. In the Fire this trigger when an Event occurs and all of these conditions are true section, change the fields to Event > equals > consumer-page-view
    4. Name and save this trigger
  8. Name and save the tag
  9. Publish the changes when ready

Most Common FAQ:

Q: How to create a new variable for Google Tag Manager (step 5 above)?

  1. In the dropdown menu, select New Variable
  2. Sign in to your Google Analytics account to gather your Google Analytics ID that you will use to complete the variable setup:
    1. In your Google Analytics account, select the Admin menu in the bottom left corner.
    2. Under the Property column, select Tracking Info
    3. Select Tracking Code
    4. Copy the Tracking ID
  3. In Tag Manager, add the Tracking ID into the applicable field
  4. (Recommended) Add cross-domain tracking to the variable
    1. Select More Settings
    2. Select Fields to Set
    3. Select Add Field
      1. Field Name = allowLinker
      2. Value = true
    4. Select Cross Domain Tracking
      1. Auto Link Domains = [YOURPARKURL].com,campspot.com
  5. Name and save the variable

Q: Why use Google Tag Manager for Google Analytics?

Google Tag Manager effectively tracks changes on Campspot's single-page application, providing more accurate insights compared to standalone Google Analytics.

Q: Do I need cross-domain tracking?

Yes, for accurate tracking between your website and Campspot booking page, enabling a comprehensive view of user behavior and conversions.

Q: How can I obtain a Google Analytics ID for the variable setup?

Retrieve your Google Analytics ID from your Google Analytics account under Admin > Tracking Info > Tracking Code.

Q: What happens if I don't use Google Tag Manager for setup?

While Campspot offers a standard Google Analytics tracking field, using Google Tag Manager ensures optimal tracking for the single-page application structure.

Q: What is the cost associated with using Google Analytics via Google Tag Manager with Campspot?

Google Analytics integration via Google Tag Manager is included as part of Campspot's platform features, with no additional costs.