5-Minute Migration

Already Using Stape or GTM?
No Problem.

Migrate to ServerTrack in minutes. Just remove your old tracking code and add ours. That's it.

Why Migrate?

ServerTrack is faster, more reliable, and ad-blocker proof. Your existing events will continue to work, but now they'll be sent server-side for better accuracy.

5 Minutes

Complete migration in under 5 minutes

Zero Downtime

No interruption to your tracking

Backward Compatible

Works with your existing events

GTM Google Tag Manager

Migrating from GTM DataLayer

If you're using Google Tag Manager with DataLayer, here's how to migrate to ServerTrack.

1

Remove GTM Container

Remove this code from your website's <head> section:

<!-- Google Tag Manager - REMOVE THIS -->
<script>
  (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
  'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  })(window,document,'script','dataLayer','GTM-XXXXXXX');
</script>

And remove this from your <body> section:

<!-- Google Tag Manager (noscript) - REMOVE THIS -->
<noscript>
  <iframe src="https://www.googletagmanager.com/ns.html?id=GTM-XXXXXXX"
  height="0" width="0" style="display:none;visibility:hidden"></iframe>
</noscript>
2

Add ServerTrack Code

Add this code to your website's <head> section:

<!-- ServerTrack Init Code -->
<script>
(function(w, d, u, k) {
    w.ServerTrack = w.ServerTrack || {};
    w.serverTrackQueue = [];
    w.st = function() { w.serverTrackQueue.push(arguments); };
    var s = d.createElement('script'); 
    s.async = 1; 
    var randomPath = Math.random().toString(36).substring(2, 15);
    s.src = u + '/lib/' + randomPath + '?key=' + k; 
    var h = d.getElementsByTagName('script')[0]; 
    h.parentNode.insertBefore(s, h);
})(window, document, 'some.website.com', 'AUTHENTICATION_KEYS');
</script>

Your existing dataLayer.push() calls will continue to work! ServerTrack automatically captures them.

Make sure your existing code has dataLayer enabled! Don't remove that

<script>
window.dataLayer = window.dataLayer || [];
</script>

Remove GTM Container

Add ServerTrack

Your existing dataLayer.push() calls will automatically work with ServerTrack. No need to change your event tracking code!

What Happens to Your Events?

Your existing events will continue to work exactly as before, but now they'll be sent server-side for better accuracy and reliability.

Before Migration

  • Events blocked by ad blockers
  • iOS 14+ tracking limitations
  • Browser-based tracking (less accurate)

After Migration

  • 100% ad-blocker proof
  • Works on all devices and browsers
  • Server-side tracking (99.9% accuracy)

Ready to Migrate?

Get your ServerTrack credentials and start migrating in minutes. No credit card required.