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

## 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&#x26;token=16c8061d-8943-43ad-a3fc-61a75ef2195b" alt=""><figcaption></figcaption></figure>

## Downloads

{% file src="<https://1613709692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0zW0zvGDZaiNuIFweCtu%2Fuploads%2FpevFgqgxgPz8gCpXFnV0%2FCookBook_Tag_rules_EN.pdf?alt=media&token=46e21b17-4f4d-4e96-a47b-bd0735527450>" %}
