> For the complete documentation index, see [llms.txt](https://community.commandersact.com/customer-success/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://community.commandersact.com/customer-success/cookbooks-and-tutorials/entreprise-tag-management/clientside/how-to-restrict-the-triggering-of-a-client-side-tag.md).

# How to restrict the triggering of a client-side tag?

It is sometimes essential to create strict rules so that your tags only run under certain conditions Not all tags must be active on all pages.

## How to proceed

1. Go to the Tag edit tab and select the tag I want to restrict
2. Click on the + button to add a rule (perimeter or constraint)
3. Choose the type of constraint/perimeter you want and fill in the fields with the values corresponding to the logic of what you want to do (for example if my page\_name variable is equal to page\_basket)
4. Register the tag and generate the container
5. Deploy the container in pre-production to ensure that it is functional before going into production
6. If the recipe is validated, deploy the container to production.

<figure><img src="https://1613709692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0zW0zvGDZaiNuIFweCtu%2Fuploads%2Foinkf1E5j2QE92vnT7nc%2Fcookbook.jpg?alt=media&amp;token=16c8061d-8943-43ad-a3fc-61a75ef2195b" alt=""><figcaption></figcaption></figure>

## Downloads

{% file src="/files/Ku9n082qVv5xUx0m49qz" %}
