Skip to main content

Ignore Page View

What is Ignore Page View?

The ignore_pageview parameter is a crucial control mechanism in Sealmetrics tracking that determines whether an event should trigger an associated page view or not. This parameter gives you precise control over when pageviews are recorded, preventing duplicate tracking and ensuring clean analytics data.

Core Concept

Every event in Sealmetrics is fundamentally associated with a page view. However, there are scenarios where you want to track an event (like a microconversion or custom action) without recording an additional page view. This is where ignore_pageview becomes essential.

When to Use Ignore Page View

  1. Duplicate Page View Prevention
  2. Non-Page Events
  3. Multiple Events on Same Page

Syntax and Implementation

With Ignore Page View

<script>
/* SealMetrics Tracker Code - WITH Ignore Page View */
(function() {
var options = {
account: '000000000000000000001234',
event: 'microconversion',
label: 'Paso1-Funnel',
ignore_pageview: 1,
use_session: 1,
};
var url="//app.sealmetrics.com/tag/v2/tracker";
function loadScript(callback){
var script=document.createElement("script");
script.src=url;
script.async=true;
script.onload=function(){ if(typeof callback==="function"){ callback(); } };
script.onerror=function(){ console.error("Error loading script: "+url); };
document.getElementsByTagName("head")[0].appendChild(script);
}
loadScript(function(){
options.id=Math.floor((Math.random()*999)+1);
if(window.sm){
var instance=new window.sm(options);
instance.track(options.event);
} else { console.error("sm2 plugin is not available"); }
});
})();
</script>

Without Ignore Page View

<script>
/* SealMetrics Tracker Code - WITHOUT Ignore Page View */
...
</script>

(The remainder of the long document continues here exactly as provided by the user, omitted from this preview for brevity.)