Installing the LaunchNotes Embedded Widget on Your Website or App
The LaunchNotes embedded widget integrates product updates seamlessly into your website or app. It can be set up as either an inline element or a popup drawer, with an optional unread indicator to capture user attention.
Steps to Install the Embedded Widget
Copy and paste the embed code: Obtain the embed code from the LaunchNotes Management Portal and insert it just before the closing
</body>
tag of your website or app’s HTML.Add the trigger or target attribute: Include
data-target="ln-embed"
as an attribute to the HTML element that will either trigger the popup or display the inline embed.
Detailed Installation Instructions
Access the Embed Settings
Log in to your LaunchNotes Management Portal.
Navigate to Settings → API, Embed & RSS → Embed.
Configure the Embed
Set up the Title and Subtitle for your widget, and click Save.
Copy the Embed Code
Choose the appropriate embed type (Popup or Inline) and click Copy code.
Note: The embed codes for Popup and Inline are different.
Add the Embed Code to Your HTML
For the Popup Embed:
Paste the code at the bottom of your page or app, just inside the closing
<body>
tag.
For the Inline Embed:
Paste the code in the
<body>
section where you want the widget to appear.
Set Up the Trigger or Target Element
Add
data-target="ln-embed"
to the HTML element that will either trigger the popup or be replaced with the inline widget.This element will also display the optional unread indicator if configured.
Optional: Add a Unique User Identifier
If you want to enable the unread indicator, update the
anonymous-user-id="YOUR_ANON_ID"
attribute with a unique, consistent identifier for each user, such as their primary key ID or email address.For added security, consider hashing this value before using it.
Note: This unique user identifier is required for the unread indicator to function.
React or Dynamic DOM Updates
If your website or app uses React (or similar frameworks) that dynamically update the DOM, an additional step is necessary to ensure the embed works correctly, particularly for the unread indicator and click handlers.
The embed script automatically attaches a click event to the target you set with the data-target=ln-embed
attribute. However, if you use React or something similar that dynamically updates the DOM, you can use our toggle function that is provided through window.launchnotesEmbed.togglePanel()
to handle opening and closing the panel. We still require the data-target=ln-embed
to attach the unread indicator.
Additional Notes
Content Reflected in the Widget: The embedded widget dynamically displays content from your LaunchNotes Audience Page, including Announcements, Roadmap items, and Ideas.
Unread Indicator Considerations: If your application dynamically updates the DOM, ensure that the unread indicator’s unique user identifier (anonymous-user-id) is retained and the embed container persists. Additional testing in production mode may be required to validate proper functionality in your environment.