---
title: "SearchStax analytics for Acquia Search"
date: "2026-03-05T20:39:18+00:00"
summary:
image:
type: "page"
url: "/acquia-cloud-platform/searchstax-analytics-acquia-search"
id: "41bddb7f-f94f-4440-81c0-e9d53dd7a574"
---

This page provides instructions on how to enable SearchStax analytics and troubleshoot common issues based on implementation experiences with Drupal search views.

Initial setup and enablement
----------------------------

To set up SearchStax analytics, ensure that the configuration includes the following core components:

*   Analytics code: Add the SearchStax analytics code to the required environments.
    
*   Key validation: Verify that the configuration uses the correct analytics keys.
    
*   Shield or HTTP authentication: Deactivate Shield or HTTP authentication to prevent blocked data transmission.
    

Troubleshooting connectivity issues
-----------------------------------

If analytics data does not appear in the SearchStax dashboard, evaluate the following potential blockers:

*   JavaScript conflicts: Custom site implementations can cause JavaScript conflicts that prevent the SearchStax library from attaching to specific search views.
*   The 24-hour rule: Initial connections can require up to 24 hours before data populates in the SearchStax analytics dashboard.
    
    Note
    
    After the initial connection is established, analytics typically populate 24 hours after users perform searches.
    
*   Shield module or HTTP authentication: These settings do not affect analytics capturing.

Verify activity manually
------------------------

To check technical indicators while the dashboard updates, follow these steps:

### Monitor the Network tab

Check the Network tab in the browser to ensure the page sends tracking signals:

1.  Open **Developer Tools** in the browser.
2.  Select the **Network** tab.
3.  In the **Filter** or **Search** box, type _track_.
4.  Ensure that an item named `track/` includes the following values:
    *   Status: `204`
    *   Type: `xhr`
    *   Initiator: starts with `studio-analytics.js`

![srsx_srsx-analytics-network-tab](https://acquia.widen.net/content/3305c17f-ccf3-4fd0-b14b-6832c73649fc/web/a69b8_srsx_srsx-analytics-network-tab.jpg?w=1090&itok=IBqutOyW)

### Drupal settings JSON

Check the `drupal-settings-json` script tag on the page to indicate that data will reach the dashboard:

1.  Access the **Search results** page in a browser.
2.  In the browser menu, select **View** > **Developer** > **View Source**.
3.  Locate the `drupal-settings-json` script tag.
    
        <script type="application/json" data-drupal-selector="drupal-settings-json">
        {
          "path": { … },
          "pluralDelimiter": "\u0003",
          "suppressDeprecationErrors": true,
          "dataLayer": { … }
          },
          "mytheme": {
            "script_path": "\/themes\/custom\/mytheme\/build\/scripts\/"
          },
          "searchstax": {
             …
            "analyticsUrl": "https:\/\/analytics-region.searchstax.com",
            "analyticsKey": "[SEARCHSTAX_ANALYTICS_KEY]",
             …
          },
          "user": { … }
        }
        </script>
    
4.  Ensure that the `analyticsUrl` and `analyticsKey` match the values in SearchStax.