# Installation
To get started add the following scripts right before your closing </body> tag to every page where the widget is used.
<script src="https://widgets.kpro.co/js/keaze-widgets.js"></script>
<script>
window.kproDataLayer = [];
window.kproDataLayer.apiUrl = '[API ENDPOINT HERE]';
window.kproDataLayer.widgetUrl = 'https://widgets.kpro.co/';
(function (w, d, s, l, i) {
w[l] = w[l] || [];
var f = d.getElementsByTagName(s)[0],
j = d.createElement(s);
j.async = true;
j.src = 'https://widgets.kpro.co//js/v1/keaze-widgets.js?id=' + i;f.parentNode.insertBefore(j, f);
})(window, document, 'script', 'kproDataLayer', [YOUR SITE ID HERE]);
</script>
TIP
Need help finding your Site ID? See the Configuration documentation.
← Introduction Pages →