Website tracking
Implementing the snippet
<script type="text/javascript">
/* YOU SHOULD NOT EDIT THIS PART */
!function(t,e,a){"use strict";var i=t.scimhtiraidem||{};function s(t){var e=i[a]||{};i[a]=e,e[t]||(e[t]=function(){i._queue[a].push({method:t,args:Array.prototype.slice.apply(arguments)})})}t.googletag=t.googletag||{},t.googletag.cmd=t.googletag.cmd||[],t.googletag.cmd.push(function(){var e=t.localStorage.getItem("mics_sgmts"),a=JSON.parse(e),i=a||{};Object.keys(i).forEach(function(e){t.googletag.pubads().setTargeting("mics_"+e,i[e].map(String))})});var r="init call config push pushDefault addIdentifier addProperties addProperty onFinish onStart _reset".split(" ");i._queue=i._queue||{},i._names=i._names||[],i._names.push(a),i._queue[a]=i._queue[a]||[],i._startTime=(new Date).getTime(),i._snippetVersion="2.0";for(var o=0;o<r.length;o++)s(r[o]);t.scimhtiraidem=i,t[a]=i[a];var n=e.createElement("script");n.setAttribute("type","text/javascript"),n.setAttribute("src","https://static.mediarithmics.com/tag/2/tag.min.js"),n.setAttribute("async","true"),e.getElementsByTagName("script")[0].parentNode.appendChild(n)}(window,document,"mics");
mics.init("<SITE_TOKEN>");
// Enables client-side feeds
mics.call("syncFeeds");
/* CUSTOMIZE THE TAG CALL BELOW */
// remove next line to customize what you track
mics.pushDefault();
</script>Changing the name
Changing the domain name
Pushing on events
Passing one or multiple user identifiers
Sending the right events and properties
Default tracking
Custom events
E-commerce and products events
Home page
Category or search results page
Product page
Basket page
Transaction confirmation page
UserProfile updates
Property
Description
Server-side configuration of the JavaScript tag
Device Identification
mediarithmics first-party cookies
IAB Transparency and Consent Framework
Cookie matching with Google and Xandr
Support of mediarithmics third-party cookie (vector ID)
JavaScript Tag API Reference
One Tag approach
Examples:
Last updated
Was this helpful?