1. Home
  2. Cookieless Web Analytics
  3. How to track webpages made with REACT

How to track webpages made with REACT

  1. Add SEAL’s tracking pixel to all your website pages.

<script>
window.adnDataLayer = window.adnDataLayer || {};
window.adnDataLayer.account_id = 'XXXXXXXXXXXXXX'; // Insert your account ID here
(function(){var adn=document.createElement('script');adn.type='text/javascript';adn.async=1;adn.src='https://app.sealmetrics.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>

2. Once a user submits the form or make a conversion, this code should be triggered:

<script>
window.adnDataLayer = window.adnDataLayer || {};
window.adnDataLayer.account_id = 'XXXXXXXXXXXXXXXXXXX'; // Insert your account ID here
window.adnDataLayer.conversion_type = 'form_sale';
window.adnDataLayer.amount = '1.01';
(function(){var adn=document.createElement('script');adn.type='text/javascript';adn.async=1;adn.src='https://app.sealmetrics.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 febrero 24, 2022

Was this article helpful?

Related Articles

Leave a Comment