Connecting visitor tracking
Copy the link to the article
Copied

In case the CMS integration modules are connected, articles describing how to connect tracking in them can be found at the links:

Tracking allows you to track visits, page views, clicks and other events on the site without the need for additional integration with Google Analytics 4.

Visitor tracking can be enabled in the block MarketingWebsite Visitor Tracking → Enable.

In order to add the required store, you need to click on the button of the same name.

Next, select the desired store from the list.

The js-code for pasting will be displayed - it should be copied and pasted on the store's site where tracking of actions will be performed. It is important to update the page after pasting the code.

To link the collected events to the customers, the following code must be called after the tracker is initialized:

ocapi.setCustomerSiteId('customer123');

For the case when you need to pass a string with an external ID (externalId) of a customer to the function. In the case of linking by internal system IDs of the customer in the system, the following:

ocapi.setCustomerSystemId(123);

If the setting of the _rcco identifier is already configured according to the instructions from the article «General Live Chat settings», no additional configuration is needed.

Request consent to cookies on the site. When activated, data collection on the site will start after the visitor accepts the consent to the use of cookies.

Note

The consent form is not a functionality of the tracker.

The tracker can be integrated with any consent form that supports the execution of arbitrary JS code after user consent is obtained. To activate the tracker, you need to call the function ocapi.startTracking(). In this case, if GPC (Global Privacy Control) is enabled or the corresponding mark is present, they have priority over the consent form settings.

Support of the Global Privacy Control standard. Upon activation, the site will automatically take into account the visitor's consent to the transfer of personal data in accordance with the Global Privacy Control standard.

Note

The Online Consultant module and visitor tracking have the same tracking functionality. Therefore, if the Online Consultant module is enabled, there is no need to enable visitor tracking separately.

The switch in the upper right corner is responsible for visitor data collection activity:

  • when enabled, visitor tracking starts collecting data;
  • when disabled, visitor tracking stops collecting data.

The added store can be removed from the list. In this case, visitor tracking on this site will be stopped.

Thank you for your feedback.
Was this article helpful?
No
  • Рекомендации не помогли
  • Нет ответа на мой вопрос
  • Текст трудно понять
  • Не нравится описанный функционал
Yes
Next article
Configuration of vistor tracking events
Set up events to track visits, page views, clicks and other site events without the need for additional integration with Google Analytics 4.