Skip to content

consent_embed_get

Get the consent banner embed snippet.

Tool

Get the consent banner embed snippet.

Get the consent banner embed script for the current product. Requires product-scoped read access. Returns script_tag, product_id, and public_edge_url. Insert script_tag unchanged, including its leading HTML comment, as the first script in <head>, before trackers, tag managers, or inline loaders. Do not add async or defer: the banner must run before trackers so it can apply the consent decision.

Arguments

No arguments.

Try it

Give me the consent banner script tag to add to my site.

When to use

Get the consent banner embed script for the current product. Requires product-scoped read access. Returns script_tag, product_id, and public_edge_url. Insert script_tag unchanged, including its leading HTML comment, as the first script in <head>, before trackers, tag managers, or inline loaders. Do not add async or defer: the banner must run before trackers so it can apply the consent decision.

Example

Ask your agent something like this:

Give me the consent banner script tag to add to my site.

The agent will invoke consent_embed_get with these arguments:

{}

Esc

Start typing to search the docs.

navigateselect