Adding Google Analytics Tags
Adding Google Analytics to your website enables you to track the number of visitors to your site, the search keywords they use to find your site, the time spent on your site, goal conversion, etc. Theme version 4v1.1 includes the basic set up to add Google Analytics tags to your site. The Google Analytics set up block can be found in the "_Site Configuration" folder.
Before proceeding with the instructions below, you should already have a Google Analytics account. If you do not have a Google Analytics account please view more information from Google on setting up GA4 before proceeding with the steps below.
Instructions
Locate your Google Tag Javascript Snippet
Sign in to your Google Analytics account.
From the bottom left-hand side of the page, Click Admin.
At the top of the Property column, select your property.
In the Property column, click Data streams > Web.
Click the data stream for your website.
Under Google tag, click View tag instructions.
On the Installation instructions page, select Install manually:
On the screen, you’ll see the JavaScript snippet for your account's Google tag. Your Google tag is the entire section of code that appears, beginning with:
<!-- Google tag (gtag.js) -->
and ending with
</script>
Add your Google Tag to your Cascade Site
From the _Site Configuration folder, Select the Google Analytics block.
Click Edit.
In the Block Content editor, copy and paste the code for your Google Tag under the text:
<!-- Add your Google tag (gtag.js) code below -->
Click Preview Draft
Click Submit.
If you have published your site before adding your Google Analytics tag, you will need to re-publish your site.
The Google Analytics Connector syncs data from your Google Analytics account with Cascade CMS to provide users with basic analytics information for Sites, Pages, Files, and Folders and can be viewed as a Dashboard Widget.
Related articles