> ## Documentation Index
> Fetch the complete documentation index at: https://moengage-unity-sdk-initialization-split.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Create OSM Campaign

> Step-by-step guide to creating an On-site Messaging campaign in MoEngage. Define your audience, design content, and schedule delivery with ease.

# Interactive Walkthrough

<iframe src="https://app.supademo.com/embed/Ayc4Cw9S5Qoc5IwcP_6ht" loading="lazy" className="w-full aspect-video rounded-xl border border-slate-200 dark:border-slate-800" allowFullScreen />

To create an On-Site Messaging (OSM) campaign, perform the following steps:

1. On the sidebar menu in MoEngage, hover over the **Engage** menu item <img src="https://mintcdn.com/moengage-unity-sdk-initialization-split/t37-50XEsNpFASoe/images/moengage_7fae95.png?fit=max&auto=format&n=t37-50XEsNpFASoe&q=85&s=f8ab4d9999d5a9d9d126c82c96901e6e" style={{ display: 'inline-block'}} width="38" height="32" data-path="images/moengage_7fae95.png" /> . The **Engage** menu appears.
2. Click **+ New Campaign**.
   <img src="https://mintcdn.com/moengage-unity-sdk-initialization-split/sdP5LZ2stJJLCx89/images/moengage_a574a7.png?fit=max&auto=format&n=sdP5LZ2stJJLCx89&q=85&s=6da8294e5c96b0e8bddfc31f8455d212" alt="1.png" style={{ width:"50%" }} width="562" height="474" data-path="images/moengage_a574a7.png" />
3. You can also click **All Campaigns** on the **Engage** menu and then click **+ Create campaign** on the All campaigns page.
4. On the **New Campaign** dialog box, under **Inbound**, click **On-site**.
   <img src="https://mintcdn.com/moengage-unity-sdk-initialization-split/cCVRNbpzxfVeActK/images/moengage_7b1ad3.png?fit=max&auto=format&n=cCVRNbpzxfVeActK&q=85&s=cb86046caf4dda80bd4510895ba2bfa6" alt="Screenshot 2025-06-17 at 5.27.16 PM.png" style={{ width:"57%" }} width="1264" height="1300" data-path="images/moengage_7b1ad3.png" />
   The OSM campaign creation page is displayed.

# Steps to Create an OSM Campaign

There are three steps to creating an OSM campaign, and they are:

