Installation and Configuration

Synerise works on customers’ online and offline data.
To analyze the activity of your customers, you need to track their actions on the website. You can do this by embedding tracking codes in your pages. You can also use Google Tag Manager.
If you have a web app with multiple pages, where each one triggers a new page refresh, you will most likely need the basic JavaScript method.

Embedding a tracking code in page source

Procedure: Paste the tracking code before the </body> closing tag of your website.

    function onSyneriseLoad() {

     s[r]._t=1*new Date(),s[r]._i=0,s[r]._l=i;var z=y.createElement(n),
     z.onload=z.onreadystatechange=function(){var rdy=z.readyState;
     if(!rdy||/complete|loaded/.test(z.readyState)){s[i]();z.onload = null;
     '//','SR', 'onSyneriseLoad');

Tracking script variants

We have several variants of our Javascript SDK that you can use depending on the required features.

Fewer features usually result in smaller page size and shorter load times.

Script version URI
Script with all functionalities
Script without Cookie Matching
Script without WebPush
Script without WebPush and Cookie Matching
Script without Cookie Matching, Automation-based Dynamic Content, and WebSockets

Additional tracking configuration parameters

The only required parameter during the initialization of the tracking code is the trackerKey parameter.
By using the additional parameters described below, you can modify the configuration of the tracking code.

  • If you are using Google dataLayer, you can connect it with Synerise.
    By using Enhanced Ecommerce you can track transaction events.
  • If you are using several sub-domains, you can limit tracking to only generate data for particular domains. To do that, add the domain name in the script:
  • You can turn off the automatic collection of page visit events with the customPageVisit parameter.
    In this case, events should be sent manually using the sdk methods.
  • If you use Synerise webpush and need to set a custom service worker scope (registration path), you can enter that path as a parameter.
  • Additionally, if you need to disable some Synerise modules on a specific sub-page or domain, you can do it by specifying the parameters as below:

We are sorry to hear that

Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.



Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.