Install Widgets

With ProductLift widgets, your users no longer need to jump outside of your app. Users can be automatically logged in to ProductLift and don't need to create an account.

You can have multiple widgets on your application or website, for example a Roadmap embed and a Changelog sidebar.

Sidebar widget

Display your changelog, roadmap, or another ProductLift page on your website or app on a sidebar that is opened on demand. You can add a button on your site that opens the sidebar.

Example

In this example, you see the sidebar opened on the right side of the Boei app.

The example uses a code like this:


<a href="#" data-productlift-sidebar="e6e4ffb3-1aa7-49ac-86d0-xxxxxxxxx">Open Widget</a>
<!-- ProductLift SDK - Include it only once -->
<script defer src="https://your-portal-url.productlift.dev/widgets_sdk"></script>

Setup guide

1. In the menu, click on Settings and then Widgets.

2. Click "Add Widget"

3. Enter a name for your widget. This name is only visible to you.

4. Choose Sidebar

5. Select a page type (e.g., Tab when you want to display the Roadmap, Changelog, or Upvote board)

6. Choose the Tab that you desire

7. Enter a Title, this will be displayed on top of the Sidebar

8. Press Create to make this widget

9. You now get the installation code to add this widget to your website. Make sure to only include the ProductLift SDK once in your website.

You can fully customize the design of your embed using Custom (S)CSS.

Embed widget

Display your changelog, roadmap, or another ProductLift page on a particular page of your website by simply pasting the widget code into the desired area.

Example

In this quick example, you see the Boei roadmap being embedded in the website.

The example uses a code like this:


<div data-productlift-embed="1e83b3a3-b688-41d7-90c1-xxxxxxxxxxx" style="height: 800px;"></div>
<!-- ProductLift SDK - Include it only once -->
<script defer src="https://your-portal-url.productlift.dev/widgets_sdk"></script>

Setup guide

1. In the menu, click on Settings and then Widgets.

2. Click "Add Widget"

3. Enter a name for your widget. This name is only visible to you.

4. Choose Embed

5. Select a Page type (e.g., Tab when you want to display the Roadmap, Changelog, or Upvote board)

6. Choose the Tab that you desire

7. Select which elements you want to see in your embed

You can enable/disable the menubar and tabs bar

You can enable breadcrumbs for easier guidance without the menu or tabs bar.

8. Press Create to make this widget

9. You now get the installation code to add this widget to your website. Make sure to only include the ProductLift SDK once in your website.

You can fully customize the design of your embed using Custom (S)CSS.

Single sign-on

Your users no longer need to log in to ProductLift with single sign-on. For this, you need to create an SSO token.

👉 See our single sign-on guide

You can provide a ProductLift single sign-on token to your widgets easily.

Just add ?sso=TOKEN to your SDK url.


<script defer src="https://your-portal-url.productlift.dev/widgets_sdk?sso=xxxxxxxxxxx"></script>

Installation in Vue

Below is an example of how you can add ProductLift widgets in Vue.js.


export default{
        data: () => ({
            productlift_sso_token: null,
        }),
        async created() {
            this.$http.get('/user/' + this.$auth.user().id + '/productlift_token')
                .then(({data}) => {
                    this.productlift_sso_token = data.token // await the SSO token

                    let ProductLiftScript = document.createElement('script')
                    ProductLiftScript.src = 'https://your-portal-url.productlift.dev?sso=' + this.productlift_sso_token
                    ProductLiftScript.defer = true;
                    document.head.appendChild(ProductLiftScript)
                })
                .catch(error => {
                    console.log(error.response)
                })
        },
    }