---
schema_version: "1"
id: 08337266850ee8190ae377c3400debf6e5bf46ed99f5fdf60aab21c95aa740bc
title: Rule Categories
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/mktg/264-0-0/mc_pers_web_campaign_rule.md
canonical_url: https://help.salesforce.com/s/articleView?id=mktg.mc_pers_web_campaign_rule.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: aa217d6dda82213a20b68605c3ad745f691bf4d8ad18036179d70390a7f5e930
description: There are a variety of rules that you can add for campaign targeting and rule-based campaign experiences when you create or edit a campaign.
products:
  - Marketing
  - Salesforce Personalization
release: "264"
---
# Rule Categories

There are a variety of rules that you can add for campaign targeting and rule-based campaign experiences when you create or edit a campaign.

## Profile Objects

Profile Object rules show the campaign based on specific user profile objects.

 
| Rule | Shows the Campaign When |
| --- | --- |
| Object Aggregation | The user profile object attribute aggregation meets specific criteria. |
| Object Match | The user profile object count matches specific criteria. |

## Source

Source rules show the campaign based on the user’s technology.

 
| Rule | Shows the Campaign When |
| --- | --- |
| Application | The user is or isn’t using a specific app. |
| Browser | The user has a specific browser. If you include multiple browsers, Personalization uses OR logic. |
| Channel | The user is or isn’t using a specific channel. |
| Device | The user has a specific type of device, such as a mobile phone or game console. If you include multiple device types, Personalization uses OR logic. |
| ISP | The user has or doesn’t have a specific internet service provider. If you include multiple ISPs, Personalization uses OR logic. |
| Operating System | The user has a specific type of operating system. If you include multiple operating systems, Personalization uses OR logic. |

## Geography

Geography rules show the campaign based on the physical location of the user. For example, when you want the campaign to appear to users in a certain country. If you include multiple locations, Personalization uses OR logic.

 
| Rule | Shows the Campaign When |
| --- | --- |
| City | The user is or isn’t in a specific city or town. |
| Country | The user is or isn’t in a specific country. |
| Location | The user is within a certain distance of a specific latitude/longitude. |
| State | The user is or isn’t in a specific US state or region. |
| ZIP Code | The user is or isn’t in a specific ZIP code. |

## Weather

