# Search Statistics

Ajax Search Pro for WordPress version 4.28.0 and later features a versatile search statistics UI, which can be used to track user searches, results, interactions, various data manipulation and exporing it to CSV files.

{% embed url="<https://youtu.be/ymNY-LoRQZQ>" %}

### Enable Search Statistics

By default the search statistics is disabled. To enable Ajax Search Pro Search Statistics:

* Navige to the *Ajax Search Pro -> Search Statistics* menu
* Click on the *Settings* tab
* Click on **Search statistics enabled** option so it is turned on
* Scroll down and *Save* the Settings

<figure><img src="https://1706764988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-L9jkFgNo4lpUof35gvS%2Fuploads%2FrrevE3JQIB1Ur1HItMQJ%2Fimage.png?alt=media&#x26;token=b43342ff-63d8-4b45-9549-c680b34619b1" alt="Search Statistics Settings"><figcaption></figcaption></figure>

### Dark Mode

This UI features a dark mode switch. We used dark mode in the screenshots of this documentation. You can turn it on/off by clicking the *Sun/Moon icon* in the top right corner of the screen. The dark/light mode is memorized, it is retained even after the browser is refreshed.

<figure><img src="https://1706764988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-L9jkFgNo4lpUof35gvS%2Fuploads%2FM8F2PEgOFeJSj9aYd0BT%2Fimage.png?alt=media&#x26;token=f225e2cc-270b-480a-923c-ab3e76612ba6" alt="Dark Mode in Search statistics UI - Ajax Search Pro for WordPress" width="375"><figcaption></figcaption></figure>

### Realtime Statistics

Click on the Realtime tab to access the realtime statistics. Two graphs should be displayed, one showing the latest search volume in the past 60 minutes, the other the search volume in the past 24 hours.

Under the graphs a table is displayed with the latest 20 searches. The realtime stats upgrade every 5 seconds (adjustable under the Settings panel).

<figure><img src="https://1706764988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-L9jkFgNo4lpUof35gvS%2Fuploads%2FLNCZtICtQgHyoI7h7bP6%2Fimage.png?alt=media&#x26;token=d1b23686-288a-4306-ae24-8ec31f9513e7" alt="Ajax Search Pro Realtime Statistics"><figcaption></figcaption></figure>

### Search Volume

The search volume displays the total number of searches per day and it can be accessed under the *Searches -> Volume* tab.

Above the bar chart there is a period (date) selection as well as a switch to turn on/off the comparision to the previous period.

Under the graph you can adjust various criteria via filters, such as the phrase, device, type, status, user interaction etc..

<div><figure><img src="https://1706764988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-L9jkFgNo4lpUof35gvS%2Fuploads%2Fmh6B3XTikM5lPdcaolZW%2Fimage.png?alt=media&#x26;token=9df003fd-992f-4eeb-a559-7fe6cd3d7da2" alt="Search statistics date and comparision options" width="375"><figcaption></figcaption></figure> <figure><img src="https://1706764988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-L9jkFgNo4lpUof35gvS%2Fuploads%2FWpHb2iczDTDNMSEs1xb7%2Fimage.png?alt=media&#x26;token=2def0cf3-81b1-4c0d-929a-9ace8c1388a0" alt="" width="375"><figcaption></figcaption></figure></div>

#### Exporting data to CSV

For each view there is an *Export view* button on the top right corner of the screen. Clicking this button will open a menu to export the current view to a CSV document.

<figure><img src="https://1706764988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-L9jkFgNo4lpUof35gvS%2Fuploads%2FasubyNlCtUeSqgzDHGOa%2Fimage.png?alt=media&#x26;token=88157857-6a9c-4b7f-8168-63a3ae2270bf" alt="Export statistics to CSV in Ajax Search Pro for WordPress" width="375"><figcaption></figcaption></figure>

### Popular Searches

The popular searches view can be accessed under the *Searches -> Popular* tab. By default it displays the most popular phrases for the given period.

