Articles on: Widget SDK

How to install In-App widget

JavaScript



Place this Javascript code before closing of your body tag.*

Changelogfy In-App Widget require track your users to identify user actions, such as feedback, votes, reacting, commenting, or viewing a changelog.

For Tracking your users, you need to pass a UNIQUE user_id in your In-App Widget Installs.

<script>
    var CLF_config = {
        app_id: "YOUR_APP_ID",
        data: {
            user_id: '629fa8b3776d1520b9673a7b', // required and unique
            user_email: 'user@email.com', // required
            user_name: 'User Name', // required
        }
    };
</script>
<script async src="https://widget.changelogfy.com/index.js"></script>


HTML (optional)



If you want use your own launcher, place this element where you wish the widget to appear.

<div class="changelogfy-widget">What's New</div>


Now you need set up the "selector" property in the CLF_config with ID or Class from your HTML element.

<script>
    var CLF_config = {
        selector: ".changelogfy-widget", // the selector from your html
        app_id: "YOUR_APP_ID",
        //...
    };
</script>
<script async src="https://widget.changelogfy.com/index.js"></script>


If you don't know your app_id, click here

Updated on: 10/20/2023

Was this article helpful?

Share your feedback

Cancel

Thank you!