Articles on: Developers & API
This article is also available in:

Experiences: Direct sharing link and HTML embed code samples for tests

You will find an example of a share link or integration code for our Games here: Sharing links and embeds code for our games.

And here is an example of a share link or integration code to test a particular technical integration that apply for our Gamification Experiences. Here is the Dynamic Path™:


Direct link test sample



https://apps.drimify.com/wNyhY1tF/


HTML integration code test sample



<div id='gamification-widget'></div>
    <script src='https://cdn-apps.drimify.com/prod/widget/index.js' type='text/javascript'></script>
    <script>
        window.addEventListener('load', function () {
            var widget = DigitaService.Widget.Create({
                autoscroll: true,
                element: 'gamification-widget',
                engine: 'https://apps.drimify.com/wNyhY1tF/',
                fixed: true,
                height: ['100svh','85vh'],
                sharingurl: 'https://apps.drimify.com/wNyhY1tF/',
                width: '100%',
            });
            widget.load();
        });
    </script>


Wordpress integration shortcode test sample



Download and install our plugin: WP Shortcode by Drimify.

[drimify app_url="https://demo.subdomain.white-label.com/wNyhY1tF/" app_widget="https://cdn-apps.subdomain.white-label.com/prod/widget/index.js" version="2" experience="1"]


AMP integration code test sample



Make sure to load the iframe script tag:

<script async custom-element="amp-iframe" src="https://cdn.ampproject.org/v0/amp-iframe-0.1.js"></script>


Then embed the AMP code to your page (make sure that the variable amp=true is used in your call):

<amp-iframe width="800" height="600" layout="responsive" sandbox="allow-scripts allow-same-origin allow-popups" resizable src="https://apps.drimify.com/wNyhY1tF/?amp=1">
        <amp-img layout="fill" src="https://cdn-apps.drimify.com/prod/shared/images/banner-transparent.svg" placeholder></amp-img>
        <div overflow tabindex="0" role="button" aria-label="App"></div>
    </amp-iframe>


Leaderboard direct link test sample



https://apps.drimify.com/wNyhY1tF/?l=1

Updated on: 14/11/2023

Was this article helpful?

Share your feedback

Cancel

Thank you!