Adding Google Analytics allows you to understand the demographics and behavior of the guests who visit your booking page.
Google Analytics gives you additional tools that help you to understand who is visiting your website and Campspot booking page, with insights like their time spent on the site, actions taken, age categories, location, devices used, pages visited, and much, much more.
Things to 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:
- Campspot's online booking page is built as a Single-page application. This means that when a visitor reaches your Campspot booking page, all of the content is loaded at once and dynamically changes based on their search parameters, amenity and pricing filters used, and more. This contrasts with other websites that load a separate page for every step of the booking process or every new search performed. This creates a vastly improved user experience but requires more complex tracking. Where Google Analytics alone is unable to track changes on a single-page application, Google Tag Manager is able to do so.
- As your Campspot booking page is implemented as a third-party site, it's important to add cross-domain tracking to your analytics setup. This is a feature within Google Analytics and Tag Manager that allows a user's visit to be counted as one across separate domains (your website and your Campspot booking page) instead of counting separately. This ensures that the tracking is accurate, that you have visibility in one easy-to-view dashboard, and that your conversions (reservations) can correctly report on where they originally came from.
- For the best results, Google Analytics needs to be added to your website via the same Google Tag Manager account that is added in Campspot.
- At this time, Campspot works with Google Universal Analytics. Google Analytics 4 functionality will come with future development.
What you'll need prior to setup:
How to set up page view tracking for your online booking page:
- In Campspot, go to Menu > Consumer Site Admin > Analytics, insert your Google Tag Manager container ID to the 'Google Tag Manager' field, and click 'Save Changes'
- This will be found near the top of the window in Google Tag Manager, formatted as "GTM-XXXXXX"
- In Tag Manager, start a new Google Analytics: Univeral Analytics tag. From the home screen select New Tag
Tag Configuration
Google Analytics: Universal Analytics
- Keep the Track Type as Page View
- In the Google Analytics Settings field, select an existing Google Analytics variable or create a new variable. To create a new variable:
- In the dropdown menu, select New Variable
- Sign in to your Google Analytics account to gather your Google Analytics ID that you will use to complete the variable setup:
- In your Google Analytics account, select the Admin menu in the bottom left corner.
- Under the Property column, select Tracking Info
- Select Tracking Code
- Copy the Tracking ID
- In Tag Manager, add the Tracking ID into the applicable field
- (Recommended) Add cross-domain tracking to the variable
- Select More Settings
- Select Fields to Set
- Select Add Field
- Field Name = allowLinker
- Value = true
- Select Cross Domain Tracking
- Auto Link Domains = [YOURPARKURL].com,campspot.com
- Name and save the variable
- In Tag Manager, add a trigger in the Triggering section to specify when the tag should fire
- Select Choose a trigger to make this tag fire...
- Select All Pages. If this option does not appear:
- Select the '+' button in the upper right corner
- Select Choose a trigger type to begin setup...
- Select Page View
- Keep the settings as This trigger fires on - All page views
- Name and save this trigger
- Add a second firing trigger using the '+' button
- Select the '+' button from the Choose a trigger page
- Select Choose a trigger type to begin setup...
- Select Custom Event
- In the Event name field, add consumer-page-view
- In the This trigger fires on section, switch the selection to Some Custom Events
- 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
- Name and save this trigger
- Name and save the tag
- Publish the changes when ready