This guide is designed to he This guide is designed to help customers installing our cookie widget on their Webflow based website. Follow these few simple steps to get up and running quickly.
In order to add Legal Monster (or any other custom code) to your Webflow website, you must have paid plan on Webflow
Before you start:
Before following these steps, please be sure that you have:
Added your website’s URL ( either during the signup process or in the settings page )
Check step 1 - 4 in the Get Started with Legal Monster guide to create all of the above.
Step 1: Code snippet
To install your widget, you’ll need your cookie widget code snippet.
The code snippet is the text in the text area at the bottom right.
To find your code snippet, go to the Legal Monster dashboard and select " Widgets " in the side menu. Click on the cookie widget you previously created and copy the code.
It will look like this:
Notice that the value for
widgetPublicKey will be different in your code snippet
Step 2: Add custom code
To insert the code snippet on your page, go to your Webflow designer interface, and select “Embed” from the elements side menu.
Click on “Embed” under Components to add custom code to your site.
This will open a code editor, which is where you need to paste your cookie consent code snippet:
The code snippet is inserted in the Custom code text area.
Add the Legal monster cookie widget code snippet in the text area and click save.
Step 3: Blocking cookies
The final step you need to take to make sure your cookies are compliant is to block the scripts that set them on your website, so the widget can enable them only when a visitor gives consent.
This step is a bit more technical, however, this guide shows you how to categorise the scripts that set cookies on your website to enable blocking. You might need a developer to help you.
In the future, we plan to remove the need for Step 3, when we introduce a fully automatic blocking feature.
Congratulations on completing your first step towards collecting compliant cookie consent. Pad your self on the back and know that our monster Sven is proud of you.