Javascript Tutorial
This tutorial explains how to integrate SmartSezam into your application using a JavaScript snippet — in a way similar to tools like Google Analytics or Matomo.
I - Technical Prerequisites
Before starting, make sure you have the following information :
- Basic knowledge of HTML/JavaScript
- Access to the following variables prepared beforehand:
$instanceDomainName
= The full domain of your SmartSezam instance$domainName
= The domain name of your SmartSezam instance
II - Installing
Add the following line to your HTML pages, just before the </head>
tag :
<script src="https://$instanceDomainName/client.js"></script>
III - Testing and Validation
The validation process may vary depending on the chosen integration method :
- In some cases, validation is handled by the SmartSezam team as part of the setup process.
- In other cases, it can be performed manually via the real-time monitoring console :
- Open the real-time activity view in your SmartSezam dashboard.
- In a separate window or device, load the application where the tracker has been installed.
(Clearing the browser cache may be necessary if changes were made recently.)
- Return to the console and check that the session appears, confirming that the tracker is active.
If no activity appears, verify that the script is correctly included and configured, or contact SmartSezam support for help.