# Creating a Trigger - Once per ...

Let's assume we now have a variable "Once per page" (which returns "true" a single time on a page and "false" for the other events) and a "once per page random value".

Navigate to the JENTIS: Triggers section and create a new trigger or update an existing one.

<figure><img src="/files/K9oOCrXLGFLJ8FobhJYa" alt=""><figcaption></figcaption></figure>

In this article's example, we will use the same JENTIS Data Layer pageview trigger (the same as the regular trigger, but with the new logic added to it).

The added conditions are:

* (AND) Once per Page equal true (this variable will return this value just once per this scope: page)
* (AND) Once per page randomvalue matches regex .\* (this is important because otherwise the randomvalue variable will not be evaluated, as currently the JENTIS framework will only submit client-side variables to the server if they are explicitly used in a tag or trigger, but we need it in the server-side variable, so we add this condition with the variable to be always true)

Now, when this trigger is connected to a tag, it will only fire once for this tool.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.jentis.com/use-cases-and-tutorials/activate-tags-once-per-page-session-or-user/creating-a-trigger-once-per-....md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
