Source: https://nishanth-fern-test.docs-staging.pageloop.ai/analytics/how-can-i-view-user-engagement-for-multiple-links-within-a-pop-up

# How can I see the analytics of a Pop-up with multiple links using Trend Insights?

Whatfix enables you to add URLs to a Pop-up. For example, consider a Pop-up targeted at users to sign-up for an upcoming webinar: the Pop-up provides a link to the registration form added to a button, and a text hyperlink that redirects users to a detailed agenda for the webinar.

There are two methods to add URLs to Pop-ups:

**URL added to a button**

![popups two links click button](/images/22/Pop-ups-two-links_Button-22f93f90.png)

**URL added as a text hyperlink**

![popups two links click link](/images/6a/Pop-ups-two-links_Link-6aae2f6d.png)

Create Trend Insights in Product Analytics to track end-user engagement with links added to your Pop-ups.

> [!INFO]
>
> To understand how to create Trend Insights, see [Create Trend Insights](/analytics/create-trend-insights#steps-to-create-a-trend-insight).

The following table shows:

- The different scenarios for adding URLs to Pop-ups.
- The corresponding events used to analyze user engagement with the links in Trend Insights.

| Scenario                                                                                                                                                                                                 | Event                    | Event Breakdown      |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------ | -------------------- |
| Single URL added to a button. For more information, see [How can I see analytics of Pop-ups using Trend Insights?](/analytics/how-can-i-see-analytics-of-pop-ups-using-trend-insights)                   | URL Triggered via Pop-up | -                    |
| Single URL added as a text hyperlink. For more information, see [How can I see analytics of link content using Trend Insights?](/analytics/how-can-i-see-analytics-of-link-content-using-trend-insights) | Link opened              | -                    |
| Multiple URLs added to buttons                                                                                                                                                                           | URL Triggered via Pop-up | ctxinfo\_link\_click |
| Multiple URLs added as text hyperlinks                                                                                                                                                                   | Link opened              | ctxinfo\_link\_click |

> [!INFO]
>
> - For more information on events, see [List of Whatfix-related Events](/analytics/list-of-default-events).
> - For more information on Event breakdowns, see [Filter events using Event Filters and Breakdown in Trend Insights](/analytics/event-filters-and-breakdown-in-trend-insights).

## Analyze user engagement with each link in a Pop-up using Trend Insights

Expand the following accordions for more details:

### Scenario 1: Multiple URLs added to buttons

If your Pop-up includes two buttons, each containing one URL, add the **URL Triggered via Pop-up** event, and then add the **ctxinfo\_link\_click** Event breakdown.

![pop up with links in two buttons](/images/69/Pop-ups_Two-buttons-695f8e07.png)

Use the following data setup:

- **Choose metric**: Event metric
- **Event metric**: Total events
- **Guidance events**: URL Triggered via Pop-up
- **Breakdown**: ctxinfo\_link\_click

![Popups URL Trigger via Pop-up event at click level](/images/04/Popup_URL-Triggered_Link-04395880.png)

**Sample data:**

![URL triggered data](/images/41/URL-Trigger_Data-411d7319.png)

> [!INFO]
>
> - To add additional filters or breakdowns as required, see [Filter events using Event Filters and Breakdown in Trend Insights](/analytics/event-filters-and-breakdown-in-trend-insights).
> - To know more about Pop-up analytics, see [How can I see analytics of Pop-ups using Trend Insights?](/analytics/how-can-i-see-analytics-of-pop-ups-using-trend-insights)

### Scenario 2: Multiple URLs added as text hyperlinks

If your Pop-up includes two text links each containing one URL, add the **Link opened** event, and then add the **ctxinfo\_link\_click** event breakdown.

![popup with links in two hyperlinks](/images/70/Pop-ups_Two-links-7032ed2e.png)

Use the following data setup:

- **Choose metric**: Event metric
- **Event metrics**: Total events
- **Guidance events**: Link opened
- **Breakdown**: ctxinfo\_link\_click

![Popups Link opened event at click level](/images/20/Popup_Links_Link-20821cd8.png)

**Sample data:**

![Link opened data](/images/5f/Link-opened_data-5f76404b.png)

> [!INFO]
>
> - To add additional filters or breakdowns as required, see [Filter events using Event Filters and Breakdown in Trend Insights](/analytics/event-filters-and-breakdown-in-trend-insights).
> - To know more about link content analytics, see [How can I see analytics of link content using Trend Insights?](/analytics/how-can-i-see-analytics-of-link-content-using-trend-insights)

### Scenario 3: Multiple URLs added to a button and as a text hyperlink

If your Pop-up includes a button and a text link, each containing one URL, add the **Link opened** and **URL Triggered via Pop-up** events, and then add the **ctxinfo\_link\_click** event breakdown.

![popup with two links](/images/0a/Pop-ups-two-links-0af8fd4a.png)

Use the following data setup:

- **Choose metric**: Event metric
- **Event metrics**: Total events
- **Guidance events**: URL Triggered via Pop-up, Link opened
- **Breakdown**: ctxinfo\_link\_click

![Pop-ups with links in buttons and hyperlinks](/images/04/Pop-ups_URL-Triggered_Link-Opened_links-04e9b91b.png)

**Sample data:**

![link opened and URL trigger data](/images/05/Link-opened-and-URL-trigger_data-052e9736.png)

> [!INFO]
>
> To add additional filters or breakdowns as required, see [Filter events using Event Filters and Breakdown in Trend Insights](/analytics/event-filters-and-breakdown-in-trend-insights)

Trend Insights turns your engagement-related queries, such as the number of users who have completed Flows or the number of users who have clicked the button on your Pop-up, into actionable insights.
