> ## Documentation Index
> Fetch the complete documentation index at: https://clickflare.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Custom trigger

> Unleash Custom Solutions: Leveraging ClickFlare Tag Manager's Custom Trigger for JavaScript Flexibility

ClickFlare Tag Manager's custom trigger enables you to integrate custom JavaScript code into your website pages. If you're proficient in coding, this trigger offers a solution for various custom scenarios where default triggers may not suffice.

To create a new timer trigger:

1. Click **Triggers > New**.
2. Click **Trigger Configuration** and choose the **Custom Trigger** type.
3. In the custom trigger form enter your custom JavaScript code
4. Under the heading "**This trigger fires on**", select "**Conditions**".

   Under "**Fire this trigger when an Event occurs and all of these conditions are true**", select a condition for when the custom JavaScript should fire.
5. **Save** the trigger and **publish** the container.

<img src="https://mintcdn.com/clickflare/GPmlXVWHNq-9kzLd/images/help-center/07-tag-manager/05-triggers/08-custom-trigger-01.png?fit=max&auto=format&n=GPmlXVWHNq-9kzLd&q=85&s=a2ece7c8a59dfdc67fe0e86b7ccf10c9" alt="Save the trigger and publish the container" width="1224" height="830" data-path="images/help-center/07-tag-manager/05-triggers/08-custom-trigger-01.png" />

### Related Sources

* Trigger types
* How triggers work
* Tag types