Similary to the *Volume* tab, there is a date, comparision and filter area. There is also a *Field* selector before the datepicker, where you can adjust the main popularity criteria.

<div><figure><img src="https://1706764988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-L9jkFgNo4lpUof35gvS%2Fuploads%2Ff9OzvJSh8SfheDwQbYym%2Fimage.png?alt=media&#x26;token=01e48b6b-4bfb-4fd2-96eb-69aafc300038" alt="Popular Searches Criteria Selector in Ajax Search Pro for WordPress" width="375"><figcaption></figcaption></figure> <figure><img src="https://1706764988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-L9jkFgNo4lpUof35gvS%2Fuploads%2FCN8q9xrpKW2XwI6x6gxH%2Fimage.png?alt=media&#x26;token=5280c3af-d0e7-4c0c-9fce-0f4b07ecbc2b" alt="Popular Searches in Ajax Search Pro for WordPress plugin" width="375"><figcaption></figcaption></figure></div>

### All Searches Browser

Clicking on *Searches -> All Searches* tab will display all searches for the given period. This view lets you browser all searches for the given period filtered by various criteria.

Aside from the date selector and the filters there is an ordering option available to change the default ordering (by date descending).

<figure><img src="https://1706764988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-L9jkFgNo4lpUof35gvS%2Fuploads%2F1lbEYLnvT6M3ZTfFxujH%2Fimage.png?alt=media&#x26;token=d239a4bc-8431-4b30-8e63-006764060b25" alt="All Search Statistics Ordering in Ajax Search Pro for WordPress plugin" width="375"><figcaption></figcaption></figure>

It is also possible to load the results list for each search by clicking on the *\[Show results]* link or delete it  from the database by clicking on the *Delete* link if needed.

<figure><img src="https://1706764988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-L9jkFgNo4lpUof35gvS%2Fuploads%2Fl9n1tCegKRcVwQtcT3xp%2Fimage.png?alt=media&#x26;token=a98b12eb-1896-453e-9a08-4aab26435aa7" alt="Show result and delete buttons in All Searches Statistics view" width="375"><figcaption></figcaption></figure>

### Popular Results

The popular results view can be accessed under the *Results -> Popular* tab. By default it displays the most popular searches for the given period by views.

Aside from the date range and filters the popularity criteria can be adjusted. The option is before the date picker and has two possible values:

* *Views* - sorts the results by views. A view is when a result was displayed in a live result container or on the result page.
* *Interactions* - sorts the results by interactions. An interaction is a click on a result in a live result container or on the results page.

<figure><img src="https://1706764988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-L9jkFgNo4lpUof35gvS%2Fuploads%2Fa1AM9Bxz1lSntNWodsf1%2Fimage.png?alt=media&#x26;token=93b28c7e-4c8e-4a7b-8a82-85beb50641f8" alt="Result Criteria in Results Statistics - Ajax Search Pro for WordPress" width="375"><figcaption></figcaption></figure>

### All Results

This interface is similar to the [All Searches](#all-searches-browser) browser, displays all results shown to the user in all searches.

<figure><img src="https://1706764988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-L9jkFgNo4lpUof35gvS%2Fuploads%2FoGO6KcVWYPRssm2MVIN6%2Fimage.png?alt=media&#x26;token=e194de68-3d05-47f6-8afc-710fbc60f46e" alt="All Results statistics browser - Ajax Search Pro for WordPress" width="375"><figcaption></figcaption></figure>

### Interactions

The interactions browser, similarly to [All Searches](#all-searches-browser) browser displays all past user interactions. Every click on a search result (live or results page) is registered as an interaction.

<figure><img src="https://1706764988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-L9jkFgNo4lpUof35gvS%2Fuploads%2F3XgCvEu3r56P2cVxSecD%2Fimage.png?alt=media&#x26;token=ea5dbf78-bd9e-4712-8d47-1c49855869aa" alt="User Interactions with Search Results in Ajax Search Pro for WordPress" width="375"><figcaption></figcaption></figure>
