One website and multiple subdomains with one tracking code

Back

In our platform, a website has its own tracking code which is unique and valid only for one web domain.
But sometimes is ambiguous what is a website. It can be only the address www.domain.com or it can include also lots of subdomains of that www.domain.com.
For the second situation, when you want to use one tracking code for your website and all its subdomains, you have to do a little change in our tracking code as in the following examples.

1. Syncronous version

<!-- start omniconvert.com code -->
<link rel="dns-prefetch" href="//app.omniconvert.com"/>
<script>
var _mktz = _mktz || [];
_mktz.cc_domain = 'domain.com';
</script>    
<script type="text/javascript">window._mktz=window._mktz||[];</script>
<script type="text/javascript" src="//cdn.omniconvert.com/js/YOURID.js"></script>
<!-- end omniconvert.com code -->

Don’t forget to replace domain.com with the name of your website.

Don’t forget to replace YOURID with your actual website id. You can find it here.

2. Asyncronous version

<!-- start omniconvert.com code -->
<link rel="dns-prefetch" href="//app.omniconvert.com"/>
<script>
 window._mktz = window._mktz || [];
 window._mktz.cc_domain = 'domain.com';
</script>
<script type="text/javascript">window._mktz=window._mktz||[];</script>
<script src="//cdn.omniconvert.com/js/j8c810f.js" async></script>
<!-- end omniconvert.com code -->

Don’t forget to replace domain.com with the name of your website.

Don’t forget to replace YOURID with your actual website id. You can find it here.

Shopping Basket