1. Home
  2. Getting Started Cookieless Tracking
  3. How to install Seal Metrics Cookieless tracking codes

How to install Seal Metrics Cookieless tracking codes

  1. Go to Tags & API Info:
Then you can choose between:
  • E-commerce Plugins
  • Common Tracker
  • 1st Party Tracker
  • API information

If you’re working with:

  • WordPress
  • Woocommerce
  • Magento
  • Prestashop

You can work with SEAL ready to install module.

On the other hand, you can add SEAL’s pixel directly to your site with Common Tracker.

<script>
 /* SealMetrics Tracker Code */
 var oSm = window.oSm || {};
 oSm.account = '000000000000000000001234';
 oSm.event = 'pageview';
 oSm.decore = 1;
 !function(e){var t="//app.sealmetrics.com/tag/tracker";window.oSm=oSm,window.smTrackerLoaded?sm.tracker.track(e.event):Promise.all([new Promise(function(e){var n=document.createElement("script");n.src=t,n.async=!0,n.onload=function(){e(t)},document.getElementsByTagName("head")[0].appendChild(n)})]).then(function(){sm.tracker.track(e.event)})}(oSm);
 /* End SealMetrics Tracker Code */
</script>

By adding this code to all your pages, SEAL will be able to count page views.

When you need to track conversions or microconversions, you should use this code:


<script>
/* SealMetrics Tracker Code */
var oSm = window.oSm || {};
 oSm.decore = 1;
 oSm.event = 'microconversion'; //Chose conversion or microconversion
 oSm.label = 'purchase'; //Add a custom name for the conversion or microconv (optional)
 oSm.amount = '1.01'; //Add a revenue (optional)
 !function(e){var t="//app.sealmetrics.com/tag/tracker";window.oSm=oSm,window.smTrackerLoaded?sm.tracker.track(e.event):Promise.all([new Promise(function(e){var n=document.createElement("script");n.src=t,n.async=!0,n.onload=function(){e(t)},document.getElementsByTagName("head")[0].appendChild(n)})]).then(function(){sm.tracker.track(e.event)})}(oSm);
/* End SealMetrics Tracker Code */
</script>


You can merge both pixels in only one pixel when you need to track conversions or microconversions:

<script>
 /* SealMetrics Tracker Code */
 var oSm = window.oSm || {};
 oSm.account = '000000000000000000001234';
 oSm.decore = 1;
 oSm.event = 'microconversion'; //Chose conversion or microconversion
 oSm.label = 'purchase'; //Add a custom name for the conversion or microconv (optional)
 oSm.amount = '1.01'; //Add a revenue (optional)
 !function(e){var t="//app.sealmetrics.com/tag/tracker";window.oSm=oSm,window.smTrackerLoaded?sm.tracker.track(e.event):Promise.all([new Promise(function(e){var n=document.createElement("script");n.src=t,n.async=!0,n.onload=function(){e(t)},document.getElementsByTagName("head")[0].appendChild(n)})]).then(function(){sm.tracker.track(e.event)})}(oSm);
 /* End SealMetrics Tracker Code */
</script>

As you can see, you have to copy/paste the code in your site and start to track.

When you should use 1st Party Tracker:

We recommend using 1st party tracker when AdBlockers highly block your site.

You’ll need to create a subdomain that we’ll give, and then we’ll send you a TXT record to add to your DNS Manager. Following these steps, you are tracking from your domain/server instead of our servers.

As you can see, the 1st party tracker are different of common tracker:

<script>
window.adnDataLayer = window.adnDataLayer || {};
window.adnDataLayer.account_id = '000000000000000000001234'; // Insert your account ID here
(function(){var adn=document.createElement('script');adn.type='text/javascript';adn.async=1;adn.src='https://m2vmo.sealmetrics-demo.com/tag/tags?acc='+window.adnDataLayer.account_id;adn.id='adn';if(typeof window.tagLoaded=='undefined'){document.getElementsByTagName('head')[0].appendChild(adn)}else{adnSendData()}})();
</script>

Updated on octubre 26, 2022

Was this article helpful?

Related Articles

No Cookie Banner