VIN IQ Analytics Tag - Simple Install Steps (GTM or Direct)
Option A — Install via Google Tag Manager (recommended)
Sign in to your GTM container for the website.
Go to Tags → New.
Tag Type: Custom HTML.
Paste the code below into the HTML field.
Trigger: All Pages (Page View).
Save the tag, then Submit/Publish the container.
Option B — Install directly on the site
Add the code to every page of the site.
Place it as high as possible in the
<head>section (ideally before other scripts).Publish changes and clear any caches/CDN.
Analytics Tag (copy/paste exactly)
<script type="text/javascript">
(function (window, document) {
try {
var analytics_script_obj = document.createElement('script');
var domain_parts = window.location.hostname.split('.');
var root_domain = domain_parts.slice(-2).join('.');
analytics_script_obj.setAttribute('src', 'https://analytics.viniq.io/' + root_domain + '.js');
document.head.appendChild(analytics_script_obj);
} catch (e) {}
})(window, document);
</script>
How to verify it’s working (quick check)
Visit the website, open Developer Tools → Network, refresh, and filter for analytics.viniq.io — you should see a request for
/<root_domain>.js.Or view the page source and confirm the script above appears in the
<head>.