Skip to content

Integrate into your website

Integrate into your website

To get started, create a client and then add an app if you haven't already. Kumulos groups your apps under clients, usually the name of the website or company.

Web SDK

Kumulos provides an SDK to ease the integration of the Kumulos Analytics and Push Notification features into your web project.

The following video shows how to add Kumulos Web Notifications to your WordPress site.

Configuring Notifications for WordPress with Kumulos

The relevant code snippet for your functions.php is as follows:

<?php


function kumulos_init_web_push()
{
    echo <<<'END'
<script>
    (function(w,p){w[p]=w[p]||function(){w[p].q=w[p].q||[];w[p].q.push(arguments)}})(window,"Kumulos");

    Kumulos("init", {
        apiKey: "YOUR_API_KEY",
        secretKey: "YOUR_SECRET_KEY",
        vapidPublicKey: "YOUR_VAPID_KEY"
    });
</script>

<script src="https://static.app.delivery/sdks/web/main.js" async></script>
END;
}

add_action('wp_head', 'kumulos_init_web_push');>