The Adobe Analytics Product String Validator is a tool designed to validate and parse the s.products string used in Adobe Analytics implementations. It ensures that the product string adheres to the correct syntax as outlined in the Adobe Analytics documentation. The tool parses the stringreactive string, breaking it down into individual product components to make it easier to read and verify the properties of each product.
- Validates the syntax of Adobe Analytics product strings.
- Parses and displays each product's fields (category, name, quantity, price, events, and eVars) in a readable format.
- Supports multiple products separated by commas.
- Highlights errors in the product string format.
- Visit the Adobe Analytics Product String Validator webpage.
- Enter your
s.productsstring into the input field. - Submit the string to see the parsed results, with each product's fields clearly displayed.
- Check for any error messages indicating issues with the string's syntax.
For a product string like:
"Example category;Example product;1;3.50;event1=4.99|eVar1=Value1,Another category;Another product;2;5.99"
The validator will parse it into:
- Product 1:
- Category: Example category
- Name: Example product
- Quantity: 1
- Price: 3.50
- Events: event1=4.99
- eVars: eVar1=Value1
- Product 2:
- Category: Another category
- Name: Another product
- Quantity: 2
- Price: 5.99
Pre Requisites:
- Node.js
- NPM
To run the validator locally:
- Clone the repository:
git clone https://github.com/paolobtl/aa-product-validator.git
- Type
npm run previewin your terminal.
Contributions are welcome! Please submit a pull request or open an issue to discuss any changes or improvements.
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch). - Make your changes and commit them (
git commit -m 'Add feature'). - Push to the branch (
git push origin feature-branch). - Open a pull request.
This project is licensed under the Apache 2.0 License. See the LICENSE file for details.
For questions or feedback, please open an issue on the GitHub repository.