> ## 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.

# FAQs about Subscription Analytics

> Get answers to common questions about SMS subscription analytics in MoEngage, including tracking opt-ins, opt-outs, and keyword-based user responses.

In this article, we've covered frequently asked questions about SMS Subscription Management.

# How do I get the number of opt-ins and opt-outs over time?

The number of opt-ins/opt-outs can be obtained using the *SMS Keyword Received* Event. This event gets triggered when a user responds to an auto-responder message with any of the keywords configured in any of the keyword categories.

Depending on the keyword category (represented by the *keyword\_type* event attribute) that the user response falls in, the user is opted in or opted out. Their subscription status is updated in the *SMS Subscription Status* user property. This event and its attribute can be used to calculate the number of opt-ins and opt-outs, as shown below.

<Tabs>
  <Tab title="Opt-ins over time">
    To get the number of opt-ins over time, do the following:

    1. Navigate to Analyze -> Behavior -> Events & Filters section and choose the event as *SMS Keyword Received*.

    2. Choose the Filter by condition as *Keyword Type is OPTIN,* as shown in the image below.

           <img src="https://mintcdn.com/moengage/fQ0QnP2abFkVAzJ2/images/moengage_4e68ba.png?fit=max&auto=format&n=fQ0QnP2abFkVAzJ2&q=85&s=27f54dcb3fdda356702b8c4ae59584aa" alt="Optin_Filter.png" width="1577" height="780" data-path="images/moengage_4e68ba.png" />

    3. Click on Apply. The opt-in statistics are displayed in the behavior chart, as shown in the image below.

           <img src="https://mintcdn.com/moengage/xeb_76Bworf1GG6P/images/moengage_970915.png?fit=max&auto=format&n=xeb_76Bworf1GG6P&q=85&s=3a9263ebcf6fb462a4450a5dd07b051b" alt="OPTINs_Over_Time.png" width="2418" height="998" data-path="images/moengage_970915.png" />
  </Tab>

  <Tab title="Opt-outs over time">
    To get the number of opt-outs over time, do the following:

    1. Navigate to Analyze -> Behavior -> Events & Filters section and choose the event as *SMS Keyword Received*.

    2. Choose the Filter by condition as *Keyword Type is OPTOUT*, as shown in the image below.

           <img src="https://mintcdn.com/moengage/2FjM3dGfEH1CYo8k/images/moengage_6661b6.png?fit=max&auto=format&n=2FjM3dGfEH1CYo8k&q=85&s=8357d03e54806c7dacf92d5ce4c4ce66" alt="Optput_Filter.png" width="1460" height="788" data-path="images/moengage_6661b6.png" />

    3. Click on Apply. The opt-out statistics are displayed in the behavior chart, as shown in the image below.

           <img src="https://mintcdn.com/moengage/MkyldVVKHHCZ-kMR/images/moengage_afec02.png?fit=max&auto=format&n=MkyldVVKHHCZ-kMR&q=85&s=1ba74a193e090c75a7b73ece4d49d18f" alt="OPTOUTs_over_time.png" width="2418" height="977" data-path="images/moengage_afec02.png" />
  </Tab>
</Tabs>

# How do I get the total number of active SMS subscribers?

The number of active SMS subscribers can be obtained by looking at the count of the number of users who have opted in. If a user has opted in, the SMS Subscription Status user property would be 'OPTIN' for them.

To get the total number of active SMS subscribers, do the following:

1. Navigate to **Segment** > **Create Segment** and select the **Filter Users by** option.
2. Select the **User Property** as the filter condition and select *SMS Subscription Status* is *OPTIN* as shown in the image below:

<img src="https://mintcdn.com/moengage/dLyLAwgfsm1v6_MY/images/moengage_850615.png?fit=max&auto=format&n=dLyLAwgfsm1v6_MY&q=85&s=c280702fdbee7695d879fd6b62634be0" alt="SMS_Subscription_Status.png" width="2420" height="783" data-path="images/moengage_850615.png" />

3. Click **Show count**, and you'll have the total number of active SMS subscribers.