1. [Target users](/user-guide/campaigns-and-channels/on-site-message/create/create-osm-campaign#step-1-target-users): Define the target audience for the campaign
2. [Content](/user-guide/campaigns-and-channels/on-site-message/create/create-osm-campaign#step-2-define-content): Define the content of the push notification to be sent
3. [Schedule and Goals](/user-guide/campaigns-and-channels/on-site-message/create/create-osm-campaign#step-3-scheduling-and-goals): Define the campaign's delivery schedule and goals

## Step 1: Target Users

This section contains the following:

### **Campaign details**

The campaign details section contains the following fields:

|                                                                                                                                                                                                                                                                                                                                                                                                                              |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <ul><li>**Campaign name** - Type the name of the campaign to manage and identify the campaign.  The campaign name must have at least five characters, and the limit is 256.</li><li>**Campaign tags** - Select campaign tags from the drop-down list.  You can select up to 5 tags. For more information, refer to [Campaign Tags](/user-guide/campaigns-and-channels/getting-started/introduction/campaign-tags).</li></ul> | <img alt="Campaign_Details_OSM.png" src="https://mintcdn.com/moengage-unity-sdk-initialization-split/OstTlkNxT-HYB_-S/images/moengage_1ac0a8.png?fit=max&auto=format&n=OstTlkNxT-HYB_-S&q=85&s=bb9dd3e3c49aa4946b4907d9b9767bb9" width="588" height="344" data-path="images/moengage_1ac0a8.png" /> |

### **Target Platforms**

This section lets you choose the target platforms for your campaign. The following options are available:

|                                                                                                                                                                                    |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <ul><li>**Web** - Choose Web to target the Web platform for the campaign.</li><li>**Mobile Web** - Choose Mobile Web to target the Mobile Web platform for the campaign.</li></ul> | <img alt="OSM_TargetPlatforms.png" src="https://mintcdn.com/moengage-unity-sdk-initialization-split/XsvjH2PscmCt5gYl/images/moengage_088cfb.png?fit=max&auto=format&n=XsvjH2PscmCt5gYl&q=85&s=f94a656d08ccc4f432a608a0fe8c6ea7" width="438" height="136" data-path="images/moengage_088cfb.png" /> |

### **Trigger Criteria**

#### **On Page Load**

Choose this option if you want to show the message as soon as the page loads on your website for the user. The following options are available:

* **Immediately** - This option will show the OSM as soon as the page loads for the user.
* **After Delay** - This option will show the OSM with the specified delay. For example, if the delay is specified as 2 seconds, the OSM will be shown 2 seconds after the page load.
* **After Scroll** - This option will show the OSM once the user has scrolled the website by about x%. If you specify the scroll percentage as 30, the OSM will be displayed after the user has scrolled 30% of your website.

<img src="https://mintcdn.com/moengage-unity-sdk-initialization-split/mKv_oylg_NNQ7Lsq/images/moengage_316fa4.png?fit=max&auto=format&n=mKv_oylg_NNQ7Lsq&q=85&s=5110ccaa83014765c524ceb63f54f21f" alt="OnPageLoad.png" style={{ width:"72%" }} width="1468" height="648" data-path="images/moengage_316fa4.png" />

#### **On Custom Event**

You can display the On-site messages when the user performs the custom event. You can send the message immediately or after a delay using the Trigger the message option.

<img src="https://mintcdn.com/moengage-unity-sdk-initialization-split/VIRDnSlIWZ-NqOoJ/images/moengage_18ea5e.png?fit=max&auto=format&n=VIRDnSlIWZ-NqOoJ&q=85&s=ba4cab3c9aca23f2c57543f8fa725470" alt="custom event on-site.png" style={{ width:"60%" }} width="1770" height="1380" data-path="images/moengage_18ea5e.png" />

#### IF user

The **IF user**section allows you to select an event. In the case of a single event chosen in the IF condition, if a user performs this event, then the message will get sent. However, you can add multiple events and attributes along with the IF condition.

In the **IF user** section, do the following:

1. From the **Select an Event** drop-down, select the event.
2. You can also refine the event. To do so:
   * Click the Attribute button to add attributes to the filter and select the logical drop-downs for the attribute.
   * To add more attributes, do the following
     * Click **+ Attribute** button
     * Click *AND* or *OR*
     * From the Attribute drop-down, select the respective attributes and the logical drop-downs for the selected attribute.

For instance, if you choose to select the event *User installs the app*, you can add an attribute called *App Version* to filter for users who installed a specific version of the app.

<img src="https://mintcdn.com/moengage-unity-sdk-initialization-split/SoJYnBjaY0oGj0G6/images/moengage_d42dd1.png?fit=max&auto=format&n=SoJYnBjaY0oGj0G6&q=85&s=da16839f4c88dc1a289cf3c06d6e8b2e" style={{ width:"88%" }} width="1922" height="522" data-path="images/moengage_d42dd1.png" />

#### AND then

You can now have more customization with the **And/ Then** feature. In addition to the **+ Trigger**option, the **+** **Filter**button allows you to string multiple events together.

For instance, you can select the *On-site Message Clicked* event and then use the \*\*AND then \*\*option to add the *Added to Cart* event.

By doing this, the On-site message will be shown to users who have clicked on an On-site message campaign at least once and then proceeded to add an item to their cart at least once.

<img src="https://mintcdn.com/moengage-unity-sdk-initialization-split/XsvjH2PscmCt5gYl/images/moengage_07485b.png?fit=max&auto=format&n=XsvjH2PscmCt5gYl&q=85&s=992c7edb7c8f80d54811dc97a7c81867" alt="multiple trigger attributes.png" style={{ width:"56%" }} width="1674" height="1780" data-path="images/moengage_07485b.png" />

You also get to define the time to wait before the event in the \*\*Filter \*\*condition is evaluated. Setting this limit to 15 minutes implies that the user has to perform the **Filter** event within 15 minutes of performing the first trigger event. In this example, the first event would be *On-site Message Clicked*.

* The maximum delay that you can set here is 24 hours, and the minimum delay is 1 minute.

<img src="https://mintcdn.com/moengage-unity-sdk-initialization-split/mKv_oylg_NNQ7Lsq/images/moengage_3006b1.png?fit=max&auto=format&n=mKv_oylg_NNQ7Lsq&q=85&s=6675f4007900b9748543992d7f7aac52" style={{ width:"66%" }} width="818" height="152" data-path="images/moengage_3006b1.png" />

If you click on the + Filter button again, you can add another event to the trigger criteria. You get the option to choose *AND* or *OR*. Combine the two filter conditions by choosing *AND,* or use the *OR* to filter users if they perform any of the events within the time limit.

<img src="https://mintcdn.com/moengage-unity-sdk-initialization-split/ISSWCWnXoZ2WUyBs/images/moengage_26cb81.png?fit=max&auto=format&n=ISSWCWnXoZ2WUyBs&q=85&s=7d5a67aaac6f9cccfdb8165ed04d4183" style={{ width:"59%" }} width="1490" height="892" data-path="images/moengage_26cb81.png" />

#### THEN

In the THEN section, under Trigger the message, select an option to define when to show the message. The available options are:

* **Immediately**: The message will be shown immediately after the trigger criteria have been identified.
* **After Delay**: The message will be shown after the defined delay. For example, if the delay is specified as 2 seconds, the OSM will be shown 2 seconds after the page load. <img alt="and then.png" src="https://mintcdn.com/moengage-unity-sdk-initialization-split/gR_3RY7eYNtE0Ioy/images/moengage_a3d571.png?fit=max&auto=format&n=gR_3RY7eYNtE0Ioy&q=85&s=e35816d6be30cd5550470ad1cc4c8d30" width="488" height="280" data-path="images/moengage_a3d571.png" />

<Info>
  When After Delay is selected, a maximum delay of 1 day (86400 seconds) and a minimum of 1 second delay can be set.
</Info>

**Trigger Criteria Summary**: The Trigger Criteria Summary will summarise the trigger on the basis of the events and attributes that you select, making it easier for you to understand the trigger criteria.

<img src="https://mintcdn.com/moengage-unity-sdk-initialization-split/t37-50XEsNpFASoe/images/moengage_7e079c.png?fit=max&auto=format&n=t37-50XEsNpFASoe&q=85&s=90b230ec445d1ce2ab82730c55545d8f" alt="" width="1724" height="190" data-path="images/moengage_7e079c.png" />

#### **On Exit Intent**

Choose this option if you want to trigger a message when the user is trying to exit your website. For more information, refer to [Exit Intent Technology](/user-guide/campaigns-and-channels/on-site-message/create/exit-intent-technology).

<img src="https://mintcdn.com/moengage-unity-sdk-initialization-split/lyl829Ibss13DAHw/images/moengage_1f279b.png?fit=max&auto=format&n=lyl829Ibss13DAHw&q=85&s=d822fabdcbc69a757f194f14f65ac156" alt="OnExitIntent.png" width="1450" height="554" data-path="images/moengage_1f279b.png" />

### **Select Pages**

This section allows you to choose the web pages where you want to display a campaign to the user. You can select one of the following:

* **All pages**: This option would show the campaign on all website pages.
* **Specific pages**: This option would show the campaign on specific website pages. You can select the page you want to show or hide the campaign by defining the URL rules <img src="https://mintcdn.com/moengage-unity-sdk-initialization-split/t37-50XEsNpFASoe/images/moengage_80aa24.png?fit=max&auto=format&n=t37-50XEsNpFASoe&q=85&s=a4392231e538d40e764e0834930a4379" alt="Screenshot 2024-11-07 at 12.54.46 PM.png" width="1602" height="384" data-path="images/moengage_80aa24.png" />

To show or hide your campaign on specific pages using the URL path, follow these steps:

1. Click **Specific pages**. <img src="https://mintcdn.com/moengage-unity-sdk-initialization-split/E4eb9r-R89FFRfS_/images/moengage_d30ea8.png?fit=max&auto=format&n=E4eb9r-R89FFRfS_&q=85&s=c829d1d803b1b2e621dd0dffba98265b" alt="WhatsApp Image 2024-11-12 at 3.53.09 PM.jpeg" width="1243" height="334" data-path="images/moengage_d30ea8.png" />
2. Under **If URL**, select any condition in the **Select Option** list, as shown below: <img src="https://mintcdn.com/moengage-unity-sdk-initialization-split/QmWc4jzcdR8vL8D6/images/moengage_c7f565.png?fit=max&auto=format&n=QmWc4jzcdR8vL8D6&q=85&s=97dc09cac36d71678f3f7de7c93dcae7" alt="WhatsApp Image 2024-11-09 at 3.55.02 PM.jpeg" width="909" height="231" data-path="images/moengage_c7f565.png" /> The following table lists the available conditions:
   | Conditions                | Explanation                                                                                                                                                                                                    |
   | ------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
   | is                        | The pop-up is shown on any of the specific URL(s) mentioned in the condition, and the URL(s) must match exactly for the pop-up to appear.                                                                      |
   | is not                    | The pop-up is shown on any URL except those mentioned in the condition. The URL(s) must not match exactly for the pop-up to appear.                                                                            |
   | contains                  | The pop-up is shown on any URL that **contains** any of the specified text or strings mentioned in the condition. The URL does not need to match exactly but must include at least one of the specified texts. |
   | contains (all of)         | The pop-up is shown on any URL that **contains all of** the specified text or strings mentioned in the condition. The URL does not need to match exactly but must include all of the specified text.           |
   | does not contain          | The pop-up is shown on any URL that **does not contain** any of the specified text or strings mentioned in the condition. The URL must exclude all of the specified texts for the pop-up to appear.            |
   | does not contain (all of) | The pop-up is shown on any URL that **does not containall of** the specified text or strings mentioned in the condition. The URL must exclude at least one of the specified texts for the pop-up to appear.    |
   | starts with               | The pop-up is shown on any URL that **starts with** the specific text or string mentioned in the condition. The URL must begin with the specified text for the pop-up to appear.                               |
   | ends with                 | The pop-up is shown on any URL that **ends with** the specific text or string mentioned in the condition. The URL must end with the specified text for the pop-up to appear.                                   |
   | does not starts with      | The pop-up is shown on any URL that **does not start with** the specific text or string mentioned in the condition. The URL must not begin with the specified text for the pop-up to appear.                   |
   | does not end with         | The pop-up is shown on any URL that **does not end with** the specific text or string mentioned in the condition. The URL must not end with the specified text for the pop-up to appear.                       |
3. In the box adjacent to the **Select Option** list, enter one or more URLs as shown below: <img src="https://mintcdn.com/moengage-unity-sdk-initialization-split/KccnxMUofDI2ra9J/images/moengage_bbda3c.png?fit=max&auto=format&n=KccnxMUofDI2ra9J&q=85&s=50ad8dbb550c6a1071d84d45c227b787" alt="Screenshot 2024-11-14 at 1.36.28 PM.png" width="2688" height="1052" data-path="images/moengage_bbda3c.png" />

   <Info>
     **Information**

     * You can manually add multiple URLs and keywords by pressing Enter.
     * You can also copy and paste the list of URLs from CSV in the input box.
   </Info>
4. Click **+ Filter**.
5. Select the **And** or **Or** operator, and then select a condition in the **Select Option** list.
6. Enter the keywords within the box adjacent to the **Select Option** list. <img src="https://mintcdn.com/moengage-unity-sdk-initialization-split/WCD9PHM9QZsnxcgC/images/moengage_e6b1d1.png?fit=max&auto=format&n=WCD9PHM9QZsnxcgC&q=85&s=5b313a2ea74401311e7599def91e6235" alt="Screenshot 2024-11-14 at 1.33.11 PM.png" width="2622" height="826" data-path="images/moengage_e6b1d1.png" />
7. To add multiple rules, repeat steps 4 through 6. <img src="https://mintcdn.com/moengage-unity-sdk-initialization-split/7I6Q9SBGr41ReRTp/images/moengage_b7c108.png?fit=max&auto=format&n=7I6Q9SBGr41ReRTp&q=85&s=8cec46240aacb622b4d9a9ed500f94c6" alt="Screenshot 2024-11-14 at 1.39.42 PM.png" width="2670" height="1232" data-path="images/moengage_b7c108.png" />
8. To delete a specific rule, click the delete icon ( <img alt="delete icon.png" src="https://mintcdn.com/moengage-unity-sdk-initialization-split/z3l2URE0K8oVtPU3/images/moengage_f7d066.png?fit=max&auto=format&n=z3l2URE0K8oVtPU3&q=85&s=c420e71685614a2e9e1dc799f98fff21" style={{ display: 'inline-block'}} width="70" height="84" data-path="images/moengage_f7d066.png" /> ).
9. Enter the URL in the **Check page targeting** box to verify the provided URL meets the defined condition.
10. Click **Check**. <img src="https://mintcdn.com/moengage-unity-sdk-initialization-split/d4cA3fqbzAaS1Beb/images/moengage_f292ff.png?fit=max&auto=format&n=d4cA3fqbzAaS1Beb&q=85&s=1227151cc351b89fe63e791609cec0f8" alt="Screenshot 2024-11-14 at 1.40.33 PM.png" width="1402" height="266" data-path="images/moengage_f292ff.png" />
    * If the provided URL meets the defined condition, a **Passed** notification is displayed as shown below <img src="https://mintcdn.com/moengage-unity-sdk-initialization-split/x_1J63SbC40L-eCI/images/moengage_4f9385.png?fit=max&auto=format&n=x_1J63SbC40L-eCI&q=85&s=e692561a638b31d81c8c3ebf6f3d1316" alt="Screenshot 2024-11-14 at 1.32.30 PM.png" width="2666" height="406" data-path="images/moengage_4f9385.png" />
    * If the provided URL fails to meet the defined condition, a **Failed** notification is displayed, as shown below. Follow the error instructions specified in the notification. <img src="https://mintcdn.com/moengage-unity-sdk-initialization-split/3hr5kc69qidG5GLA/images/moengage_931c2e.png?fit=max&auto=format&n=3hr5kc69qidG5GLA&q=85&s=918bd008deaf5f109f82a9e58a9d88e4" alt="Screenshot 2024-11-14 at 1.42.27 PM.png" width="1466" height="492" data-path="images/moengage_931c2e.png" />

### **Target audience**

This section contains segmentation filters that help you choose the target audience for your campaign. The following options are available:

<Tabs>
  <Tab title="All Users">
    This filter option allows you to send the campaign to all the app users. When you use this option, you cannot add multiple filters.

    <img src="https://mintcdn.com/moengage-unity-sdk-initialization-split/lGL78K6d2VV03Hy7/images/moengage_8b4a31.png?fit=max&auto=format&n=lGL78K6d2VV03Hy7&q=85&s=7f79614a6c25732b2a0bf7ffe6323f8b" alt="TargetAudience_OSM.png" width="2660" height="626" data-path="images/moengage_8b4a31.png" />
  </Tab>

  <Tab title="Filter by User Property">
    This filter option allows you to target the users based on user properties such as first seen, last seen, city, and so on. Select the User property tab and do the following:

    1. Select the desired attribute in the dropdown. This will enable the filters based on the attributes chosen. For example, attributes that are numbers can have filter conditions such as 'is equal to', 'is not equal to', 'is between', and so on, while String attributes will have different filters.
    2. Provide the filter value(s) to create the desired user segment.

    For more information, refer to [Create Segments](/user-guide/segment/segment-operations/rule-based-filter-segments).

    <img src="https://mintcdn.com/moengage-unity-sdk-initialization-split/q6SvYhZa4K6FIef8/images/moengage_422650.png?fit=max&auto=format&n=q6SvYhZa4K6FIef8&q=85&s=5d45e98dbe9a0053cf3da13d389dddb7" alt="UserProperty.png" width="2386" height="532" data-path="images/moengage_422650.png" />
  </Tab>

  <Tab title="Filter by User Behavior">
    This filter option allows you to target the users based on the behavior of the user or event, such as app/site opened, viewed product, and so on. Select the User Behavior and do the following:

    1. Select the execution condition and the desired user activity (event).
    2. Provide event frequency and time duration for the event execution.
    3. Click +Attributes and add an Event attribute with a filter condition.
    4. Provide the filter value/s to create a rule.

    For more information, refer to [Create Segments](/user-guide/segment/segment-operations/rule-based-filter-segments).

    <img src="https://mintcdn.com/moengage-unity-sdk-initialization-split/diGXIjw7obUVGMLQ/images/moengage_10dee7.png?fit=max&auto=format&n=diGXIjw7obUVGMLQ&q=85&s=d2997b3c21308d409badc8427c8534d7" alt="UserBehavior.png" width="2392" height="696" data-path="images/moengage_10dee7.png" />
  </Tab>

  <Tab title="Filter by User Affinity">
    This filter option allows you to target groups of users created based on the user performing an action with a specific attribute value. For more information, refer to User Affinity. Select User Affinity and do the following:

    1. Select the desired user event or attribute.
    2. Select the user affinity parameter from the following:

    * **Predominantly**: Select affinity attribute with a filter condition and provide the affinity values
    * **Minimum of**: Select affinity attribute with a filter condition and provide the affinity values
    * **Most no. of times**: Type or use the arrows to provide the top or bottom percentage of users
    * **Least no. of times**

    3. Type or use the arrows to provide the top or bottom percentage of users Type or use the arrows to provide the time duration for the event execution.
    4. Click the Attribute button to add more attributes to the filter.

           <img src="https://mintcdn.com/moengage-unity-sdk-initialization-split/gR_3RY7eYNtE0Ioy/images/moengage_a3e525.png?fit=max&auto=format&n=gR_3RY7eYNtE0Ioy&q=85&s=75570b8e6acd0472e65f455f576b79c5" alt="UserAffinity.png" width="2388" height="750" data-path="images/moengage_a3e525.png" />
  </Tab>

  <Tab title="Filter by Custom Segment">
    This filter option allows you to select a Custom Segment as the target audience from the list of custom segments available. For more information, refer to [Custom Segments](/user-guide/segment/segment-operations/custom-segments).

    <img src="https://mintcdn.com/moengage-unity-sdk-initialization-split/G7H0GfgfjCPh_kkw/images/moengage_5f1d8a.png?fit=max&auto=format&n=G7H0GfgfjCPh_kkw&q=85&s=b4b87117e777b2c195fbeb0691bf57f2" alt="CustomSegment.png" width="2390" height="532" data-path="images/moengage_5f1d8a.png" />
  </Tab>
</Tabs>

#### In-Session Attributes

In-session attributes allow you to group and target their users based on their actions within their current session on your website.

For instance, if a user is in India, you can show them a personalized pop-up that you created for users based in India. This will help deliver a personalized experience to them immediately in the same session.

To add an In-session attribute, click on the **+ In-session attributes** button.

<img src="https://mintcdn.com/moengage-unity-sdk-initialization-split/tsAE0HTwBq48nEDV/images/moengage_880186.png?fit=max&auto=format&n=tsAE0HTwBq48nEDV&q=85&s=c337dafefbb8eb06322db5187d4b2a6b" alt="" width="828" height="168" data-path="images/moengage_880186.png" />

You can combine multiple in-session attributes together. You can also exclude users based on their in-session activity.

<img src="https://mintcdn.com/moengage-unity-sdk-initialization-split/Su-OFSqZFnoKuAhF/images/moengage_ecbac7.png?fit=max&auto=format&n=Su-OFSqZFnoKuAhF&q=85&s=752ae82e32af28c626d2af2d078f91b1" alt="" width="1378" height="684" data-path="images/moengage_ecbac7.png" />

You can use the following in-session attributes with your In-app campaign:

1. **Query Parameter**: This field lets you segment users based on the query parameters in the URL. Typically, users would land on your personalized URL by clicking an advertisement on any Social Media platform.
   * You can use UTM parameters like Source, Medium, Content, Campaign, etc., to segment users based on the source from where they are visiting, the campaign from which they've landed on this URL, and so on.
   * UTM parameters like utm\_source, utm\_campaign, etc., are used to identify the campaigns driving users to websites. You can use UTM and custom parameters to segment users and personalize the website experience.
2. **User Type**: This field lets you segment users based on whether they are new or returning users. The Web SDK stores user details (*unique\_id*) for each user in the browser storage. If those details are present in the storage, the user is a returning user. If not, the user is a new user.
   * Hence, if the browser cache is cleared, the user gets treated as new.
   * **Note**:
     * If two users are using the same device and user 2 logs in after user 1, they would be considered a *returning* *user*
     * If a user logs in from the mobile browser and then logs in again from a desktop browser, the login from the desktop would be considered a *new user.*
3. **Day of the Week**: This field lets you segment users based on the day of the week on which they visit your website.
4. **Time of the Day**: This field lets you segment users based on the hour of the day on which they visit your website. You can choose from any of the one-hour slots in a day available in the dropdown.
5. **Geolocation**: This field lets you segment users based on the geolocation from where they visit your website. You can choose the Country, State/Region, and City where the user is located or exclude a specific Country.
6. **Device Type**: This field lets you segment users based on the device with which they visit your website. You can include or exclude one or a combination of the following: Mobile, Desktop, or Tablet.
7. **Operating System**: This field lets you segment users based on the Operating System of the device with which they visit your website. You can include or exclude one or a combination of the following: Android, iOS, Windows, Mac, Linux, or others.
8. **Browser Type**: This field lets you segment users based on the browser with which they visit your website. You can include or exclude one or a combination of the following: Chrome, Safari, Firefox, Opera, or others.

### Campaign Audience Limit

This feature empowers you to control campaign reach and expenditure by capping the number of users who receive it based on engagement metrics like sends, impressions, and conversions. It allows you to set total, daily, or instance-level limits to campaigns. For more information, refer to [Campaign Audience Limit.](/user-guide/settings/channels/delivery-controls/campaign-audience-limit)

<img src="https://mintcdn.com/moengage-unity-sdk-initialization-split/lGL78K6d2VV03Hy7/images/moengage_8c85b3.png?fit=max&auto=format&n=lGL78K6d2VV03Hy7&q=85&s=c6b21f4ce6c5a0990439f955f80868c6" alt="image (2).png" width="987" height="403" data-path="images/moengage_8c85b3.png" />

### Control Groups

This section contains information about control groups for the campaign. To exclude users in the control groups, do the following:

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| <ul><li>Enable the  Global control group toggle to exclude the users in the control group from the campaign's target segment.</li><li>Enable the Campaign control group to exclude a fixed percentage of users in the campaign from the campaign's target segment. Specify the percentage of users to be excluded from the campaign in the box below the toggle.</li><li>For more information about control groups, refer to [Control Groups](/user-guide/campaigns-and-channels/getting-started/introduction/control-groups).</li></ul> | <img alt="ControlGroup.png" src="https://mintcdn.com/moengage-unity-sdk-initialization-split/eos4tf22L3PX0a1X/images/moengage_51eca8.png?fit=max&auto=format&n=eos4tf22L3PX0a1X&q=85&s=24deb4c6d1301bbd671f06d0696da839" width="484" height="272" data-path="images/moengage_51eca8.png" /> |

Click **Next** or use the tabs on the top of the **Create Campaign** navigation to move to Step 2.

## Step 2: Define Content

You can create the content for your OSM campaigns using two options here:

1. Create the content using the new editor
2. Create content using the old editor

<Tabs>
  <Tab title="Create content with the new editor">
    The following template types are available:

    * **Banner** - these templates can be used to show banners on the website while customers browse or perform actions on it. Banners can be used for the following:
      * show countdown timers
      * show cookie information and seek customer content for the same
      * show notifications with information about seasonal sales and ongoing offers
    * **Nudge** -  these templates can be used to show non-intrusive information to customers. Nudges can be used for the following:
      * show countdown timers
      * add a call to action information
      * show notifications
      * ask for subscriptions and opt-ins
      * used for lead generation
      * used to capture feedback at the time of delivery of service/product
    * **Popup** - these templates can be used to communicate with customers in an intrusive manner. Popups can be used for the following:
      * display information about sales and direct customers to relevant web pages
      * seek feedback from customers
      * lead generation
      * preventing customers from churning

    | Template Type        | When to use it?                                                                                                                                                                                                                                                                                             |
    | -------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
    | Popups               | Use popups for intrusive communication                                                                                                                                                                                                                                                                      |
    | Nudges               | use nudges for non-intrusive communication                                                                                                                                                                                                                                                                  |
    | Banner at the Top    | Use banners at the top to show offers. These templates will move the contents of the page down and occupy the space at the top of the website (the banner will not overlap with the content) if the *Push the contents of the page down* display option is enabled and the website's headers aren't sticky. |
    | Banner at the Bottom | Use banners at the top to show information to the visitor/customer about policies and seek their consent. These templates cover the entire width of the screen and will overlap with the content while being non-intrusive.                                                                                 |

    You can create your on-site message using a blank template or choose from the available templates for each template type. You can also look up a template using the search option or click on the template of your choice.

    **Blank Template** - Hover on the Blank Template and click Popup to create a popup template from scratch. Click on the '+' icon to open the editor and add elements to the template. For more information, refer to [OSM Editor.](/user-guide/campaigns-and-channels/on-site-message/create/osm-editor)

    **Other Templates**- The following template types are available: Offers and Announcements Templates, Lead Generation Templates, and Typeform Survey Templates. For more information, refer to [OSM Templates](/user-guide/campaigns-and-channels/on-site-message/create/osm-templates).

    Once you've loaded the template of your choice, the template loads in the OSM editor. The following options are available:

    **Add elements** - You can add elements to the template by clicking the <img alt="AddElement_Icon.png" src="https://mintcdn.com/moengage-unity-sdk-initialization-split/Su-OFSqZFnoKuAhF/images/moengage_eaa6b5.png?fit=max&auto=format&n=Su-OFSqZFnoKuAhF&q=85&s=58ed7d2da82758921ef30bd9de844cd1" style={{ display: 'inline-block', width: '32px' }} width="46" height="50" data-path="images/moengage_eaa6b5.png" /> icon on the left pane of the editor.

    **Editing/Styling Options** -Click the <img alt="Options.png" src="https://mintcdn.com/moengage-unity-sdk-initialization-split/E4eb9r-R89FFRfS_/images/moengage_d099f8.png?fit=max&auto=format&n=E4eb9r-R89FFRfS_&q=85&s=df5d505d2ca0d8c490714b7c0f14ee41" style={{ display: 'inline-block', width: '32px' }} width="90" height="88" data-path="images/moengage_d099f8.png" /> icon at the top right corner of the template to add the following styling elements to the template:

    | Editing/Styling Option                        | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
    | --------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
    | Display Close Button                          | This option lets you specify whether there should be a close button for users to dismiss the message. By default, the close button is displayed. You can hide it by turning off the toggle.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
    | Background Image/Filters                      | This option lets you add background images to the message. To upload an image, click on <img alt="UploadImage.png" src="https://mintcdn.com/moengage-unity-sdk-initialization-split/5pATfnQZWnbfz9Tn/images/moengage_eec934.png?fit=max&auto=format&n=5pATfnQZWnbfz9Tn&q=85&s=2d715f98933f51366a69128a6fde2dae" style={{ display: 'inline-block', width: '32px' }} width="56" height="68" data-path="images/moengage_eec934.png" /> icon and upload the image in the Image section. You can add filters to the image using the Filters tab.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
    | Background Color                              | This option lets you add a background color to the message. By default, the background is black. You can change it by clicking on the <img alt="BGIMage.png" src="https://mintcdn.com/moengage-unity-sdk-initialization-split/kquucdzgqSjXMgOm/images/moengage_aafa31.png?fit=max&auto=format&n=kquucdzgqSjXMgOm&q=85&s=7faddd6d502683f8de899fedffa9c833" style={{ display: 'inline-block', width: '32px' }} width="64" height="60" data-path="images/moengage_aafa31.png" /> icon and choosing the background color of your choice.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
    | Popup positioning                             | This option lets you move the popup bidirectionally. To move the popup through the length of the page, click the <img alt="MoveHorizontally.png" src="https://mintcdn.com/moengage-unity-sdk-initialization-split/KccnxMUofDI2ra9J/images/moengage_b963ed.png?fit=max&auto=format&n=KccnxMUofDI2ra9J&q=85&s=b53030cc017edb391cced242f40e127b" style={{ display: 'inline-block', width: '32px' }} width="54" height="50" data-path="images/moengage_b963ed.png" /> icon and position the popup at the top, middle, or bottom of the webpage. To move the popup through the width of the page, click the <img alt="MoveVertically.png" src="https://mintcdn.com/moengage-unity-sdk-initialization-split/kquucdzgqSjXMgOm/images/moengage_a982c9.png?fit=max&auto=format&n=kquucdzgqSjXMgOm&q=85&s=d598fc0d685d4f29617e77563d0be956" style={{ display: 'inline-block', width: '32px' }} width="64" height="50" data-path="images/moengage_a982c9.png" /> icon and position the popup to the left, center, or right end of the website. |
    | Customizing the width and height of the popup | This option lets you specify the width and height of the popup. To do so, click the <img alt="Settings__1_.png" src="https://mintcdn.com/moengage-unity-sdk-initialization-split/G7H0GfgfjCPh_kkw/images/moengage_5e5233.png?fit=max&auto=format&n=G7H0GfgfjCPh_kkw&q=85&s=c9b7c7695e21d10e1578e1a58bb33fff" style={{ display: 'inline-block', width: '32px' }} width="50" height="62" data-path="images/moengage_5e5233.png" /> icon, and specify the width and height.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
    | Adding CSS options to the popup               | This option lets you add a custom CSS to add customized styling options for your message. To do so, click the <img alt="Settings__1_.png" src="https://mintcdn.com/moengage-unity-sdk-initialization-split/G7H0GfgfjCPh_kkw/images/moengage_5e5233.png?fit=max&auto=format&n=G7H0GfgfjCPh_kkw&q=85&s=c9b7c7695e21d10e1578e1a58bb33fff" style={{ display: 'inline-block', width: '32px' }} width="50" height="62" data-path="images/moengage_5e5233.png" /> icon, and click the <img alt="Styling.png" src="https://mintcdn.com/moengage-unity-sdk-initialization-split/mKv_oylg_NNQ7Lsq/images/moengage_30a7d6.png?fit=max&auto=format&n=mKv_oylg_NNQ7Lsq&q=85&s=f55c14a198496c921c1e61f40afbf5ab" style={{ display: 'inline-block', width: '32px' }} width="164" height="66" data-path="images/moengage_30a7d6.png" /> icon to add the CSS code and custom attributes.                                                                                                                                                            |

    <img src="https://mintcdn.com/moengage-unity-sdk-initialization-split/7I6Q9SBGr41ReRTp/images/moengage_b79ebb.png?s=e91c10a54cc78ab5455669a2fbeac12f" alt="EditingStylingOptions.gif" width="1440" height="726" data-path="images/moengage_b79ebb.png" />

    * **Preview Options -** Click the  <img alt="PreviewOptions.png" src="https://mintcdn.com/moengage-unity-sdk-initialization-split/x_1J63SbC40L-eCI/images/moengage_4e69ca.png?fit=max&auto=format&n=x_1J63SbC40L-eCI&q=85&s=8b5c9059c5ec794a03bbf439de90ecd1" style={{ display: 'inline-block', width: '32px' }} width="78" height="70" data-path="images/moengage_4e69ca.png" />  icon on the left panel to preview the template. There are three preview options:
      * **Desktop** - This option shows you how the template will look on a website opened in a desktop browser.
      * **Tablet** -  This option shows you how the template will look on a website opened in a tablet browser.
      * **Mobile**  - This option shows you how the template will look on a website opened in a mobile browser.
  </Tab>

  <Tab title="Create content using the old editor">
    You can create your on-site message from the available templates. For more information, refer to [On-site Messaging Templates(old editor)](/user-guide/campaigns-and-channels/on-site-message/create/osm-templates-html-editor).

    <img src="https://mintcdn.com/moengage-unity-sdk-initialization-split/z3l2URE0K8oVtPU3/images/moengage_f95aae.png?fit=max&auto=format&n=z3l2URE0K8oVtPU3&q=85&s=7aebd62c9e78c1c1e909af17a35c1f5a" alt="OSM_Templates.png" width="2854" height="2890" data-path="images/moengage_f95aae.png" />
  </Tab>
</Tabs>

### Display Settings

The following options are available:

| Display Setting                                                            | Template Type               | Description                                                                                                                                                                                                                                                      |
| -------------------------------------------------------------------------- | --------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| *Show this campaign if other campaign is already displayed on the webpage* | Popups, Nudges, and Banners | This checkbox, when checked, lets you show this OSM campaign even if another OSM has already been displayed on the page. Note: For this to work, the campaign events that trigger the OSMs should be different.                                                  |
| *Push the contents of the page down*                                       | Banner                      | This checkbox, when checked, allows the banner to occupy the space at the top of the website without overlapping with the website's content. For this to work, the banner chosen should be positioned at the top, and the website's headers shouldn't be sticky. |

<Accordion title="Test Campaign (Optional)">
  Test campaigns enable previewing the campaign on a test URL to ensure that your on-site message is conveyed in the manner that you desire. You can test the campaign you created by entering a test URL. Click *Test* to display the on-site message on the URL. For more information, refer to [Testing your OSM campaign](/user-guide/campaigns-and-channels/on-site-message/create/testing-your-on-site-messaging-campaigns).

  <img src="https://mintcdn.com/moengage-unity-sdk-initialization-split/-e4tuuxPyRwoC6Pk/images/moengage_82a013.png?fit=max&auto=format&n=-e4tuuxPyRwoC6Pk&q=85&s=44cd5ffec105f5d03b525ed93bee057e" alt="OSM_TestCampaigns.png" width="1636" height="240" data-path="images/moengage_82a013.png" />
</Accordion>

## Step 3: Scheduling and Goals

This section contains the following:

* [Delivery Schedule](#delivery-schedule) - Choose when the campaign should be delivered to your users.
* [Conversion Goals](#conversion-goals) - Choose the conversion goals and revenue metrics to be tracked for the campaign.
* [Campaign Priority and Delivery Controls](#campaign-priority-and-delivery-controls)- Choose the priority of the campaign and choose the global and local delivery control options, such as auto dismiss, the minimum delay between notifications, and the frequency of messages to be shown.

### **Delivery Schedule**

The following delivery schedule options are available for OSM Campaigns:

<Tabs>
  <Tab title="One Time">
    Choose this option to send the campaign immediately or at a specified time to the target users.

    | Field                             | Action                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
    | --------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
    | **As soon as possible**           | Send the campaign immediately to the target users. The following options are available: <ul><li>**Ends** - the time at which the campaign should end. There are two options here: *Never* and *Ends On*. The *Never* option can be used for campaigns that need to be run on a periodic basis for the foreseeable future. For campaigns that have an end date, you can use the *Ends On* option and specify the *End Date* and *End Time*.</li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                  |
    | **At a particular date and time** | Send the campaign at the specified time, time zone, or predicted time. This section helps you send the campaign on a specific date and time and contains the following fields: <ul><li>**Campaign timezone** - the timezone in which the campaign should be sent.</li><li>**Start Date** - the date on which the campaign should be sent.</li><li>**Send Time** - the time at which the campaign should be sent. Select am or pm depending on when the time of day at which the campaign should be sent.</li><li>**Ends** - the time at which the campaign should end. There are two options here: *Never* and *Ends On*. The *Never* option can be used for campaigns that need to be run on a periodic basis for the foreseeable future. For campaigns that have an end date, you can use the *Ends On* option and specify the *End Date* and *End Time*.</li></ul> |

    <img src="https://mintcdn.com/moengage-unity-sdk-initialization-split/QmWc4jzcdR8vL8D6/images/moengage_cb0891.png?s=88419e8ecc3908a697b58d5d80919d97" alt="OSM_Create_OneTime.gif" width="1440" height="674" data-path="images/moengage_cb0891.png" />
  </Tab>

  <Tab title="Periodic">
    Choose this option to send the campaign periodically on a specified date and time. The following fields are available in this section:

    * **Campaign time zone**: the timezone in which the campaign should be sent.
    * **Start date**: the date on which the campaign should be sent.
    * **Send time**: the time at which the campaign should be sent. Select am or pm depending on the time of day at which the campaign should be sent.
    * **Periodic**: the periodicity of the campaign. You can choose from the following options available on the left of the screen:
      | Periodicity | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
      | ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
      | Daily       | **Repeat every**: This option allows you to specify the number of days after which the campaign should be repeated.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
      | Weekly      | **Repeat every**: This option allows you to specify the number of weeks for which the campaign should be repeated.  <br />**Repeat on**: This option allows you to specify the day(s) of the week on which the campaign should be sent (For example, if you wish to send the campaign every Monday, Wednesday, and Friday, select these days in this option).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
      | Monthly     | **Repeat every**: This option allows you to specify the number of months for which the campaign should be repeated.  <br />**Repeat on**: This option allows you to do the following: <ul><li>Days of month: Choose this option for repeating campaigns that are date-specific. Select the date(s) of the month the campaign should be sent (For example, to send the campaign on the 5th and the 25th of a month, select the 5th and 25th in the calendar widget.). **Note**: If the selected date(s) does not exist in the month specified (as it is a shorter month), a campaign will be sent on the last date. (For example, if the 30th and 31st are selected and the month is February, one campaign would be sent on the 28th).</li><li>Days of week: Choose this option to specify the day(s) of the week on which the campaign should be sent (For example, if you wish to send the campaign every Monday, Wednesday, and Friday, select these days in this option). **Note**: In case of a day of the week not existing in a month (for example, fifth Saturday), the campaign would be skipped for that instance. And in case of overlap (for example, 4th Monday and last Monday), only one instance would be sent.</li></ul> |
    * **Ends:** the date on which the campaign should end. The following options are available:
      * **Never**: the campaign runs daily.
      * **On**: the campaign ends on the end date specified in the **End Date** field.
    * **Campaign active window**: the time duration for which the campaign will be active for the set periodicity. For example, if the campaign were to be shown to the user daily, the campaign active window setting determines the time interval during the day the campaign will be active. If this interval were set between 6 PM and 8 PM for a campaign with daily periodicity, the campaign will be shown every day to users from 6 - 8 PM. If the campaign were active twice a week, the campaign active window setting determines the time duration when the campaign will be shown to the user during the days on which the campaign would be active. The following fields are available to set the campaign active window:
      * **Start time**: the time at which the campaign will be triggered for the user.
      * **End time**: the time duration post which the campaign will not be shown to the user irrespective of whether the campaign is set to be active on the specifed day.

            <img src="https://mintcdn.com/moengage-unity-sdk-initialization-split/3RCm-fOSF5OxF29N/images/moengage_64f362.png?s=3c6c1ffb16c3552045890be8e244192a" alt="OSM_PeriodicOptions_Create.gif" width="1440" height="670" data-path="images/moengage_64f362.png" />
  </Tab>
</Tabs>

### Conversion Goals

You can add conversion goals to track the business metrics for your campaigns. You can track up to five conversion goals. You can choose any app event as a conversion goal activity and set more than one conversion goal. The first goal will be treated as a primary goal.

For example, if you want to track the number of customers who've purchased an iPhone after your campaign was sent. (Event - purchase event, Product - iPhone). Your conversion goal set-up might look similar to the image shown below with the following details:

* **Goal Name** - *iPhonePurchase*
* **App Event you wish to track** - *Made Purchase*
* **Event Attribute/Property** - *product* is *event attribute/property*
* **Value of Event Attribute/Property** - *iPhone*

<img src="https://mintcdn.com/moengage-unity-sdk-initialization-split/W7uRAsIMAbhvTpo6/images/moengage_04fdea.png?fit=max&auto=format&n=W7uRAsIMAbhvTpo6&q=85&s=85236ade82a3e2e8b50ef864fe3652ae" alt="ConVErsionGoals.png" width="664" height="233" data-path="images/moengage_04fdea.png" />

With multiple conversion goals, you can track more than one business metric or visualize a funnel for your user actions. For example, if you want to check the following, you can do so with multiple conversion goals.

* How many users have viewed the product page?
* How many of them added that product to the cart?
* How many of them made a successful order?

<Accordion title="Tracking Revenue Performance (Optional)">
  With MoEngage, you can track the revenue generated by your campaigns. For example, you can track the revenue generated by your product after sending a communication. To track revenue performance, enable the *Revenue Performance* toggle for the conversion goal for which you want to track the revenue.

  |                                                                                                                                                                                                                                                                                                                                                                                                      |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
  | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | In the example here, to track revenue for **\_orderSuccessful \_**events, the *Revenue performance* toggle needs to be enabled. After choosing the goal, you can select the numeric attribute that captures the order's total monetary value. In the example below, ***cartValue*** contains the total order value. You can also choose the currency in which your monetary value is being reported. | <img alt="TrackingRevenuePerformance.png" src="https://mintcdn.com/moengage-unity-sdk-initialization-split/lyl829Ibss13DAHw/images/moengage_1f1826.png?fit=max&auto=format&n=lyl829Ibss13DAHw&q=85&s=6e00dd62107488226c995082561c97ee" width="382" height="201" data-path="images/moengage_1f1826.png" /> |

  |                                                                                                                                                                                                                                                                       |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
  | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | After you choose the goal, you can choose the numeric attribute that captures the total monetary value of the order. In the example, ***cartValue*** contains the total order value. You can also choose the currency in which your monetary value is being reported. | <img alt="RevenuePerformance.png" src="https://mintcdn.com/moengage-unity-sdk-initialization-split/iLc38Cclwkvn6zmu/images/moengage_569bbf.png?fit=max&auto=format&n=iLc38Cclwkvn6zmu&q=85&s=5b4e76e84c12e56cacd6ba5fdfbacc6a" width="369" height="87" data-path="images/moengage_569bbf.png" /> |

  |                                                                                                                                                                                                                                                                                                                            |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
  | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | **Set Attribution window** - You can set an attribution window ( a time period or window calculated from the time the user has received the campaign for which you want to attribute the conversion goals to a specific campaign.) As a default, it is set for 36 hours. Say, for the example above, we set it to 5 hours. | <img alt="AttributionWindow.png" src="https://mintcdn.com/moengage-unity-sdk-initialization-split/kquucdzgqSjXMgOm/images/moengage_a94a46.png?fit=max&auto=format&n=kquucdzgqSjXMgOm&q=85&s=4a52bc318a1762ceb6e618ccd69de953" width="812" height="168" data-path="images/moengage_a94a46.png" /> |
</Accordion>

### **Campaign Priority and Delivery Controls**

This section contains the following options:

* **Campaign Priority** - Set one of the following campaign priorities: Critical, High, Medium, Normal, and Low. The campaign with the higher priority will be shown when a user is eligible to see two campaigns at the same time. In case both campaigns are of the same priority, the campaign created recently will be shown first.
* **Global Delivery Control** - This section lets you specify if you can *Ignore global minimum delay* set for the On-site messaging channel. Enable this toggle to ignore the settings for the minimum delay set for on-site messages.
  <Frame>
    <img src="https://mintcdn.com/moengage-unity-sdk-initialization-split/AMr68_9iVUeBc4Kg/images/FC-osm.png?fit=max&auto=format&n=AMr68_9iVUeBc4Kg&q=85&s=180028440485d8ec1cedff33cf0323ec" alt="FC Osm" width="3148" height="358" data-path="images/FC-osm.png" />
  </Frame>
* **Local Delivery Controls** - This section contains options that let you specify the delivery controls that pertain to this campaign. The following options are available here:
  * **Maximum times to show a message** - lets you specify the maximum number of times to show the on-site message from the same campaign for a user. This is tracked using the **On-site Message Shown** event in the User Profile. For example, if the maximum times to show a message is turned off initially when the campaign is published and later edited to one time. If a user was shown the message already before editing the campaign and the user visits the site again, they will not be shown the message again as the **On-site Message Shown** would be available in their User Profile already and the message will not be shown to them again.
  * **Minimum delay between 2 messages on this campaign** - lets you specify the minimum time gap between two on-site messages from the same campaign.
  * **Auto dismiss message after 'x' seconds** - lets you specify the time after which the on-site message will be removed from the URL. <img src="https://mintcdn.com/moengage-unity-sdk-initialization-split/z3l2URE0K8oVtPU3/images/moengage_f91d85.png?fit=max&auto=format&n=z3l2URE0K8oVtPU3&q=85&s=f95eb78c1acf85d8128e7dff7f6b4ad0" alt="Priority_and_Delivery_Controls.png" width="1176" height="840" data-path="images/moengage_f91d85.png" />

Your campaign is now ready to be sent. Click Publish and confirm in the dialog box that opens up to create the campaign.

Once the campaign has been created successfully, the Campaign Info page will be displayed.

# FAQs

## How to use a custom font in the OSM editor?

Integrating custom fonts into your OSM templates can enhance the visual appeal and maintain brand consistency across your campaigns. Follow these steps to use custom fonts in your templates:

#### **1. Host Your Font File**

Ensure that your custom font file is hosted on a secure domain or a publicly accessible URL. For example: `https://yourdomain.com/fonts/yourfont.ttf`

For demonstration purposes, you can use the following Roboto font link: `https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu5mxKKTU1Kvnz.woff2`

Clicking the URL should start a download, confirming the font file is correctly hosted.

#### **2. Prepare Your Template**

Select the template you want to customize within OSM Pro.

<img src="https://mintcdn.com/moengage-unity-sdk-initialization-split/lyl829Ibss13DAHw/images/moengage_20f40e.png?fit=max&auto=format&n=lyl829Ibss13DAHw&q=85&s=91e00518e46291f3f9a37973df0603b1" alt="select template.png" width="2770" height="1540" data-path="images/moengage_20f40e.png" />

#### **3. Modify Text Settings**

Click on the text element intended for the custom font:

* Click the settings icon, then select the styling icon. <img src="https://mintcdn.com/moengage-unity-sdk-initialization-split/u1LnHMqsoAv32rTJ/images/moengage_dbaa71.png?fit=max&auto=format&n=u1LnHMqsoAv32rTJ&q=85&s=fff55d2248eb75f21932e82b7f7d30d2" alt="click on settings.png" width="2726" height="1406" data-path="images/moengage_dbaa71.png" />
* Switch to the 'Advanced' tab. <img src="https://mintcdn.com/moengage-unity-sdk-initialization-split/nKy6ENocJM-Neco8/images/moengage_bdb919.png?fit=max&auto=format&n=nKy6ENocJM-Neco8&q=85&s=4e9a3946f0c199d0955b352f0a0c4586" alt="switch to advanced tab.png" width="2760" height="1506" data-path="images/moengage_bdb919.png" />
* In the 'CSS Id' field, enter a unique identifier, such as `text_id1`. <img src="https://mintcdn.com/moengage-unity-sdk-initialization-split/WCD9PHM9QZsnxcgC/images/moengage_e68c2f.png?fit=max&auto=format&n=WCD9PHM9QZsnxcgC&q=85&s=5be68752658c163d88033751b257f98f" alt="add identifier.png" width="1386" height="938" data-path="images/moengage_e68c2f.png" />

Close the settings menu after adding the identifier.

#### **4. Add an Embed Element**

Insert an embed element into your template. Note that this embed element will not be visible to the user and we will use it to only modify the font style within the template.

<img src="https://mintcdn.com/moengage-unity-sdk-initialization-split/mKv_oylg_NNQ7Lsq/images/moengage_319050.png?fit=max&auto=format&n=mKv_oylg_NNQ7Lsq&q=85&s=8c431b20ef3fae0e558b8b33a4a60a5a" alt="embed element.png" width="2760" height="1432" data-path="images/moengage_319050.png" />

#### **5. Insert Custom Font Code**

Click on the previously added embed element and input the following CSS:

HTML

```html wrap theme={null}
<style type="text/css">
 @font-face {
  font-family: 'customfont';
  src: url('https://yourdomain.com/fonts/yourfont.ttf'); /* Your font URL */
 }
 #text_id1 p {
  font-family: 'customfont' !important;
 }
</style>
```

This code imports your custom font and applies it to paragraphs within the element with ID `text_id1.`

#### **6. Customize Additional Elements**

To change the font for other elements, such as buttons:

* Assign a unique ID to the button as we did above for the text element, for example, `button_id1`.
  <Frame>
    <img src="https://mintcdn.com/moengage-unity-sdk-initialization-split/h9TDwxa3nSEqxALI/images/change-button-identifier.png?fit=max&auto=format&n=h9TDwxa3nSEqxALI&q=85&s=e39c9f79022ef5ec48d3f80b4c9a9c28" alt="Change Button Identifier" width="1718" height="1124" data-path="images/change-button-identifier.png" />
  </Frame>
* Modify the CSS code to include the button ID:

<CodeGroup>
  ```html HTML wrap theme={null}
  <style type="text/css">
  @font-face {
  font-family: 'customfont';
  src: url('https://yourdomain.com/fonts/yourfont.ttf');
  }
  #text_id1 p, #button_id1 span {
  font-family: 'customfont' !important;
  }
  </style>
  ```
</CodeGroup>

This CSS code defines a custom font named 'customfont' that is loaded from a specified URL, and applies it to text within elements identified by `#text_id1` and `#button_id1`, ensuring the custom font is used regardless of other styles.

<Frame>
  <img src="https://mintcdn.com/moengage-unity-sdk-initialization-split/h9TDwxa3nSEqxALI/images/button-code.png?fit=max&auto=format&n=h9TDwxa3nSEqxALI&q=85&s=0898455cd85f8f3970812a25b89c4c51" alt="Button Code" width="2758" height="1448" data-path="images/button-code.png" />
</Frame>

#### **7. Preview and Publish**

After adding the CSS, preview your template to confirm that the font displays correctly. Once verified, you can publish your campaign.

<img src="https://mintcdn.com/moengage-unity-sdk-initialization-split/lyl829Ibss13DAHw/images/moengage_1f3a3b.png?fit=max&auto=format&n=lyl829Ibss13DAHw&q=85&s=9635f6694dee51aa97a04e67589a1f58" alt="Updated template.png" width="1496" height="1300" data-path="images/moengage_1f3a3b.png" />

# Next Steps

* [View OSM Campaign Analytics](/user-guide/campaigns-and-channels/on-site-message/analyze/analyze-on-site-messaging-campaigns)
