Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This pull request incorporates Google Analytics into the SplashKit website to enable website traffic tracking and analytics. The implementation uses the
head
field inastro.config.mjs
to inject the required<script>
tags into the site's<head>
section. This change ensures analytics functionality is seamlessly integrated.Motivation
Tracking user interactions on the website will help the team make informed decisions to improve the user experience, prioritize features, and gauge the effectiveness of content.
Dependencies
No additional dependencies are required for this change.
Type of change
How Has This Been Tested?
Testing of functionality can only be done once incorporated, however if the tag is not communicating back to Google Analytics, it will not break any existing functionality. Once merged, I will check that the analytics tag is correctly reporting data using the Google Tag Assistant.
I have also ensured the implementation does not interfere with existing website functionality.
The banner is displaying as expected:
The privacy preferences are detecting the analytics tag as expected:
Analytics data is the only data being collected. Console prints when consent is granted for analytics data to be collected:
Testing Checklist
Checklist
If involving code
If modified config files
Folders and Files Added/Modified