Skip to main content
All CollectionsMetric Insights
How to track Ajax Forms:
How to track Ajax Forms:
Updated over a week ago

How to track Ajax Forms:

If you are working with AJAX forms, please follow these steps to track conversions when an ajax form is submitted:
​

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

  2. Once a user submits the form, this code will be triggered:
    ​

<script> /* SealMetrics Tracker Code */ var oSm = window.oSm || {}; oSm.account = 'XXXXXXXXXXXXXXXXXXXXX'; oSm.decore = 1; oSm.event = 'conversion'; oSm.label = 'form-lead'; !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>

Did this answer your question?