I have a code as following in my Magento application.
$tealium = $helper->getTealiumObject($store, $this);
$tealium->pageType("Cart");
echo $tealium->render("udo");
echo $helper->getDiagnosticTag($store);
$jsonUDO = $tealium->render("json");
echo <<<EOD
<script type="text/javascript">
document.addEventListener('DOMContentLoaded',function(){
Checkout.prototype.gotoSection = function(section) {
utag.data=$jsonUDO;
utag.data["page_name"] = section;
utag.view(utag.data);
section = $('opc-'+section);
section.addClassName('allow');
this.accordion.openSection(section)
}
});
</script>
EOD
I get ReferenceError: utag is not defined error in browser console only when I am in the private mode and break execution, in normal mode it does not create any problem.
What has changed in Firefox 45.0.1 which is creating this issue?
Finally I got the answer.
In private browsing mode Firefox prevent the tacking. I have a a javascript file getting blocked by the Firefox http://tags.example.com/utag/some_name/client_name/prod/utag.js
Following is the message in the console
The resource at "http://tags.example.com/utag/some_name/client_name/prod/utag.js" was blocked because tracking protection is enabled.