Skip to content

Commit 09512a7

Browse files
nkostivjuskora
authored andcommitted
IBX-9107 Added link to the min.js ibexa tracker file. (#2522)
* IBX-9107 Added link to the min.js ibexa tracker file. * IBX-9107 Added link to the min.js ibexa tracker file. * IBX-9107 Added link to the min.js ibexa tracker file. * IBX-9107 Added more details about user * IBX-9107 Fixed spaces. * IBX-9107 Updated not defined user details. * IBX-9107 Changed after PR comments. * Update docs/personalization/tracking_with_ibexa-tracker.md Co-authored-by: Justyna Koralewicz <[email protected]> * IBX-9107 Changed url in example --------- Co-authored-by: Justyna Koralewicz <[email protected]>
1 parent 9dcbc85 commit 09512a7

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

docs/personalization/tracking_with_ibexa-tracker.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,18 @@ Otherwise a new one is created.
1818

1919
The Personalization JavaScript is a Google-like tracking API (ga.js) that you can paste
2020
into your pages.
21-
It activates the tracking by inserting <https://cdn.perso.ibexa.co/ibexa-tracker.js>
22-
into the page.
21+
It activates the tracking by inserting <https://cdn.perso.ibexa.co/ibexa-tracker.js> or
22+
<https://cdn.perso.ibexa.co/ibexa-tracker.min.js> into the page.
23+
24+
To use this mechanism on your pages, copy the code snippet below, and replace:
25+
26+
- `<YOUR_MANDATOR_ID>` with the customer ID
27+
- `<CONTENT_TYPE_ID>` with the Content Type ID
28+
- `<CONTENT_ID>` with the content item ID
29+
- `<USER_ID>` with an empty string for cookie based anonymous user or with the value generated by
30+
your user identifier system for logged-in user. In case user activity should not be tracked,
31+
'not_defined' value should be used to still have an event stored without a link to the user.
2332

24-
To use this mechanism on your pages, copy the code snippet below, and replace
25-
`<YOUR_MANDATOR_ID>` with the customer ID, `<PAGE_ID>` with the page/item identifier 
26-
and `<USER_ID>` with the one generated by your user identifier.
2733
All identifiers can be any form of string.
2834
Paste this snippet into your website template page so that it appears before
2935
the closing `</head>` tag.
@@ -38,7 +44,7 @@ the closing `</head>` tag.
3844
var yc = document.createElement('script');
3945
yc.type = 'text/javascript';
4046
yc.async = true;
41-
yc.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'cdn.perso.ibexa.co/ibexa-tracker.js';
47+
yc.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'cdn.perso.ibexa.co/ibexa-tracker.min.js';
4248
var ycs = document.getElementsByTagName('script')[0];
4349
ycs.parentNode.insertBefore(yc, ycs);
4450
})();

0 commit comments

Comments
 (0)