# Statistics

Keep track of all important actions like previews, downloads, streams, uploads, and more with the comprehensive event logging system in the plugin. You can access these reports directly in the plugin’s Reports section or receive a summary email. Additionally, all events can be sent to **Google Analytics** for deeper insights.

### **Available Insights**

* **Events Per Day**: See daily event activity to track trends over time.
* **Bandwidth Usage**: Monitor the total bandwidth consumed by events.
* **Top Downloads**: Identify which files are downloaded the most.
* **Top Previews**: Track the most previewed files.
* **Downloads Per User**: Track the number of downloads initiated by each user.
* **Uploads Per User**: Monitor file uploads by each user.
* **Events Per User**: See how many actions each user has performed.
* **Latest Uploads**: View the most recent files uploaded.

You can select a specific period for these insights to filter the data based on your preferred date range.

<figure><img src="https://2349993602-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeoKE343SM9nA0iXUOWZ1%2Fuploads%2FAUWHZYH4UH4XdabAaYoX%2Fimage.png?alt=media&#x26;token=95308efa-1943-4415-9f0d-d5736d9de1e3" alt=""><figcaption><p>Reports Dashboard</p></figcaption></figure>

### Google Analytics

Is the built-in report functionality not enough for your needs? The plugin can send all download and upload events directly to Google Analytics.

To use this feature, ensure that you have already added your Google Analytics tracking code to your site. Most themes provide a Custom Script box where you can insert the tracking code.

Once enabled, all plugin events are logged in Google Analytics as 'Events.' You can view them in your Google Analytics Dashboard under 'Behavior' → 'Events' → 'Overview.'

### **Event Summary**

The plugin can send an overview of all events that occurred within a specified period. To enable this feature, ensure that event logging is active, and the **Summary Email** setting is enabled under the **Statistics** tab.&#x20;

<figure><img src="https://2349993602-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeoKE343SM9nA0iXUOWZ1%2Fuploads%2Fub3nXyy8LFDft5lYyece%2Fimage.png?alt=media&#x26;token=488901c9-a9cb-45c4-86b9-b2ee14b3d84f" alt=""><figcaption><p>Email summary</p></figcaption></figure>

{% hint style="warning" %}
The email template is stored in `/templates/notifications/event_summary.php`. Please **do not edit this file directly** as it will be overwritten during plugin updates. \
Instead, you can use the `events_set_summary_template` filter to modify the location of the template if necessary.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wpcloudplugins.gitbook.io/docs/features/statistics.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
