Increase the amount of feedback you get and process it faster.
Settings > Widget
, you can easily add a feedback and changelog widget to your site. It only takes a few lines of JavaScript to set up, providing you with a simple way to send feedback, indicate its priority, provide custom links and display your changelog.
This widget allows users to directly connect with the engineering team, in addition to the usual support channels.
You can customize the widget’s appearance to fit your site’s design, listen to events & more.
Embed & initialize the widget
<your-widget-key />
with your workspaces’ widget key.That’s it!
script
sets up the global Productlane
object used to communicate with the widget. It also initializes the widget via Productlane.init()
with your corresponding widget key.The second script
tag loads the widget from Productlane’s CDN.widgetKey
(required)user
(optional)email
field in the feedback form if provided.
theme
(optional)-dark
variants, based on the user’s current system preference.
enabled
in the widget
settings to apply custom themes.Productlane.open()
Opens the widget.Productlane.close()
Closes the widget.Productlane.enable()
— Enables the widget.Productlane.disable()
— Disables the widget from appearing (e.g., you can hide the widget on specific pages).Productlane.toggle()
Toggles the widget.Productlane.set()
For setting certain widget properties. Equal to the settings object in Productlane.init()
.Productlane.on('loaded', () => {/* Your code here */})
.Productlane.on("loaded", () => {})
Fires when the widget is fully loaded. Make sure to call any methods in the callback of this event.Productlane.on("opened", () => {})
Fires after the widget is opened.Productlane.off("opened", () => {})
Removes the event listener for the opened
event.Productlane.on("closed", () => {})
Fires after the widget is closed.Productlane.off("closed", () => {})
Removes the event listener for the closed
event.Productlane.on("toggled", () => {})
Fires after the widget is toggled.Productlane.off("toggled", () => {})
Removes the event listener for the toggled
event.Productlane.on("customLinkClicked", (link) => {})
Productlane.off("customLinkClicked", () => {})
customLinkClicked
event.