> For the complete documentation index, see [llms.txt](https://docs.omnichat.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.omnichat.ai/en/features/marketing-automation/remarketing/yi-bu-huo-yong-zai-hang-xi.md).

# Campaign Trigger Priority

You can create remarketing strategies in a more flexible way via Omnichat.

You can set up several sets of marketing campaigns. In order not to disturb your customers, **only one set of campaigns will be triggered when customers enter your website**

{% hint style="info" %}
One set of a campaign can include:

* Add Tags (can be more than one)
* One-time Website chat message一次站內訊息
* One-time Facebook Messenger 、 LINE or WhatsApp message
  {% endhint %}

When customers visit a URL which matches two sets simultaneously, which one will be triggered?

## Auto-trigger action priority:

### 1. First Priority | "*Special Pages*" Setting

Omnichat system will look for all matching settings and find out whether it is:

* The Marketing Campaign set for **`Special Pages`**

If yes, it will be the first priority to be triggered

### **2. Second Priority | More "***Total visit times*" Setting

More **`Total visit times`** among the matching campaign settings

### 3. The Last Priority | The "*Latest Creation Time"* Setting

Although you cannot see the creation time, we can refer to the sorting of the marketing campaign page. The top campaign is the latest created one, and the last campaign is the earliest one.

The remarketing messages priority: Top -> Bottom = New -> Old

### Use Case 1:

There are 2 sets of marketing campaigns: (Re-marketing A and Re-marketing B)

![Re-marketing A](https://2848678129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3u2I1osIy6mEi07X1z46%2Fuploads%2FGDqlYt4FZ6JurbrdXMPC%2FScreenshot%202022-04-28%20at%2012.24.11%20PM.png?alt=media\&token=a3a0c35c-d8a8-4644-8ca1-1eee0ddba5d2)

![Re-marketing B](https://2848678129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3u2I1osIy6mEi07X1z46%2Fuploads%2FgZ7JMKcJMQJDo8tugTAD%2FScreenshot%202022-04-28%20at%2012.23.53%20PM.png?alt=media\&token=0609a941-8c10-46b8-bf15-84bc287969c9)

#### Result：

If customers visit the "omnichat" URL for the **second time**, the system will execute the **Re-marketing A**. Because the action only matches the rules of Re-marketing A

If customers visit the "omnichat" URL for the **third time**, the system will execute the **Re-marketing B**. Because the action matches both rules of Re-marketing A and Re-marketing B, but there is **more total visit times** setting of Re-marketing B.

### Use Case 2:

There are 2 sets of marketing campaigns: (Re-marketing C and Re-marketing D)

![Re-marketing C](https://2848678129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3u2I1osIy6mEi07X1z46%2Fuploads%2FlC17u4EmdoXZrYNNpSPF%2FScreenshot%202022-04-28%20at%201.38.39%20PM.png?alt=media\&token=02f88b4d-418f-4434-8f58-f6515aeec220)

![Re-marketing D](https://2848678129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3u2I1osIy6mEi07X1z46%2Fuploads%2FOTcdrTHF1xuK0UjTZOPx%2FScreenshot%202022-04-28%20at%201.39.08%20PM.png?alt=media\&token=fa58b2fc-1a91-49df-92f5-3899832bda2a)

#### Result:

If customers visit the "omnichat" URL for the **third time**

The system will execute **Re-marketing C**

It is because Re-marketing C can fulfill the "Special Pages" setting. So, even the action matches both campaigns, the Re-marketing C campaign will still be executed first

### Use Case 3:

There are 2 sets of marketing campaigns: (Re-marketing E and Re-marketing F)

![Remarketing Messages backend system](https://2848678129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3u2I1osIy6mEi07X1z46%2Fuploads%2FNKSpYSHkY9aYQaPCdKVw%2FScreenshot%202022-04-28%20at%201.54.11%20PM.png?alt=media\&token=57c390a7-c320-45b1-8e83-2a355dac6ad0)

![Re-marketing E](https://2848678129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3u2I1osIy6mEi07X1z46%2Fuploads%2FiTmvdMUuRrm2lrJhWijM%2FScreenshot%202022-04-28%20at%201.54.35%20PM.png?alt=media\&token=324bac08-9e0b-4fda-9658-0eceed52dbd3)

![Re-marketing F](https://2848678129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3u2I1osIy6mEi07X1z46%2Fuploads%2F44SiqvhDh6fjl7VjcGkL%2FScreenshot%202022-04-28%20at%202.00.01%20PM.png?alt=media\&token=97ac1dd2-90ce-436a-8d8d-1a77ed1a8064)

When customers visit any URL with Omnichat plugin, the system will execute Re-marketing E first as the it is at the top of the page which means it is created later. According to the last rule, the priority will be given for the latest created campaign.
