Skip to content

Monitoring Website Traffic & Behavioral Data

The SALESmanago Tracking Code is the "eye" of your system. It identifies visitors, tracks their product views, and monitors the time spent on specific URLs to build a behavioral profile.

How it Works

The script works by assigning a unique UUID (Universal Unique Identifier) to every visitor. Once a visitor fills out a form or clicks an email link, this UUID is "mapped" to an email address, transforming an anonymous visitor into a known Contact.

Implementation Deep-Dive

Method A: Manual Snippet Integration

Place this code directly before the closing </head> tag. This ensures the script loads as early as possible.

Standard Tracking Snippet
<script type="text/javascript">
    var _smq = _smq || [];
    _smq.push(['_setAccount', 'YOUR_ACCOUNT_ID']);
    _smq.push(['_setDomain', 'yourdomain.com']);
    (function() {
        var e = document.createElement('script'); e.type = 'text/javascript'; e.async = true;
        e.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + '[app.salesmanago.com/static/sm.js](https://app.salesmanago.com/static/sm.js)';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(e, s);
    })();
</script>

Method B: Google Tag Manager (GTM)

GTM is the preferred method for agile marketing teams.

  1. Create Tag: Custom HTML.

  2. Trigger: Page View - All Pages.

  3. Data Layer: You can pass additional data like cart_value or category_id through the GTM data layer directly into SALESmanago.

Common Troubleshooting

  • Script Blocking: Ensure your script isn't blocked by aggressive "ad-blocker" extensions.
  • Single Page Applications (SPA): If your site uses React or Vue, you must trigger a "Virtual Page View" event manually on every route change.