Cleeng Live! event embed code

If you have used Cleeng Live! and set up your PPV event 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="http://[subdomain].cleeng.com/event-embed/[offer-id]?width=[width]&height=[height]"></script>

For example:

<script type="text/javascript" src="http://publisherdemo.cleeng.com/event-embed/E641086196_NL?width=698&height=512"></script>

On some websites, scripts simply doesn't work, here is an iframe version:

<iframe src="http://publisherdemo.cleeng.com/embedded-event/E641086196_NL?embed=1" width="698" height="512" frameborder="0" scrolling="no" webkitAllowFullScreen allowFullScreen></iframe>


FAQ&Support section

Embedded event doesn't include FAQ&Support section. You can directly link to the FAQ & Support page (by adding "/faq" at the end of default event link):

http://publisherdemo.cleeng.com/join-me-for-a-45-mn-workout/E641086196_NL/faq


Affiliate tracking - standard

You can embed the event on multiple websites and track individual affiliate sales by adding transactionExternalData param to the url:

<script type="text/javascript" src="http://[subdomain].cleeng.com/event-embed/[offer-id]?width=[width]&height=[height]&transactionExternalData=[affiliate-name]"></script>

After transaction is done from the embed code, in your transaction reports section you will be able to download csv/xls report with transactionExternalData value.

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.CleengLive) {
            window.CleengLive.bind('purchase', function(result) {
                /* Paste your affiliate JS tracking code here */
            });
        }
    });
</script>

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


Back to API Reference