# Feedback Widget
So, you just signed up to Sleekpan and you are ready to add the widget code to your website? Great! This page will help you add Sleekplan to your HTML seamlessly. No need to be a developer.
It only takes a few minutes to install Sleekplan on your website. Once installed, you’ll be able to use the widget via the $sleek SDK. This enables you to perform various operations, such as setting up metadata for visitors and much more.
In the file serving the first portion of your HTML
<head> section, copy and paste the code we provide you just before the
</head> tag. If you can't find the
</head> tag, you can also copy the code before the end of the HTML body (eg: right before the
</body> tag. If the feedback widget is not shown up immadiatly, refresh your browser's cache and try again. That's it you are done, the widget is now ready to use.
If you can't figure out how to add Sleekplan to your website, chat with us. We will be happy to help!
# 3. (optional) Setup a custom button
By default the widget is triggered by a feedback button that comes with the widget. However, if you want to trigger the widget by using your own button, you can do so and it's quite simple. First, you may want to disable the default button. Go to Settings → Widget and disable the feedback button.
data-sleek-feedback attribute tells us which element is your button. Once the widget is initialized, we will listen for clicks on elements with this attribute, to trigger the widget to open. You can simply replace
data-sleek-changelog to open the changelog.
<!-- This button triggers the widget to open --> <button data-sleek-feedback> Feedback </button> <!-- Another button to open the changelog --> <button data-sleek-changelog> Changelog </button>