Google Analytics in Maps
Google Analytics Property SetupLink to this section
You need to setup the Google Analytics 4 (GA4) Property to accept a data stream from the Campus Maps domain.
- Navigate to Google Analytics.
- Go to an existing Property or Create a New One for Campus Maps.
- Go to Admin > Data Stream.
- Two choices:
- You have to have a data stream dedicated for each domain that is being tracked.
- Add the campus maps data stream to an existing property OR create a new property that is focused on the campus maps domain.
- Note: Google does not recommend mixing domains.
- Copy the Data Stream Measurement ID as you will be using it later.
Google Tag Manager SetupLink to this section
You need to setup Google Tag Manager to send data to the Google Analytics data stream.
- Navigate to Google Tag Manager.
- Create a new account or use an existing one.
- Create a tag that connects to the Google Analytics data stream.
- Click create New Tag.
- Click Tag Configuration and select Google Tag.
- Paste the Data Stream ID, that you copied earlier, into the Tag ID Field.
- Configure the tag to work through an iframe. (Important: do not overlook these steps.)
- Open the Configuration Setting for the Tag.
- Add a new variable, with the following options:
- Config Parameter:
cookie_flags
- Value:
samesite=none;secure
- Config Parameter:
- Save the Tag.
- Submit and Publish the changes.
- Go to Admin > Install Google Tag Manager.
- Copy the content inside of
<script>
tag from the first snippet of code, we will be pasting it into you Campus Map Properties later.- You can ignore the second code snippet, the
<noscript>
part, since Campus Maps requires javascript to run.
- You can ignore the second code snippet, the
- Note the Tag Manager ID. You will be using that later to verify that GA4 is sending the information.
Adding Google Tag Manager to Your MapLink to this section
- Find the map you want to add analytics to, click Properties.
- Set Enable 3rd Party Analytics to Yes.
- In the Google Tag Manager Source box, the paste the copied code from Google Tag Manager Setup steps.
- For Selected Analytics select Google Tag Manager.
- Click Update.
- Click Publish.
Verify Data is SentLink to this section
- Download a browser extension such as Debugger for Google Analytics (GA4).
- When using the extension, if you see your data stream id, then the information is being sent.
Adding Additional Events For TrackingLink to this section
- In Google Tag Manager, you can create a new trigger to push events over to GA4.
- Choose a trigger type such as "All Elements"
- Go through the prompts to define how you want to configure the Google Tag.
- To target specific elements on the map, you will need to use the browser inspector on the map.
- You can add Google Tags on the map legend and stops; however, targeting the main map itself is not possible.
- Save the Tag.
- Submit and Publish the Tag Manager account.
- Go to your Campus Maps, and clear cache
- Your newly added Google Tag will now function as you set it up.
Disclaimer: The instructions supplied are accurate as of November 21, 2023. Please be aware that the configuration steps for Google may experience changes without prior notice. Should you discover any inconsistencies in the prescribed steps, contact our CMS Support Team for corrections and assistance.