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:
Sealmetrics's dashboard shows the tags and api information.
  • 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 the 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 can count page views.

When you need to track conversions or micro conversions, follow these easy steps:

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 trackers are different from 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 November 8, 2023

Was this article helpful?

Related Articles

No Cookie Banner