diff --git a/docs/personalization/tracking_with_ibexa-tracker.md b/docs/personalization/tracking_with_ibexa-tracker.md index 883552950d..a64ee5f67d 100644 --- a/docs/personalization/tracking_with_ibexa-tracker.md +++ b/docs/personalization/tracking_with_ibexa-tracker.md @@ -18,12 +18,18 @@ Otherwise a new one is created. The Personalization JavaScript is a Google-like tracking API (ga.js) that you can paste into your pages. -It activates the tracking by inserting  -into the page. +It activates the tracking by inserting  or + into the page. + +To use this mechanism on your pages, copy the code snippet below, and replace: + +- `` with the customer ID +- `` with the Content Type ID +- `` with the content item ID +- `` with an empty string for cookie based anonymous user or with the value generated by +your user identifier system for logged-in user. In case user activity should not be tracked, +'not_defined' value should be used to still have an event stored without a link to the user. -To use this mechanism on your pages, copy the code snippet below, and replace -`` with the customer ID, `` with the page/item identifier  -and `` with the one generated by your user identifier. All identifiers can be any form of string. Paste this snippet into your website template page so that it appears before the closing `` tag. @@ -38,7 +44,7 @@ the closing `` tag. var yc = document.createElement('script'); yc.type = 'text/javascript'; yc.async = true; - yc.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'cdn.perso.ibexa.co/ibexa-tracker.js'; + yc.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'cdn.perso.ibexa.co/ibexa-tracker.min.js'; var ycs = document.getElementsByTagName('script')[0]; ycs.parentNode.insertBefore(yc, ycs); })();