Review Widget Documentation

Quick Start

Add the following script to your website:

<script>
(function(w,d,r,i,p,c,t){
    console.log('Initializing widget script with:', { namespace: r, portalId: i, color: p, delay: c });
    w[r]=w[r]||function(){(w[r].q=w[r].q||[]).push(arguments)};
    t=d.createElement('script');t.async=1;
    t.src='embed.js';
    c=d.getElementsByTagName('script')[0];
    c.parentNode.insertBefore(t,c);
    w[r]('init', {
        portalId: i,
        primaryColor: p,
        delay: c
    });
})(window,document,'ReviewWidgetNS','YOUR_PORTAL_ID','#007bff',1000);
</script>

Configuration Options

Example

<script>
(function(w,d,r,i,p,c,t){
    w[r]=w[r]||function(){(w[r].q=w[r].q||[]).push(arguments)};
    t=d.createElement('script');t.async=1;
    t.src='embed.js';
    c=d.getElementsByTagName('script')[0];
    c.parentNode.insertBefore(t,c);
    w[r]('init', {
        portalId: '123e4567-e89b-12d3-a456-426614174000',
        primaryColor: '#FF5733',
        delay: 3000
    });
})(window,document,'ReviewWidgetNS','123e4567-e89b-12d3-a456-426614174000','#FF5733',3000);
</script>

Features

Live Preview

Here's a live preview of the widget with a 2-second delay: