Deploy tracking script manually
1 min
To enable tracking, you must add the ip.js script to your website. This single script handles user identification, event tracking, and content recommendations.
You should use asynchronous loading to avoid any impact on page load times.
Implementation
Place the following code snippet in the <head> section of every page you wish to track.
- Replace YOUR_CLIENT_ID with the value from your Web Property settings.
- Replace YOUR_DELIVERY_ID with the value from your Web Property settings.
- Replace {region} with the region assigned to your account (e.g., emea01, usea01).
<script type="text/javascript">
var _iaq = [
['client', 'YOUR_CLIENT_ID'],
['delivery', YOUR_DELIVERY_ID],
['track', 'consume']
];
</script>
<script async src="//s.{region}.idio.episerver.net/ip.js"></script>The _iaq object is a command queue that configures the tracking script. The script processes these commands as it loads. The 'consume' command tracks a page view.