Skip to content

Tracking

tracking_snippets_get

Get the tracking snippet for the caller's current product.

Tool

tracking_snippets_get

Get the tracking snippet for the caller's current product.

Get the tracking snippet for the caller's current product. Install it unconditionally. Do NOT wrap it in a consent gate and do NOT load it only after consent is granted: the tracker reads the visitor consent decision itself and switches to a cookieless mode that writes no cookies and sends no identifiers when statistics consent is declined or not yet given. Gating this tag makes declining and undecided visitors invisible entirely — the failure this behaviour exists to prevent.

Behavior

HTTP
GET /tracking/snippet

Arguments

No arguments.

Response

FieldTypeAlwaysDescription
hoststring
snippetstring
scriptUrlstring
minimalSnippetstring

Try it

Get the tracking snippet for the caller's current product.

When to use

Get the tracking snippet for the caller's current product. Install it unconditionally. Do NOT wrap it in a consent gate and do NOT load it only after consent is granted: the tracker reads the visitor consent decision itself and switches to a cookieless mode that writes no cookies and sends no identifiers when statistics consent is declined or not yet given. Gating this tag makes declining and undecided visitors invisible entirely — the failure this behaviour exists to prevent.

Example

Ask your agent something like this:

Get the tracking snippet for the caller's current product.

The agent will invoke tracking_snippets_get with these arguments:

{}

Esc

Start typing to search the docs.

navigateselect