# Analyze

{% hint style="success" %}
**Prerequisites for Event Tracking**

To see these events in the panel, you must first create a widget that **triggers** the event. Additionally, an actual user **event** must occur for the event to be recorded and reflected in the panel.
{% endhint %}

Follow these steps to track the basic events related to your mobile widgets:

1. **Navigate to Event Insight**
   * Go to Analysis > Event Insight.
2. **Choose Your Event Type**
   * Select either Widget Action or Shown Mobile Events based on what you want to track.
3. **Select the Dimensions**
   * Choose the dimensions that best fit your analysis needs (e.g., time, user type, device).

{% hint style="warning" %}
**Requirements:**

* **One image or one button**: Ensure that your widget includes only one image or button.
* **One link or deeplink**: The image or button should contain only one link or deeplink to track interactions properly.
  {% endhint %}

<figure><img src="https://1642824329-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX6uilbEAw42gqsudlclY%2Fuploads%2F7dsVwVrNVXVDRXxAtgYb%2FScreenshot%202025-02-18%20at%2013.41.19.png?alt=media&#x26;token=36e49603-2d50-4114-a386-c40bc9d51555" alt=""><figcaption></figcaption></figure>

### Widget Shown Mobile

This event occurs when a user sees the widget but does not interact with it (no clicks or navigations).

**How is this event triggered?**

* The user may have closed the widget by clicking the **(x)** button.
* The widget might have been dismissed by the user using a dismiss button that does not contain a link.

<figure><img src="https://1642824329-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX6uilbEAw42gqsudlclY%2Fuploads%2FZoB0pfELnfYqfnDoeCLu%2FScreenshot%202025-02-18%20at%2013.42.33.png?alt=media&#x26;token=a5007cd3-59ab-4587-8921-e461f0b981c6" alt=""><figcaption></figcaption></figure>

### Widget Action Mobile

This event is triggered when a user sees the widget and interacts with it by clicking on an image or button containing a link or deeplink.

**How is this event triggered?**

Interacting with the widget by clicking on an image or button that contains a link or deeplink. This could include various types of actions, such as:

* Clicking on a image that redirects to the product page.
* Clicking a button that opens a specific section within the app or website.
* Tapping a promotional button that takes the user to a special offer or coupon code.

<figure><img src="https://1642824329-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX6uilbEAw42gqsudlclY%2Fuploads%2FKJBvzeRTFes1nyGFKpgp%2FScreenshot%202025-02-18%20at%2013.44.49.png?alt=media&#x26;token=7c58d7a9-c023-4f71-aaca-126f6e7e8bff" alt=""><figcaption></figcaption></figure>

## <mark style="color:green;">Standard Spin to Win Events</mark>

{% hint style="success" %}
**Prerequisites for Event Tracking**

To see these events in the panel, you must first create a widget that **triggers** the event. Additionally, an actual user **event** must occur for the event to be recorded and reflected in the panel.
{% endhint %}

To track interactions with the **Spin to Win** widget, follow these steps:

1. Go to Analytics > Event Insight
2. Within the Event Insight dashboard, you'll find a list of events tracked by your system.

* **Spin To Win Shown**: This event tracks when the Spin to Win widget is displayed to the user.
* **Spin Button Clicked**: Triggered when the user clicks the **Spin** button to start the spin action.
* **Coupon Code Assigned**: Occurs when the user successfully receives a coupon code after spinning the wheel.
* **Coupon Code Assigned Failed**: Triggered if the coupon code assignment fails after the spin.
* **Coupon Code Copied**: Tracks when the user copies the coupon code after receiving it from the Spin to Win interaction.

<figure><img src="https://1642824329-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX6uilbEAw42gqsudlclY%2Fuploads%2FaCvRQzn9YKPfSdJ8OucE%2FScreenshot%202024-05-13%20at%2013.23.23.png?alt=media&#x26;token=25c80cc2-605d-423b-90ee-0d17c4e75f5e" alt=""><figcaption></figcaption></figure>

## <mark style="color:green;">Custom Events</mark>

For more advanced widgets, you might want to create custom events to track specific interactions. Here’s how to set it up:

#### Step 1: Create a New Custom Event

1. Go to Developers > Events.
2. Click Create New Event and customize it according to your needs.

#### Step 2: Match Events with Widget Components

1. Once the custom event is created, you need to link it with specific components within your widget (e.g., buttons, images).

For more detailed instructions, you can refer to related documentation [create-custom-events](https://user.netmera.com/netmera-user-guide/customer-data/events/create-custom-events "mention") and [assign-click-actions](https://user.netmera.com/netmera-user-guide/omnichannel-engagement/widgets/mobile-in-app/create/assign-click-actions "mention") or video tutorial below.

{% embed url="<https://youtu.be/7XIZGV0rj1I?si=yIgVUZFspgKh5sA8&t=130>" %}

#### Step 3: Analyze Custom Events

* After setting up your custom events, go to **Analysis** > **Event Insight** to view the results.
* Select the custom event and choose the dimensions that are relevant to your analysis.

<figure><img src="https://1642824329-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX6uilbEAw42gqsudlclY%2Fuploads%2Fe6tbVbbjOdTOmVYZY9HB%2FScreenshot%202025-02-18%20at%2014.10.25.png?alt=media&#x26;token=a46c035a-7afe-478d-9a4a-be6938cd358c" alt=""><figcaption></figcaption></figure>