Weather rules show the campaign based on the weather for a user’s location.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:14.285714285714285%">
          <col style="width:14.285714285714285%">
          <col style="width:71.42857142857143%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d77501e266">Rule</th>
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="vertical-align:top;" id="d77501e269">Shows the Campaign When</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Rule" class="slds-cell-wrap" style="vertical-align:top;" headers="d77501e266 ">Temperature</td>

            <td data-label="Shows the Campaign When" class="slds-cell-wrap" colspan="2" style="vertical-align:top;" headers="d77501e269 ">The temperature at a user's location is at most,
              at least, or between a specific number of degrees. Personalization uses the user’s
              local temperature scale.</td>

          </tr>
          <tr class="">
            <td data-label="Rule" class="slds-cell-wrap" rowspan="11" style="vertical-align:top;" headers="d77501e266 ">Weather Conditions</td>

            <td data-label="Shows the Campaign When" class="slds-cell-wrap" colspan="2" style="vertical-align:top;" headers="d77501e269 ">The weather meets certain conditions. If you
              include multiple conditions, Personalization uses OR logic. Marketing Cloud
              Personalization provides various weather condition categories.</td>

          </tr>
          <tr class="">
            <td data-label="Shows the Campaign When" class="slds-cell-wrap" style="vertical-align:top;" headers="d77501e269 ">Thunderstorm</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d77501e269 ">
              <p>Thunderstorm-related weather conditions:</p><a name="mc_pers_web_campaign_rule__ul_vlt_bnf_dkc"><!-- --></a>
              <ul id="mc_pers_web_campaign_rule__ul_vlt_bnf_dkc">
                <li>Thunderstorm with rain (light, moderate, heavy)</li>

                <li>Light thunderstorm, Thunderstorm, Heavy thunderstorm</li>

                <li>Ragged thunderstorm</li>

                <li>Thunderstorm with drizzle (light, moderate, heavy)</li>

              </ul>
              <p style="margin-bottom:0;">Select to target users experiencing active thunderstorm
                conditions.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Shows the Campaign When" class="slds-cell-wrap" style="vertical-align:top;" headers="d77501e269 ">Drizzle</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d77501e269 ">
              <p>Light rain conditions:</p><a name="mc_pers_web_campaign_rule__ul_dzy_4nf_dkc"><!-- --></a>
              <ul id="mc_pers_web_campaign_rule__ul_dzy_4nf_dkc">
                <li>Light intensity drizzle, Drizzle, Heavy intensity drizzle</li>

                <li>Drizzle rain (light, moderate, heavy intensity)</li>

                <li>Shower rain and drizzle, Heavy shower rain and drizzle</li>

                <li>Shower drizzle</li>

              </ul>
              <p style="margin-bottom:0;">Select to target users experiencing light rain or drizzle.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Shows the Campaign When" class="slds-cell-wrap" style="vertical-align:top;" headers="d77501e269 ">Rain</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d77501e269 ">
              <p>Rain and shower conditions:</p><a name="mc_pers_web_campaign_rule__ul_rtr_5nf_dkc"><!-- --></a>
              <ul id="mc_pers_web_campaign_rule__ul_rtr_5nf_dkc">
                <li>Light rain, Moderate rain, Heavy intensity rain</li>

                <li>Very heavy rain, Extreme rain, Freezing rain</li>

                <li>Shower rain (light, moderate, heavy intensity)</li>

                <li>Ragged shower rain</li>

              </ul>
              <p style="margin-bottom:0;">Select to target users experiencing rainfall conditions.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Shows the Campaign When" class="slds-cell-wrap" style="vertical-align:top;" headers="d77501e269 ">Snow</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d77501e269 ">
              <p>Snow and winter precipitation:</p><a name="mc_pers_web_campaign_rule__ul_em1_b4f_dkc"><!-- --></a>
              <ul id="mc_pers_web_campaign_rule__ul_em1_b4f_dkc">
                <li>Light snow, Snow, Heavy snow</li>

                <li>Sleet, Shower sleet</li>

                <li>Rain and snow (light, moderate)</li>

                <li>Shower snow (light, moderate, heavy)</li>

              </ul>
              <p style="margin-bottom:0;">Select to target users experiencing snow or winter
                precipitation.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Shows the Campaign When" class="slds-cell-wrap" style="vertical-align:top;" headers="d77501e269 ">Atmosphere</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d77501e269 ">
              <p>Atmospheric conditions that reduce visibility or affect air quality:</p><a name="mc_pers_web_campaign_rule__ul_kr1_h4f_dkc"><!-- --></a>
              <ul id="mc_pers_web_campaign_rule__ul_kr1_h4f_dkc">
                <li>Mist, Fog, Haze</li>

                <li>Smoke (from fires or industrial sources)</li>

                <li>Sand/dust storms, Dust whirls</li>

                <li>Volcanic ash</li>

                <li>Squalls (sudden violent winds)</li>

                <li>Tornado</li>

              </ul>
              <p style="margin-bottom:0;">Select to target users experiencing visibility-reducing atmospheric
                conditions.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Shows the Campaign When" class="slds-cell-wrap" style="vertical-align:top;" headers="d77501e269 ">Clear</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d77501e269 ">
              <p>Clear sky with no clouds or precipitation.</p>
              <p style="margin-bottom:0;">Select to target users
                experiencing clear weather conditions.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Shows the Campaign When" class="slds-cell-wrap" style="vertical-align:top;" headers="d77501e269 ">Clouds</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d77501e269 ">
              <p>Cloud cover levels:</p><a name="mc_pers_web_campaign_rule__ul_mtm_v4f_dkc"><!-- --></a>
              <ul id="mc_pers_web_campaign_rule__ul_mtm_v4f_dkc">
                <li>Few clouds</li>

                <li>Skattered clouds</li>

                <li>Broken clouds</li>

                <li>Overcast clouds</li>

              </ul>
              <p style="margin-bottom:0;">Select to target users experiencing cloudy conditions.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Shows the Campaign When" class="slds-cell-wrap" style="vertical-align:top;" headers="d77501e269 ">Extreme</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d77501e269 ">
              <p>Severe weather conditions that may pose safety hazards:</p><a name="mc_pers_web_campaign_rule__ul_atc_1pf_dkc"><!-- --></a>
              <ul id="mc_pers_web_campaign_rule__ul_atc_1pf_dkc">
                <li>Tornado, Tropical storm, Hurricane</li>

                <li>Cold (dangerously low temperatures)</li>

                <li>Hot (dangerously high temperatures)</li>

                <li>Windy (extreme wind conditions)</li>

                <li>Hail</li>

              </ul>
              <p style="margin-bottom:0;">Select to target users experiencing severe or hazardous weather
                conditions.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Shows the Campaign When" class="slds-cell-wrap" style="vertical-align:top;" headers="d77501e269 ">Additional</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d77501e269 ">
              <p>Wind intensity classifications:</p><a name="mc_pers_web_campaign_rule__ul_aqt_fpf_dkc"><!-- --></a>
              <ul id="mc_pers_web_campaign_rule__ul_aqt_fpf_dkc">
                <li>Calm, Light breeze, Gentle breeze, Moderate breeze</li>

                <li>Fresh breeze, Strong breeze</li>

                <li>High wind/near gale, Gale, Severe gale</li>

                <li>Storm, Violent storm, Hurricane</li>

              </ul>
              <p style="margin-bottom:0;">Select to target users based on wind intensity levels.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Shows the Campaign When" class="slds-cell-wrap" style="vertical-align:top;" headers="d77501e269 ">Unknown</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d77501e269 ">Select when weather data can't be determined or classified.</td>

          </tr>
        </tbody>
      </table>

