When transitioning to API-based inventory management in a hybrid integration, you'll need to disable Inventory collection in our Javascript beacon. To do so, you'll need to add a custom config variable to the Beacon script. This will stop inventory collection, while leaving all of our other functions intact.


<script type="text/javascript">
if (typeof $igniter_var === 'undefined') {
// Ensures that our client code is updated.
(function(w,d,s,p,v,e,r) {w.$ps = (w.performance &amp;amp;amp;&amp;amp;amp; w.performance.now &amp;amp;amp;&amp;amp;amp; typeof(w.performance.now) == "function") ? w.performance.now() : undefined;w['$igniter_var']=v;w[v]=w[v]||function(){(w[v].q=w[v].q||[]).push(
arguments)};w[v].l=1*new Date();e=d.createElement(s),r=d.getElementsByTagName(s)[0];e.async=1;
e.src=p+'?ts='+(+new Date()/3600000|0);
r.parentNode.insertBefore(e,r)})(window,document,'script','//cdn.petametrics.com/{JAVASCRIPT_KEY}.js','$p');
// Don't forget to REPLACE JAVASCRIPT_KEY for cdn url.

var customConfig = {
  inventory: {
    collect: false
  }
}

$p("init", "<JAVASCRIPT_KEY>", {config: customConfig}); // REPLACE JAVASCRIPT_KEY
$p("send", "pageview");
}
</script>