Important Notice:
As of the release of Google Analytics 4, the Clover Sites "Statistics" feature is no longer functional. You can rest assured that your Clover Sites remain compatible with Google Analytics 4, but you will need to add Google's custom code (see below) to your website's Head Code in order to begin capturing analytics from your Clover Site.
Please follow the steps outlined in our Site Design Settings tutorial (specifically the "Head Code" section) to access your website's "Design Settings" feature and the "Head Code" feature, which allows you to add Google's custom code to your website.
Google Analytics 4 Code
Simply replace the two TAGNAME placeholders in the following code with your unique Google Analytics ID (G-##########) , and add said code to your website's Head Code (Site Design Settings for tutorial on this feature) to complete the Google Analytics setup on your Clover Site:
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=TAGNAME"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'TAGNAME');
</script>
Example of Google Analytics 4 Code with Unique Tag Name Inserted (Not for Client Use)
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-R1RC0WJRGH"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-R1RC0WJRGH');
</script>
Updated