Advanced Trigger — send a message based on the visitor’s page URL

The instructions below are for desktops and laptops only.

You can use an Advanced Trigger in tawk.to to automatically send a message to visitors based on the page URLs they view on your website. This lets you tailor engagement depending on where a visitor is browsing — such as product pages, blog sections, checkout pages, or any URL containing specific keywords.

Advanced Triggers offer more flexibility than Basic Page Notification triggers because you can fire a message based on keywords in a URL or not in a URL.

Steps

Follow these steps to create an Advanced Trigger based on the visitor’s current page URL:

1. Log in to your tawk.to account. Then, select the correct property.

3. Click Administration on the left navigation bar.

4. Click Triggers under Settings in the left submenu.

5. Click Add Trigger in the upper right corner.

6. Select Advanced from the Trigger Type dropdown.

7. Enter the Trigger Name and Trigger Description. These are only visible to you and your team.


Tip: Use clear names and descriptions to make triggers easy to identify later.

8. Turn on the Yes toggle under Each visitor will only receive this message once if you want to prevent repeat messages.

9. Under Run Trigger, choose when the trigger should activate:

- When a visitor has loaded the chat widget,
- When a visitor requests a chat, or
- When a visitor sends a chat message

For example, if you select When a visitor has loaded the chat widget, the trigger will run when the chat widget loads on your site.

Under Check, choose whether ANY or ALL conditions must be met for the trigger to run.

- Select ALL if every condition must be true.
- Select ANY if only one condition needs to be true.

10. Click Add Condition to add specific conditions for the trigger to run.

To send a message when a visitor is on a page whose URL contains a specific keyword (for example, “product”):
- Still on site — 1 Minute
- Visitor served — Is False
- Visitor requesting chat — Is False
- Visitor page URL — Contains — product

This means the visitor:
- Has loaded the chat widget.
- Has been on your site for at least 1 minute.
- Is not already in a chat conversation.
- Has not requested a chat.
- Is browsing a URL that contains “product.”

You can change the delay (how long the visitor must be on the site) using the dropdown next to Still on site, and you can adjust the keyword in the Visitor page URL condition to match your goals.

11. When you’re done, click Save in the lower right corner.

Additional considerations

  • Combine conditions for precise targeting
    Combine URL conditions with other rules like:
    - Time on page
    - Visitor location
    - Page title
    - Device type

    This helps you deliver highly relevant messages at the right moment. To learn more about all available trigger conditions, see this guide: Conditions for advanced triggers

  • Test your trigger
    Before finalizing, test the trigger:
    - Open your site in an incognito/private browser window.
    - Visit pages with and without your URL keyword.
    - Confirm the message appears (or doesn’t) as expected.

  • Consider visitor experience
    Avoid sending too many automated messages, especially on every page. Delay messages so they don’t interrupt browsing immediately.

Related guides


If you have feedback about this article, or if you need more help:

Was this article helpful?

94 out of 118 liked this article

Still need help? Message Us