This Chrome extension simplifies debugging and validation of your Adobe Analytics (AA) implementation. It leverages the power of Google's Gemini generative AI API as a core part of an experiment to explore how GenAI can boost productivity in technical tasks. By intercepting AA requests, parsing the payload, and validating it against user-defined rules, this extension provides immediate feedback in the browser's developer console, streamlining your workflow.
The GenAI Advantage: This extension isn't just about validation; it's about exploring the potential of GenAI to automate and simplify complex tasks like creating and applying validation rules. The flexibility and intelligence of the Gemini API allow the extension to handle free-form, human-readable rules, making the validation process more efficient and intuitive.
Install the extension from the Chrome Web Store. Once installed, the extension icon will appear in your browser toolbar.
The extension validates your Adobe Analytics data based on rules you provide in a text file. Here's how to create and upload your rules file:
Below is a recommendation of the rule structure, Gen AI can read and interpet the rules, experiment with different ways to write the rules.
.txt
) with your rules. Each line in the file represents a rule. Comments are supported using #
.FieldName: ValidationRule
. Here's a breakdown:
pageName
, eVar1
, prop2
, events
, products
, etc.).required
: The field must be present and not empty.text
: The field can contain any text (including empty strings).url
: The field must be a valid URL.number
: The field must be a number.[value1, value2, ...]
: The field must match one of the listed values. Case-sensitive.(value1, value2, ...)
: The field is optional. If present, it must match one of the listed values. Case-sensitive.eight-digit number
: Field must be an eight-digit number.uuid
: The field must be a valid UUID (Universally Unique Identifier). (Optional, if present, must be a UUID)ISO 8601 timestamp
: Field must be a valid ISO 8601 timestamp format.country code
: Field must be a valid country code.language and locale
: Field must be a valid language and locale code.begin with "some string"
: Field must begin with the specified string.[1 to 15]
: Field must be a number between 1 and 14 (inclusive).no or eight-digit number
: Field must be either "no" or an eight-digit number.if
statements to apply rules based on other fields. For example: v1: if pev2 is click Event then text
. Supported operators include is
, is not
, contain
, contain not
.The extension uses Google's Gemini AI to validate the rules. To enable this:
Important: Keep your API key secure. Do not share it publicly.
Once you have uploaded your rules and enabled GenAI validation, the extension will automatically validate Adobe Analytics calls made by your website. The validation results will be displayed directly in your browser's console:
products
array. This helps pinpoint issues with individual product data.The provided rules-examples.txt file contains various examples of validation rules. You can adapt and extend these rules to fit your specific requirements.
The extension currently supports a simplified text structure for the rules. Future updates may include support for more robust CSV parsing for more complex rule definitions.
To disable GenAI validation:
This extension stores your provided Gemini API key locally in your browser's storage. No data is collected or shared by the extension itself. However, when GenAI Validation is enabled, your Adobe Analytics payload and rules will be sent to Google's Gemini API for processing. Refer to Google's privacy policy for details on how they handle your data.