Cleeng VOD embed code

If you have used Cleeng VOD and set up your video on demand via the Cleeng Dashboard, you can get an embed code.

It’s constructed like this and behaves fully responsive across desktop and mobile devices for as long as your template behaves responsive as well.

<script type="text/javascript" src="//cleeng.com/monetize/[offer-id]?dimWidth=[width]&dimHeight=[height]"></script>

For example:

<script type="text/javascript" src="//cleeng.com/monetize/A900834218_GB?dimWidth=640&dimHeight=360"></script>

If your website doesn't support above script, feel free to try iframe version:

<iframe width="853px" height="656px" src="http://cleeng.com/embed/[offer-id]" frameborder="0" scrolling="no" webkitAllowFullScreen allowFullScreen></iframe>

Affiliate tracking - external service

If you want to integrate deeper with any affiliate system, usually you need to run some code on "thank you" page. In order to do that you can use below code:

<script>
    document.addEventListener("DOMContentLoaded", function() {
        if (window.CleengVOD) {
            window.CleengVOD.bind('purchase', function(result) {
                /* Paste your affiliate JS tracking code here */
            });
        }
    });
</script>

This code will provide the information sent by embedded Cleeng VOD right after successful purchase.


Back to API Reference