Skip to content
18 changes: 12 additions & 6 deletions docs/personalization/tracking_with_ibexa-tracker.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,18 @@

The Personalization JavaScript is a Google-like tracking API (ga.js) that you can paste
into your pages.
It activates the tracking by inserting <https://cdn.perso.ibexa.co/ibexa-tracker.js>
into the page.
It activates the tracking by inserting <https://cdn.perso.ibexa.co/ibexa-tracker.js> or
<https://cdn.perso.ibexa.co/ibexa-tracker.min.js> into the page.

To use this mechanism on your pages, copy the code snippet below, and replace:

- `<YOUR_MANDATOR_ID>` with the customer ID
- `<CONTENT_TYPE_ID>` with the Content Type ID

Check warning on line 27 in docs/personalization/tracking_with_ibexa-tracker.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/personalization/tracking_with_ibexa-tracker.md#L27

[Ibexa.DontCapitalize] Don't capitalize 'Content Type' if inside the sentence.
Raw output
{"message": "[Ibexa.DontCapitalize] Don't capitalize 'Content Type' if inside the sentence.", "location": {"path": "docs/personalization/tracking_with_ibexa-tracker.md", "range": {"start": {"line": 27, "column": 32}}}, "severity": "WARNING"}
- `<CONTENT_ID>` with the content item ID
- `<USER_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
`<YOUR_MANDATOR_ID>` with the customer ID, `<PAGE_ID>` with the page/item identifier 
and `<USER_ID>` 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 `</head>` tag.
Expand All @@ -38,7 +44,7 @@
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);
})();
Expand Down
Loading