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

# How to Configure Different Pop-Up Messages Based on Location

# Introduction

Localized In-app pop-up messages effectively deliver targeted content and offers to users based on their geographical location. By leveraging the *localized In-app pop-up* feature, you can enhance user engagement and user experience by showing relevant information that resonates with their specific locale. This use case details how to create these pop-ups to provide a more personalized experience for your users.

In this article, we will create an in-app campaign that promotes special offers to users in different regions, such as the USA, Germany, and India, right after they add an item to their cart. Each region will have customized content and offers that are automatically displayed to the respective users.

# Expected results

Users will see pop-up messages customized to their location, providing them with relevant information, offers, or promotions tailored to their specific locale. This increases the relevance of the messages and enhances user engagement.

<Tabs>
  <Tab title="USA locale In-app">
    <img src="https://mintcdn.com/moengage/o0kXRAcOq2mxzDnY/images/moengage_ef6f03.png?fit=max&auto=format&n=o0kXRAcOq2mxzDnY&q=85&s=6160f3de220cae6526ca5bd3144490ec" alt="Screenshot 2024-08-05 at 9.18.39 AM.png" style={{ width:"44%" }} width="740" height="1278" data-path="images/moengage_ef6f03.png" />
  </Tab>

  <Tab title="India locale In-app">
    <img src="https://mintcdn.com/moengage/t9nft78wsoLTI2Nx/images/moengage_28aaa9.png?fit=max&auto=format&n=t9nft78wsoLTI2Nx&q=85&s=232c62bd76eee5233d95720fc4ae39c4" alt="Screenshot 2024-08-05 at 9.18.49 AM.png" style={{ width:"46%" }} width="702" height="1276" data-path="images/moengage_28aaa9.png" />
  </Tab>

  <Tab title="Germany locale In-app">
    <img src="https://mintcdn.com/moengage/MkyldVVKHHCZ-kMR/images/moengage_aff66e.png?fit=max&auto=format&n=MkyldVVKHHCZ-kMR&q=85&s=4eda9efa1031c6d82e0f097e38ab50ee" alt="Screenshot 2024-08-05 at 9.18.02 AM.png" style={{ width:"44%" }} width="722" height="1304" data-path="images/moengage_aff66e.png" />
  </Tab>
</Tabs>

<Tip>
  Integration of the MoEngage Android SDK or iOS SDK with your app. For more information, refer to the [Developer Guide](/docs/developer-guide/introduction).
</Tip>

# Create an In-App Campaign

In this section, let us create an In-app campaign to promote targeted content and offers to users based on their geographical location.

## Step 1: Target users

1. Navigate to the sidebar on the left and click **Engage** > **Campaigns** and click **+ Create campaign**, or click **+ Create new**> **Campaign**.
2. Under **Inbound**, click **In-app**. <img src="https://mintcdn.com/moengage/50ZszvUJB4M_6y_L/images/moengage_e6c303.png?fit=max&auto=format&n=50ZszvUJB4M_6y_L&q=85&s=02d2495db7cf9e8d9ede12d19a85b919" alt="In-app.png" width="1528" height="1306" data-path="images/moengage_e6c303.png" /> \
   You are taken to the first step "Target users" of defining your campaign.
3. Enter the following details:
   * **Campaign name**: Enter a name for the campaign. For example, "Location based In-app pop-up messages".
   * **Campaign tags**: Select the relevant campaign tags.
4. In the **Trigger Criteria** section, select **On app open**. <img src="https://mintcdn.com/moengage/Vec55CKt-wYQ1h5L/images/moengage_42e8d4.png?fit=max&auto=format&n=Vec55CKt-wYQ1h5L&q=85&s=164ea685144ad832b86c72ec5ff58362" alt="image-20240121-050504.png" width="2730" height="898" data-path="images/moengage_42e8d4.png" />
5. In the **Select trigger time** section, select **Immediately** to send the message immediately.
6. In the **Target Audience** section, create segments based on user locations. You can use user attributes or location-based targeting provided by MoEngage.
   * Example segments:
     * Users in the USA
     * Users in Germany
     * Users in India <img src="https://mintcdn.com/moengage/Ci8j4F7VOEUnUuwd/images/moengage_eb959e.png?fit=max&auto=format&n=Ci8j4F7VOEUnUuwd&q=85&s=b22e1001b5923af34bf54e51cce62049" alt="Screenshot 2024-08-05 at 9.01.49 AM.png" width="2718" height="1114" data-path="images/moengage_eb959e.png" />
   * Exclude users who have recently dismissed similar pop-up messages.
7. Click **Next** to move to the second step, "Content," where you can define the content for your campaign.