## Visit Behavior

Visit Behavior rules show the campaign based on specific actions of a user.

 
| Rule | Shows the Campaign When |
| --- | --- |
| Action | A user completes a specific action. If you include multiple actions, Personalization uses OR logic. |
| Page Count | A user views a specific number of pages during a visit. |
| Page Type | A user visits pages of a specific type (defined in the site map for your dataset). For example, when a user visits a product detail page. |
| URL | The user visits a specific URL. |
| Visit Count | A user visits your website a specific number of times. |
| Visit Duration | A user visits your website a specific amount of time. |

## Referrers

Referrer rules show the campaign based on how the user arrives at your website. If you include multiple referrer rules, Personalization uses OR logic.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:16.666666666666664%">
          <col style="width:83.33333333333334%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d77501e640">Rule</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d77501e643">Shows the Campaign When</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Rule" class="slds-cell-wrap" style="vertical-align:top;" headers="d77501e640 ">Referrer Domain</td>

            <td data-label="Shows the Campaign When" class="slds-cell-wrap" style="vertical-align:top;" headers="d77501e643 ">An external domain refers the user.</td>

          </tr>
          <tr class="">
            <td data-label="Rule" class="slds-cell-wrap" style="vertical-align:top;" headers="d77501e640 ">Referrer Medium</td>

            <td data-label="Shows the Campaign When" class="slds-cell-wrap" style="vertical-align:top;" headers="d77501e643 ">An external medium refers the user.</td>

          </tr>
          <tr class="">
            <td data-label="Rule" class="slds-cell-wrap" style="vertical-align:top;" headers="d77501e640 ">Referrer Search Terms</td>

            <td data-label="Shows the Campaign When" class="slds-cell-wrap" style="vertical-align:top;" headers="d77501e643 ">
              <p>Specific external search terms refer the user. </p>
              <p style="margin-bottom:0;">This feature can be
                limited by the end user's search engine. Google and Bing, for example,
                don’t pass organic and paid search terms for referral.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Rule" class="slds-cell-wrap" style="vertical-align:top;" headers="d77501e640 ">Referrer Source</td>

            <td data-label="Shows the Campaign When" class="slds-cell-wrap" style="vertical-align:top;" headers="d77501e643 ">
              <p>A specific source, such as a mobile app, refers the user. </p>
              <p style="margin-bottom:0;">This rule
                is available only if you have a mobile app.</p>
            </td>

          </tr>
          <tr class="">

            <td data-label="Rule" class="slds-cell-wrap" style="vertical-align:top;" headers="d77501e640 ">Referrer Subdomain</td>

            <td data-label="Shows the Campaign When" class="slds-cell-wrap" style="vertical-align:top;" headers="d77501e643 ">An external subdomain refers the user.</td>

          </tr>
          <tr class="">

            <td data-label="Rule" class="slds-cell-wrap" style="vertical-align:top;" headers="d77501e640 ">Referrer URL</td>

            <td data-label="Shows the Campaign When" class="slds-cell-wrap" style="vertical-align:top;" headers="d77501e643 ">A specific external URL refers the user.</td>

          </tr>
        </tbody>
      </table>

