If you have selected the option, Install Tracking Code Later, or need to re-install it, you can locate your website's tracking code by going to Website Settings > Tracking Code. The Tracking Code Status should be "Successfully Installed."
Note: To comply with data privacy regulations and improve data collection, we've updated our tracking code. You now have access to two different tracking codes for your selected website, allowing you to choose the one that best fits your chosen data privacy mode. Learn more about the updated tracking code here.
To resolve this issue, you can place the script in the header, but ensure it starts execution only after the DOM has fully loaded. Here's a code snippet that accomplishes this:
<script> document.addEventListener("DOMContentLoaded", function () { (function (v, i, s, a, t) { v[t] = v[t] || function () { (v[t].v = v[t].v || []).push(arguments); }; if (!v._visaSettings) { v._visaSettings = {}; } v._visaSettings[a] = { v: '1.0', s: a, a: '1', t: t }; var b = i.getElementsByTagName('body')[0]; var p = i.createElement('script'); p.defer = 1; p.async = 1; p.src = s + '?s=' + a; b.appendChild(p); })(window, document, '//app-worker.visitor-analytics.io/main.js', 'INSERT-HERE-YOUR-WEBSITE-ID', 'va'); }); </script>
This code ensures that the script in the header won't load until the DOM is fully loaded, preventing the previous error. However, for most websites, it's often recommended to add scripts to the bottom of the body, as this approach typically avoids such issues altogether.
We are now part of the GTM (Google Tag Manager) community! You can add TWIPLA to your website directly through GTM.
If you encounter any issues during installation, you can reach us through:
For additional details, please visit our Contact Us page. We are committed to ensuring a smooth and seamless experience with our plugin!