Google Analytics
Use Google Analytics data with Cortex XSIAM.
The capabilities and sub-capabilities listed for this connector are available with any active Cortex XSIAM or Cortex Cloud Posture Security license.
This connector includes the following capabilities and sub-capabilities (if applicable):
SaaS Posture Configuration Monitoring: Detect, monitor and alert on settings of your SaaS application.
saas-posture-config-remediation: Help remediate the misconfigured security settings of your SaaS application.
How to configure the Google Analytics connector
To access Google Analytics, Cortex XSIAM requires the following information, which you will specify during the connection process.
Service Account Email: The
client_emailvalue from your Google Cloud service account JSON key file. Cortex XSIAM uses this value to identify the service account during authentication.Service Account JSON Credential File: The JSON key file downloaded from Google Cloud Console. Cortex XSIAM uses the
client_emailandprivate_keyfields in this file to sign authentication tokens and call the Google Analytics Admin API.
Perform the following procedures in the order that they appear below.
Task 1: Create a Service Account and Download the JSON Key
Navigate to the Google Cloud Console and select an existing project or create a new one using the project dropdown at the top of the page.
Navigate to APIs & Services → Credentials (or IAM & Admin → Service Accounts).
Click Create Credentials → Service account.
Enter a Service account name (for example,
sspm-google-analytics) and click Create and Continue.Skip the optional Grant this service account access to project and Grant users access to this service account steps. Click Done.
Open the newly created service account, select the Keys tab, and click Add Key → Create new key.
Select JSON and click Create. Your browser downloads a
.jsonkey file.Store the downloaded JSON file securely.
Do not continue to the next step unless you have downloaded the JSON key file. You must upload this file to Cortex XSIAM during the onboarding process. The file contains the
client_emailandprivate_keyfields that Cortex XSIAM uses to authenticate to the Google Analytics API.
Task 2: Enable the Google Analytics Admin API
In the same Google Cloud project, navigate to APIs & Services → Library.
Search for Google Analytics Admin API, open the result, and click Enable.
If the API is not enabled, API calls will return a
403 SERVICE_DISABLEDerror even if authentication succeeds.
Task 3: Grant the Service Account access in Google Analytics
A service account created in Google Cloud has no visibility into any Google Analytics account until it is explicitly added as a user in Google Analytics. Complete this step before attempting to connect.
Open the downloaded JSON key file and copy the
client_emailvalue (for example,sspm-google-analytics@your-project-id.iam.gserviceaccount.com).Navigate to Google Analytics and click the Admin gear icon.
At the Account level, select Account Access Management and click + → Add users.
Paste the service account email address.
Assign one of the following roles:
Viewer or Analyst — sufficient for read-only posture scanning of accounts, data-retention settings, and property configurations.
Administrator — required if the connector needs to read user access bindings or broader admin data.
Uncheck Notify by email (service accounts do not have an inbox) and click Add.
Task 4: Connect Google Analytics to Cortex XSIAM
In Cortex XSIAM, navigate to Settings → Data Sources & Integrations.
Click + Add new.
In the Add Data Source page, search for Google Analytics.
Under Recommended, hover over the new Google Analytics integration and click Add Instance to launch the configuration wizard.
Under the Capabilities tab, enter a name for your application.
Select Security Posture under Default Capabilities. Click Next.
Under the Connection tab, enter the Service Account Email (
client_emailfrom the downloaded JSON file) and upload the Service Account JSON Credential File.Under the Configuration tab, select a Sync Interval. Choose a meaningful Tag to distinguish between various applications in different environments.
A confirmation message shows that Google Analytics is successfully connected. Confirm the Summary details and click Save instance.
Last updated
Was this helpful?
