Untitled
unknown
javascript
2 years ago
1.3 kB
10
Indexable
<script>
// Initialize the engage variable
var engage = undefined;
// Create and inject the <script> tag into the HTML
var s = document.createElement("script");
s.type = "text/javascript";
s.async = true;
s.src = "https://d1mj578wat5n4o.cloudfront.net/sitecore-engage-v.1.4.2.min.js";
var x = document.querySelector("script");
x.parentNode.insertBefore(s, x);
// Initialize the Engage SDK
s.addEventListener("load", function () {
var settings = {
clientKey: "c34b0de5248b917f35a74d54da247c1e",
targetURL: "https://api-engage-eu.sitecorecloud.io",
pointOfSale: "default",
cookieDomain: ".eurobank.gr",
cookieExpiryDays: 365,
forceServerCookieMode: false,
includeUTMParameters: true,
webPersonalization: true /* boolean or object. See Settings object for all options. Default: false */
};
window.Engage.init(settings).then(function (result) {
engage = result;
// Send a VIEW event
var event = {
channel: "WEB",
language: "EN",
currency: "EUR",
pointOfSale: "default",
page: "retail"
};
engage.pageView(event);
});
});
</script>Editor is loading...
Leave a Comment