Install the JENTIS Tracking Snippet

Integrating a JavaScript code snippet is necessary to begin collecting data with JENTIS on your website.

We suggest inserting this code snippet as high as possible within the HTML head section of your website. This will create the optimal conditions for a stable and reliable data stream.

circle-info

Inserting the tracking code snippet directly on your website and not via third-party tools is essential.

circle-exclamation
// DO NOT COPY - JUST FOR VISUAL REFERENCE
<script>window._jts = window._jts || [];</script>
<script async src="https://<trackdomain>/<filehash>"></script>
circle-exclamation
Placeholder
Description
Type
Example

<trackdomain>

Your JENTIS container DNS Domain. This will be replaced in your individual JTM container automatically when the code is generated in the UI.

string

hhd728ju.example.org

<filehash>

A unique identifier for a container source file. This will be replaced in your individual JTM container automatically when the code is generated in the UI.

string

hj8kds

Testing

If you have correctly set up the JENTIS tracking code snippet, you can find a network log entry (HTTP stream) in your browser's developer tools.

The resource loaded looks like the following:

To ensure the JENTIS script is loaded correctly, the DNS A record must be set. For more information, read the article DNS Setup.

After these steps, the script will load and respond with a 200 status code. A secure connection can now be established, and your JavaScript is available.

Your configuration will also be automatically verified within up to 30 minutes after you set up the JENTIS tracking code snippet on your website. Alternatively, you can return to your container’s configuration and click Verify.

You can always check the status of your HTML Code on your containers' configuration:

Start Tracking

Implementing Pageview Tracking with JENTIS

To start tracking with JENTIS, use the following JavaScript function calls. These commands enable automatic tracking whenever a page is visited.

Add the following lines of code to your web application:

Alternative Method

Alternatively, under the Codes section, insert the code snippet as a custom element within your JENTIS account. This ensures that a pageview is tracked each time the basic JENTIS tracking code snippet is executed.


If you have any questions or suggestions, contact us through our Helpdeskarrow-up-right.

Last updated

Was this helpful?