JavaScript

How to add the Wiser script to your website and start collecting data.

Sign up for an account and create a new website property.

Navigate to the set up page and you will find your monitoring script as well as property API key. This script needs to be added to your website's HTML code to enable visitor data collection.

Depending on how your website is built, there are different ways to access its HTML code. If you have a content management system (CMS) like WordPress, Joomla, or Drupal, you can usually edit the code through the admin panel. Otherwise, you'll need to access the HTML files directly on your web server via FTP or a code editor. Get some help from a technical member of your team if you need extra help.

Decide where you want to insert the tracking script. Typically, it should be placed just before the closing </head> tag in your HTML code. This ensures that the script is loaded early and starts tracking user activity as soon as possible.

Open the HTML file of your website and locate the appropriate place to insert the tracking script. Insert the script within the chosen HTML tag. The script starts with <script> and ends with </script>.


<script defer src="https://cdn.wisermetrics.app/wiser.min.js" 
data-api-key="YOUR_API_KEY">
</script>

Save and publish your changes. After inserting the tracking script, save the changes to your HTML file. If you're using a CMS, make sure to save and publish the changes in your admin panel. This step ensures that the tracking script is live and ready to collect data from your website.

Once you've added the tracking script, visit your website and navigate through different pages to generate some traffic. Then, return to your Wiser dashboard and check if it's receiving data.

Once your website starts collecting data, explore the Wiser dashboard to gain insights about your website visitors, your traffic sources, and other relevant metrics. This information can help you optimize your marketing and make informed decisions.