> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pnplayer.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Analytics

> Use the Analytics dashboard to monitor video performance, track engagement, and generate reports.

<Card horizontal>
  <img src="https://mintcdn.com/pnplayer/pzhj2ZBPtmNBqWOg/images/Videoanalytics.png?fit=max&auto=format&n=pzhj2ZBPtmNBqWOg&q=85&s=848f2debdc5e95d6ce62103a643e974f" style={{ borderRadius: "8px", marginTop: "12px" }} width="939" height="622" data-path="images/Videoanalytics.png" />
</Card>

<Steps>
  <Step title="Select Date Period">
    At the top of the dashboard, choose a start and end date to filter analytics data for a specific timeframe.
    <b>Example:</b> Select <b>1 Jan 2026</b> as the start date and <b>7 Jan 2026</b> as the end date to analyze performance for the first week of January.
  </Step>

  <Step title="Generate Report">
    After selecting the date range, click <b>Generate Report</b> to refresh and load updated analytics data.

    <b>Example:</b> After choosing <b>1 Jan 2026 – 7 Jan 2026</b>, click <b>Generate Report</b>. The dashboard updates to show analytics only for those 7 days.
  </Step>

  <Step title="View Total Plays">
    Check the <b>Plays</b> summary card to see the total number of video plays during the selected period.

    <b>Example:</b> For <b>1 Jan – 7 Jan 2026</b>, the Plays card shows <b>1,250 plays</b>.\
    This means your videos were played 1,250 times during that week.
  </Step>

  <Step title="View Total Watch Time">
    Review the <b>Watch Time</b> card to see total accumulated viewing time (e.g., minutes and seconds).

    <b>Example:</b> For <b>1 Jan – 7 Jan 2026</b>, Watch Time shows <b>32 hours 15 minutes</b>.\
    This represents the total time users spent watching your videos in that period.
  </Step>

  <Step title="Analyze Plays Trend Graph">
    Examine the area chart under the summary cards to understand how plays change day by day within the selected period.

    <b>Example:</b> Between <b>1 Jan – 7 Jan 2026</b>:

    * Jan 1 – 120 plays
    * Jan 3 – 300 plays (peak)
    * Jan 6 – 150 plays

    This helps you identify high-performance days and engagement spikes.
  </Step>

  <Step title="Review Play Source Distribution">
    Look at the <b>Play Source</b> pie chart to see how plays are distributed across sources such as:

    * PN Platform
    * Demo
    * Localhost

    <b>Example (1 Jan – 7 Jan 2026):</b>

    * PN Platform – 70%
    * Demo – 20%
    * Localhost – 10%

    This shows most plays came from the production platform.
  </Step>

  <Step title="Check Country Plays">
    View the <b>Country Plays</b> section to see which country generated plays and the percentage contribution.

    <b>Example (1 Jan – 7 Jan 2026):</b>

    * India – 80%
    * United States – 15%
    * United Kingdom – 5%

    This helps identify your strongest geographic audience.
  </Step>

  <Step title="View Top Videos">
    Scroll down to the <b>Top Videos</b> table to compare:

    * Video name
    * Total watch time
    * Total plays
    * Percentage contribution

    <b>Example (1 Jan – 7 Jan 2026):</b>

    * Product Demo.mp4 – 500 plays – 12 hrs watch time – 40%
    * Tutorial Part 1.mp4 – 400 plays – 10 hrs watch time – 32%
    * Intro Video.mp4 – 350 plays – 10 hrs 15 min watch time – 28%
  </Step>

  <Step title="Compare Video Performance">
    Use the Top Videos table to identify which video has the highest engagement based on plays and watch time.

    <b>Example:</b> During <b>1 Jan – 7 Jan 2026</b>,\
    <b>Product Demo.mp4</b> has the highest plays and watch time, making it the best-performing video for that week.
  </Step>
</Steps>

## Saved Analytics reports

Saved Reports allows users to view and manage previously generated analytics reports.

When a user opens the Saved Reports page:

* A request is sent to the backend to fetch all saved reports
* The reports are displayed in a structured table
* Loading indicators are shown while data is being fetched

Each saved report includes:

* Report name
* Report URL
* Created by
* Created at

Users can:

* Open the report in a new tab
* Delete a report securely
* View creation details

Deletion process:

* User clicks delete
* A DELETE request is sent with authorization token
* On success, the report is removed from the list
* A success or error message is displayed

This feature ensures persistent report access, secure management, and easy report lifecycle control.
