# Page views

Source: https://swapcard.dev/analytics-api/export/actions/page-views


Find the actions recorded when users view pages, search and filter lists, and watch session videos, and the fields each one returns.

Each action name below is a value of the `event` field in the [export response](../graphql-analytics-api-export.mdx#example-response). Pass it in the `events` filter to export only that action. **Body** lists the fields of the action's `body` object; which fields are set depends on the action. Actions labelled **Has recipient** also return the `with_*` fields of the exhibitor they target.

## Page views

<HttpParameters
title="Action"
params={[
  {
    "name": "event_show",
    "type": "string",
    "description": "When the user sees the event home."
  },
  {
    "name": "exhibitor_show",
    "type": "string",
    "description": "When the user sees the details of an exhibitor."
  },
  {
    "name": "person_show",
    "type": "string",
    "description": "When the user sees the details of an attendee."
  },
  {
    "name": "event_view_show",
    "type": "string",
    "description": "When the user sees any of the event content (event view)."
  },
  {
    "name": "sponsor_show",
    "type": "string",
    "description": "When the user clicks a sponsor."
  },
  {
    "name": "product_show",
    "type": "string",
    "description": "When the user sees the details of a product."
  },
  {
    "name": "document_open",
    "type": "string",
    "description": "When the user opens or downloads a document."
  },
  {
    "name": "exhibitor_self_show",
    "type": "string",
    "description": "When the user sees their own exhibitor main page in the exhibitor interface."
  },
  {
    "name": "event_advertisement_show",
    "type": "string",
    "description": "When the user sees an advertisement in the event details."
  },
  {
    "name": "event_advertisement_open",
    "type": "string",
    "description": "When the user clicks an advertisement in the event details."
  },
  {
    "name": "exhibitor_advertisement_show",
    "label": "Has recipient (with_exhibitor_ids)",
    "type": "string",
    "description": "When the user sees an advertisement in the exhibitor details."
  },
  {
    "name": "exhibitor_advertisement_open",
    "label": "Has recipient (with_exhibitor_ids)",
    "type": "string",
    "description": "When the user clicks an advertisement in the exhibitor details."
  }
]}
>
</HttpParameters>

<HttpParameters
title="Body"
params={[
  {
    "name": "advertisement_id",
    "type": "string",
    "description": "The ID of the associated advertisement."
  },
  {
    "name": "product_id",
    "type": "string",
    "description": "The ID of the associated product."
  },
  {
    "name": "event_view_id",
    "type": "string",
    "description": "The ID of the associated event view."
  },
  {
    "name": "sponsor_id",
    "type": "string",
    "description": "The ID of the associated sponsor."
  },
  {
    "name": "document_id",
    "type": "string",
    "description": "The ID of the associated document."
  },
]}
>
</HttpParameters>

## Searches and filters
<HttpParameters
title="Action"
params={[
  {
    "name": "people_view_search",
    "type": "string",
    "description": "When the user inputs a search in the people views."
  },
  {
    "name": "people_view_filter",
    "type": "string",
    "description": "When the user toggles a filter value in the people views."
  },
  {
    "name": "exhibitors_view_search",
    "type": "string",
    "description": "When the user inputs a search in the exhibitor views."
  },
  {
    "name": "exhibitors_view_filter",
    "type": "string",
    "description": "When the user toggles a filter value in the exhibitor views."
  },
  {
    "name": "products_view_search",
    "type": "string",
    "description": "When the user inputs a search in the product views."
  },
  {
    "name": "products_view_filter",
    "type": "string",
    "description": "When the user toggles a filter value in the product views."
  }
]}
>
</HttpParameters>

<HttpParameters
title="Body"
params={[
  {
    "name": "event_view_id",
    "type": "string",
    "description": "The ID of the view the search or filter was used in."
  },
  {
    "name": "query",
    "type": "string",
    "description": "The search text."
  },
]}
>
</HttpParameters>

## Session video streams
Sessions are called *plannings* in the API.

<HttpParameters
title="Action"
params={[
  {
    "name": "planning_stream_start",
    "type": "string",
    "description": "When the user starts or resumes a video in the session details."
  },
  {
    "name": "planning_stream_stop",
    "type": "string",
    "description": "When the user stops or pauses a video in the session details."
  },
]}
>
</HttpParameters>

<HttpParameters
title="Body"
params={[
  {
    "name": "planning_id",
    "type": "string",
    "description": "The ID of the session (planning) associated with the stream."
  },
  {
    "name": "duration",
    "type": "int",
    "description": "Duration in milliseconds."
  },
]}
>
</HttpParameters>
