agreement-public-key
with the public key of your own cookie policy:<div>
element.#cookie-policy-container
in the example above.legal.load()
JavaScript function, passing it the public key of a widget in the same project as the agreement you want to show. See the following guide.widget-public-key
with a public key of any widget in the same project, and replacing agreement-public-key
with the public-key of your own agreement:<div>
element.#cookie-policy-container
in the example above.insertMode
option to change how and where the agreement is placed in relation to the target element: replace
(Default)after
before
section
element in an agreement, using an ID selector to find it.id
attribute id
of an element, you can pass the id
as the value of the elementIdToFocus
option. For example, if your agreement contains a section like this:legal.document()
ask the browser to scroll that part into view once the agreement has loaded, using this JavaScript:#
in the URL), and pass that to legal.document()
.https://mysite.example/terms
that uses legal.document()
, and the agreement you display there has a section with an id
of refund-policy
like in the example above, you can link to that page, and that section, from anywhere by using a link like this:https://mysite.example/terms#cancellation
if you have an element with an id
of cancellation
.id
attributes, you can also use the advanced HTML-editing mode in our WYSIWYG editor to add some. Look for this button in the editor toolbar to edit the HTML code directly: