Since all Google Analytics codes contain <script>
and </script>
tags, you can add them to your portal in the Embed Code section of each Theme.
As with all Theme's customizations, add it to the Theme in use in the branch where you want to have the Google Analytics service active. Follow these steps:
- 1. Sign in to your eFront account as Administrator and go to Home > Themes.
- Go to the Change theme tab and click the theme you want to edit.
- In the Embed Code section, paste your Google Analytics code (1).
- Click Update to save your changes.
A Google Analytics code looks like this (with your “ID” in place of the “#####”):
<script async src="https://www.googletagmanager.com/gtag/js?id=#####"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', '#####'); </script>
Check these articles to see how to create a new theme and how to have a Theme active and customized for a branch.