Code

Copy the following code and paste it to your website's head tag.

The {SITE_ID} and {COMPANY_ID} placeholders must be replaced with their respective values.

{SITE_ID}
The Id generated for the website. It is generated within Dynamics CRM website registration.
{COMPANY_ID}
The Id of the company associated with the website. One aspect of Pobuca Loyalty true powers.
<!-- SWA -->
<script type="text/javascript">
var _swaq = _swaq || [];
(function () {
    var u = "https://analytics.loyalty.pobuca.com/";
    _swaq.push(['setSiteId', '{SITE_ID}']);
    _swaq.push(['setCompany', '{COMPANY_ID}']);
    _swaq.push(['setTrackerUrl', u + 'api/tracking']);
    _swaq.push(['setSessionTimeout', 1800000]);
    _swaq.push(['setHeartBeatTimer', 60000]);
    _swaq.push(['trackPageView']);
    var d = document,
        g = d.createElement('script'),
        s = d.getElementsByTagName('script')[0];
    g.type = 'text/javascript';
    g.defer = true;
    g.async = true;
    g.src = u + 'Scripts/Client/dist-min/swa-0.0.2.js';
    s.parentNode.insertBefore(g, s);
})();
</script>
<!-- End SWA Code -->