## Step 2: Content

MoEngage In-app campaign offers a variety of templates for all your use cases. It also provides the option to start from scratch.

1. Select the template you want to show the user. You can select any in-app message template to design the pop-up. We will select the **Nudge- Image & text** template for this use case. You can customize it using the **Template Settings** page.

<img src="https://mintcdn.com/moengage/37Js42lPMANg-cwG/images/moengage_ff52a1.png?fit=max&auto=format&n=37Js42lPMANg-cwG&q=85&s=a8d525f1fdb4773e8dbb99b4a2b32475" alt="Screenshot 2024-08-05 at 9.03.34 AM.png" style={{ width:"61%" }} width="552" height="614" data-path="images/moengage_ff52a1.png" />

2. Click **+ Locale**, and then click **+ New locale** to add new locales.
3. Create three different locales for USA, Germany, and India.
   * For these locales, the last known country will be USA, Germany, and India. <img src="https://mintcdn.com/moengage/xjBZUVmmH3jDrySH/images/moengage_c39c38.png?fit=max&auto=format&n=xjBZUVmmH3jDrySH&q=85&s=de163f66f54134521a189b91378d255e" alt="Screenshot 2024-08-05 at 9.12.45 AM.png" width="2478" height="1094" data-path="images/moengage_c39c38.png" />
4. Design the pop-up messages for each locale by performing the following steps:
   * **USA locale:**
     * **Title**: "You Just Added to Cart!"
     * **Description**: "Complete your purchase now and enjoy a 20% discount on all products. This is a limited-time offer!"
     * **Visual Elements:** Include images relevant to the US market, such as popular products or festive themes.
   * **Germany locale:**
     * **Title**: "You Just Added to Cart!"
     * **Description**: "Schließen Sie jetzt Ihren Einkauf ab und erhalten Sie 15% Rabatt auf alle Produkte. Nur für kurze Zeit!"
     * **Visual Elements:** Include images relevant to the German market, such as popular products or local festive themes.
   * **India locale:**
     1. **Title**: "You Just Added to Cart!"
     2. **Description**: "Complete your purchase now and get a 10% discount on select items. This offer is valid for a limited period!"
     3. **Visual Elements:** Include images relevant to the Indian market, such as popular products or local festive themes.
        <iframe src="https://www.youtube.com/embed/CT7UoxbippI" title="YouTube video player" frameborder="0" className="w-full aspect-video rounded-xl" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen />
5. Click **Next** to move to the third step, "Schedule and goals," where you can define your campaign's schedule and goals.

## Step 3: Schedule and goals

Here, you can select the campaign schedule, add the conversion goal, choose the campaign's priority, and define custom delivery controls.

1. In the **Send campaign** section, define when you want to start and end your In-app campaign with the frequency and limits. <img alt="image-20240121-054649.png" src="https://mintcdn.com/moengage/H6NVBgn3z5fYOOBq/images/moengage_7bde1e.png?fit=max&auto=format&n=H6NVBgn3z5fYOOBq&q=85&s=3da7ec6afebf0fa668b02cbff1660208" width="2742" height="996" data-path="images/moengage_7bde1e.png" />
2. In the **Conversion Goals** section, add conversion goals that you would like to track.
3. In the **Campaign priority** section, assign a priority to this campaign. Assigning a priority helps you decide which In-app message to be shown to a user when they are eligible for more than one message at a specific time. For example, selecting **Critical** makes sure that the users will always see this even when there are other campaigns that they are eligible for.
4. In the **Delivery controls** section, define the controls based on your requirements. For more information, refer to [Create In-app Campaign](/docs/user-guide/campaigns-and-channels/in-app-message/create/create-in-app-campaign).  <img alt="image-20240121-054810.png" src="https://mintcdn.com/moengage/H6NVBgn3z5fYOOBq/images/moengage_7b1ae8.png?fit=max&auto=format&n=H6NVBgn3z5fYOOBq&q=85&s=58f4b4960a5fb154a57c825347360dc4" width="2744" height="636" data-path="images/moengage_7b1ae8.png" />
5. Click **Publish**.

# Conclusion

In this use case, we created an In-app campaign to deliver targeted content and offers to users based on their geographical location.

This automated campaign will help you promote tailored information or promotional content to your users based on their geographical location. This approach helps to improve user engagement and enhance the overall user experience by providing customized services to the users.

Now that we have published the campaign, we can track our CTR and conversions (if defined) to understand how well the campaign is performing. For more information, refer to [In-app Campaign Analytics](/docs/user-guide/campaigns-and-channels/in-app-message/analyze/analyze-in-app-campaigns).
