Analytics

Google Analytics 4 (GA4) tracking on your online booking page (import GTM configuration)

Track visitor behavior, demographics, purchases, and more using Google's newest analytics tool.

Please note: At this time, Google Analytics 4 can only be installed on your booking page using Campspot's integration with Google Tag Manager.

 

This article specifically assists with importing Campspot's recommended installation. If you would like to build this manually please click here

Prior to GA4 booking page setup:

  1. Install Google Tag Manager on your online booking pages
  2. Create a Google Analytics 4 account (if not already done)
  3. For best results: Follow Google's instructions to install the same Google Analytics 4 account code on your website. Setting up your website and Campspot page as data streams under the same GA4 account will allow you to track users across both pages and view all analytics data in one place.

 

This import process will bring in a Google Analytics 4 configuration tag, page view event tag, and purchase tag. 

 

  1. Download Campspot's standard GA4 configuration file. (Right-click on the link, use Save Link As to download)
  2. In Google Tag Manager, import the file from step one.
    1. Select the Admin tab from the home page of your Google Tag Manager account.
    2. Under the Container column, click Import Container
    3. Click Choose container file and select the file you downloaded in step one.
    4. Choose your workspace. In most cases, only one workspace is used. If this is the case, select Existing and click on your default workspace. If you have or would like more than one workspace, select New or choose the existing workspace you would like to import to.
    5. Select Merge
    6. Select Overwrite conflicting tags, triggers, and variables
    7. Click Confirm
  3. Update the imported Campspot GA4 Configuration Tag to connect to your Google Analytics 4 account
    1. Find and copy your GA4 measurement ID
    2. On the Workspace tab in your Google Tag Manager account, find the Workspace Changes section. You should see a list of tags, variables, and triggers that were imported by the file you uploaded.
    3. Click on the Campspot GA4 Configuration Tag
    4. Click on the Tag Configuration box
    5. Clear out the default value (G-XXXXXXXXXX) in the Measurement ID field
    6. Enter your GA4 Measurement ID to 
  4. Publish the workspace
    1. From the Workspace tab of your Google Tag Manager account click the Submit button 
    2. Add a name and description that will help you remember what you published
    3. Click Publish
  5. In your Google Analytics 4 account turn off Page view detection on browser history changes. Campspot manually fires page view events to be tracked on applicable pages, so this setting duplicates the number of page views being registered.
    1. From the home screen of your GA4 account, select Admin
    2. Under the Property column, select Data Streams
    3. Select the data stream that represents your Campspot booking page 
    4. Select Configure tag settings
    5. Select Manage automatic event detection
    6. Uncheck the box for Page views on browser history change
    7. Save your settings
  6. Configure cross-domain measurement (requires step 3 of the Prior to GA4/Tag Manager setup section above). This allows web activity to be accurately attributed to a single user between your website and your Campspot online booking page, and allows for accurate marketing attribution.
    1. From the home screen of your GA4 account, select Admin
    2. Under the Property column, select Data Streams
    3. Select a data stream - either your website or your Campspot booking page. 
    4. Select Configure tag settings
    5. Select Configure your domains
    6. In the Configuration box, add two conditions
      1. For the first condition, select Contains in the first box, and type in campspot.com to the second.
      2. For the second condition, select Contains in the first box, and type your website URL into the second.
    7. Save the configuration