# Page

**URL:** <https://forum.avicennaresearch.com/t/page/1242>\
**Category:** Reference\
**Created:** [June 16, 2025, 9:18am UTC](https://forum.avicennaresearch.com/t/page/1242 "2025-06-16T09:18:53Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![mojtaba](https://forum.avicennaresearch.com/letter_avatar_proxy/v4/letter/m/e56c9b/32.png) [@mojtaba](https://forum.avicennaresearch.com/u/mojtaba)\
**Post date:** [June 16, 2025, 9:18am UTC](https://forum.avicennaresearch.com/t/page/1242/1 "2025-06-16T09:18:53Z")

</div>

Page activity allows you to display an external web page within the Avicenna app. You can create the page using any tool you prefer, for example, blog platforms or a custom-coded site hosted on your server. The page can include any type of information you’d like to show your participants.

## Use Cases

Use Page activities to:

- Display instructions for the participants to follow.
- Display external dashboards or visual reports.

## Creating and Configuring a Page Activity

To create a Page activity in your study, follow these steps:

- **Go to the Activities page** in the researcher dashboard.
- **Click on** **[Create New Activity](https://forum.avicennaresearch.com/t/activities/1237#p-2864-accessing-activities-1)**, and then select **Page**.

After creating the activity, you’ll be taken to the Page activity editor. Here’s what you need to do:

- **Enter the URL** to be shown to participants. Note that the embedded page must have a public URL (e.g., [https://avicennaresearch.com](https://avicennaresearch.com)) and be hosted on a secure website, i.e., the URL should start with `https`.
- **Publish** to finalize the activity and test it in the Avicenna app.

 ![Page activity editor](https://forum.avicennaresearch.com/uploads/default/original/1X/f957f4448ffdba8108e96c5a822c05e7680e0d3d.png)

> [!info]  
> Page activities:
> 
> - **Support [Time](https://forum.avicennaresearch.com/t/triggering-logics/1238#p-2865-time-tl-5), [User](https://forum.avicennaresearch.com/t/triggering-logics/1238#p-2865-user-tl-4), and [Geofencing](https://forum.avicennaresearch.com/t/triggering-logics/1238#p-2865-geofencing-tl-30) triggering logics**. Proximity and Public triggering logics are available for surveys only.
> - **Create [sessions](https://forum.avicennaresearch.com/t/activity-sessions/1235/1)** like other activities, so you can set an **Expiry Time** in the activity settings and [release them manually](https://forum.avicennaresearch.com/t/triggering-logics/1238#p-2865-manually-triggering-an-activity-38) from the Activity Sessions page.
> - **Support [notification templates](https://forum.avicennaresearch.com/t/notifications/1277#p-2904-notification-templates-1)**.
> - **Allow defining [criteria](https://forum.avicennaresearch.com/t/criteria/1236/1)** (if necessary) at both the activity and triggering logic levels.

### Using Placeholders in URLs

You can use placeholders in the URL of a Page activity to show different web pages to different participants based on their context. The placeholders are replaced with the actual values when the participant opens the Page activity.

Currently, we support only one placeholder:

- **`{{participant_id}}`** : Replaced with the participant’s unique ID.

## On the Participant Side

In the Avicenna app, Page activities appear as buttons on the home screen, just like other activities. With a User triggering logic, participants always have access to the button to launch the activity and view the specified web page. With Time or Geofencing triggering logics, the page is prompted to participants as a session, like any other activity.

When a participant taps the button, the URL is opened **within the app** , not in an external browser.

To provide a seamless experience for participants, the Page activity viewer displays only minimal interface elements. This ensures that your embedded web page integrates smoothly with the Avicenna app and feels like an integral part of the main application. This allows you to extend the app’s functionality by adding dynamic content to it.

 ![](https://forum.avicennaresearch.com/uploads/default/original/1X/1aa9cd82d3426fa536d0929b3918dec24b5068d3.jpeg)
Homepage of the Avicenna app with a Page activity

 ![](https://forum.avicennaresearch.com/uploads/default/original/1X/5e54cbe2f04412e970169735e741d129e8ae6154.jpeg)
Avicenna app shows the specified URL to the participant

## Troubleshooting

### The page refuses to connect on the participant web app and Preview

This issue is often due to the **`X-Frame-Options`** header or **Content Security Policy (CSP)** settings on the web server hosting the page. Many websites set these security headers to prevent their content from being embedded in `iframe`s on other domains, which is how the Avicenna web app displays Page activities.

 ![Page activity refused to connect](https://forum.avicennaresearch.com/uploads/default/original/1X/95be569a1bc908a7f9cf1d25ff575003260010cb.png)

> [!info]
> 
> - In Chrome, for example, you might see an error message like: `www.example.com refused to connect`.
> - Other browsers may show similar messages.

To resolve these issues, modify your web server configuration to allow the web page to be embedded within the Avicenna app. Below are common solutions:

- **Option 1: X-Frame-Options Header (Deprecated)**

- **Option 2: Content Security Policy (Recommended)**

If you don’t have direct access to the server configuration, contact your web administrator or hosting provider for assistance in implementing these changes. We assume you are the page owner.

---

_[View the full topic](https://forum.avicennaresearch.com/t/page/1242)._