## User Attributes

User Attribute rules show the campaign based on whether the user has specific user attributes.

## Firmographic

Firmographic rules show the campaign based on the user’s company or industry.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-mktg-mc_personalization-264-0-0-production-enus/16bf1f60-f44c-4260-a56e-f052cfe515a3/images/icon_note.png)

Note These rules are available only if you have B2B Detect.

 
| Rule | Shows the Campaign When |
| --- | --- |
| Company Name | The user's company is one of the specified companies. If you include multiple companies, Personalization uses OR logic. |
| Industry | The user's industry is one of the specified industries. If you include multiple industries, Personalization uses OR logic. |

## Audience

Audience rules show the campaign based on specific segments the user does or doesn’t belong to. If you include multiple segments, Personalization uses AND logic.

## Template-Controlled Rules

Certain rules are controlled at the template level, and a developer must configure them. Examples include the following:

 
| Rule | Shows |
| --- | --- |
| Time on Page (Delay) | A message when a user is on the page for a certain amount of time. For example, a user is reading an article about the importance of drinking more water. After 15 seconds of reading, you want a message to appear about ordering home delivery of bottled water. |
| Inactivity | A message when a user is inactive on the page for a certain number (or fraction) of seconds or minutes. |
| Page scroll | A message when a user scrolls a certain percentage of the page. This behavior is an indicator of engagement and a good time to deliver a particular message. |
| Bounce | Experiences to users who are about to leave your page (“second chance” messages). Typical parameters for this rule are 0.05 seconds of delay and inactive space set as 20 px from the top of the page. These parameters capture the behavior of users who are leaving the page. |

#### See Also

- [Campaign Targeting Rules and Rule-based Tests](https://help.salesforce.com/s/articleView?id=mktg.mc_pers_web_campaign_rule_based_test.htm&release=264.0.0&type=5 "Rules determine when, where, and how your campaigns display and who sees them. You can add rules when you create or edit a campaign at the campaign level for campaign targeting or when defining rule-based test experiences.")
- [Create a Web Campaign](https://help.salesforce.com/s/articleView?id=mktg.mc_pers_web_campaign_create.htm&release=264.0.0&type=5 "Using a web campaign, you can personalize various aspects of your website for your users based on their behavior, affinities, preferences, location, or other qualifying criteria. You can create web campaigns from templates in your dataset. The templates provide a framework that defines the campaign placement, copy and creative locations, and general campaign design.")