Add Google Analytics
For CMS installations or upgrades later than March, 2012 your /smarty/smarty_folder/general/page_top.tpl template should already contain the Google Analytics code between the <head></head> tags. Previous 3.2 version templates may contain this code in the /smarty/smarty_folder/general/page_bottom.tpl template.
To use Google Analytics, log into your CMS admin panel and click Plug-Ins >> Template Fields.
Select the area you wish to edit the template field by selecting the area from the drop down:
You'll see a field named Google Analytics Code.
Edit this field and enter your Google Analytics number. This number is found within the code you get from the admin area on your Google Analytics account and looks something like UA-123456789
Click "Save Entry" and your area will now have the Google Analytics code embedded.
For more info about Google Analytics --> http://www.google.com/analytics
For Google Analytics V4 please see here:
https://support.google.com/analytics/answer/10089681
We have support for GA4 in templates available for download here:
https://cs.elevatedx.com/newest_templates.php
The process is exactly the same just a different bit of code.