Использование
Установка
To install the add-on you need to complete the following steps:
- Go to the Marketplace and log in under the account of the order owner
- Go to the order with the module “Google аналитика и инструменты продвижения”, there you can see a link to download the module archive
- Install the downloaded archive in your store (standard for CS-Cart installation: Add-ons → Manage add-ons, select in the gear menu Manual installation, download the archive in the window that appears and click the Install button.
Настройки
Send events
To dataLayer — used to send events and data to Google Tag Manager, for this purpose GTM is used, specified in the "Google Tag Manager container ID" field.
Directly to Google Analytics — used to send events directly to Google services (for example, GA4 or Google Ads), using the ID from the "Google Analytics measurement ID" field.
1. Идентификатор контейнера менеджера тегов
2. Идентификатор отслеживания Google Аналитики
Укажите в данном поле Идентификатор отслеживания Google Аналитики. В дальнейшем это значение будет использоваться для инициализации Global site tag.
Вы можете получить ID в . Если у Вас возникли вопросы как это сделать, то Вы можете воспользоваться данной статьей.
3. Использовать как идентификатор товара
Настройка определяет какое поле товара будет использовано для передачи в аналитику как идентификатор товара. Поле обязано быть уникальным.
4. Отправлять в аналитику просмотры страниц (page_view)
5. Hotjar Tracking код
<script>6. ID клиента (Client ID)
Данная настройка хранит ID OAuth клиента. Обычно ID имеет вид: XXXXXXXXXXXXX-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.apps.googleusercontent.com
7. Секрет клиента (Client secret)
Данная настройка хранит Secret (секрет) OAuth клиента. Обычно ID имеет вид: XXXXXX-XXXXXXXXXXXXXXXXXXXXXXXXXXXX
8. Кнопка «Запустить авторизацию»
9. Настройки API индексации
Debug mode
Enable debug parameters and logs to console - add debug_mode = true to the measurement protocol event data (to view events when debugging via Tag Assistant), and logs event to browser console.
Server Side GTM
Use Server Side GTM - Yes or No
GTM server container address - For the self-hosted GTM container to work correctly on your domain, you need a valid SSL certificate. If you are using a server from GCP, the certificate is installed automatically - no need to worry about it.