The iDelta Add-on for Google Analytics uses the Google Analytics Data API (GA4) to fetch and ingest it into Splunk.
The add-on is now available to download (or install directly) from splunkbase. Note that is has passed vetting for Splunk Cloud Victoria and Classic stacks.
There have been various solutions over time to ingest Google Analytics data into Splunk but none had been kept up to date and there doesn't appear to be any that work with the relatively new GA4 platform. This add-on was built to bridge that gap.
The Add-on allows the user to create inputs where they specify the google analytics metric required (e.g. totalUsers) and the dimensions to split the data by.
In order to make the API call, a private key is required and it needs to be stored within the bin directory. For on-prem Splunk installations this should not present an issue but Splunk Cloud customers should give consider where to run the add-on and if the answer is "on Splunk Cloud" then discuss with Splunk support how to achieve this.
Further details on these steps are listed below:
The Google Analytics adminstrator should complete the following steps to generate a private key for use by the add-on:
Note that instead of using the quick start method above you can manually create an OAuth client ID and then assign the permissions as per step 2 in the Quick Start. This provides more control but involves more steps.
To install the add-on, on the Splunk server that will host the add-on:
Note that this add-on has been built using the ucc framework, and the repository contents are orientated towards development - that is the reason that the add-on currently sits under a "package" directory.
To configure the add-on:
Note that metric name, dimensions, start date and end date should use the same terms as specified in the Google API documentation, see startDate and endDate definitions