Adding Google Analytics to Your Site

Google Analytics provides information about traffic and visitors to your site.  Please refer to this link for setting up an account with Google first.


Once you have finished setting up your account:

  1. Click the Site Planner component.


  2. Right-click on the Modules folder and click 'Add Item'.



  1. Look for the 'Google Analytics' module.  You will need to ‘Save’ the module after choosing Google Analytics for more options to show.




  1. Paste the Google Analytics Script provided in your Google account.

It should look similar to this<!-- Global site tag (gtag.js) - Google Analytics →
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-12345678-1">
</script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
>gtag('js', new Date());
gtag('config', 'UA-12345678-1');
</script>

The ‘Analytics Code’ box.


  1. Click 'Save & Close'.

  2. Publish the item under the 'All Pages' level using the following assignment: 'Position - Load Scripts (in head)' and 'View - Default'.  *The Load Scripts (in head)




The ‘Load Scripts in head’ position and ‘Default’ view assignment



Modified on Thu, 28 Sep, 2023 at 11:42 AM

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article

Make sure these features are added to your Site Stacker installation by learning how to run updates here!