Blenra LogoBlenra
Optimized for: Gemini / ChatGPT / Claude
#React

Automated E-commerce Analytics Event Tracking with Zustand Middleware

Customize the variables below to instantly engineer your prompt.

Required Variables

zustand-analytics-event-tracking.txt
Create a Zustand middleware that automatically triggers [ANALYTICS_SDK] (e.g., Google Analytics or Segment) calls. Filter for specific actions in the [TRACKED_ACTIONS_LIST] (like 'ADD_TO_CART'). Map the Zustand state change to a [PAYLOAD_MAPPING] required by the analytics provider. This should be transparent to the UI developers and handled entirely at the state layer.

Example Text Output

"An automated tracking layer that ensures every business-critical action is logged for marketing analysis with zero additional UI code."

More Web Components Prompts

View all →

Frequently Asked Questions

What is the "Automated E-commerce Analytics Event Tracking with Zustand Middleware" prompt used for?

An automated tracking layer that ensures every business-critical action is logged for marketing analysis with zero additional UI code.

Which AI tools work with this prompt?

This prompt is optimized for Gemini / ChatGPT / Claude, but works great with ChatGPT, Claude, Gemini, and other large language models. Simply copy it and paste it into your preferred AI tool.

How do I customize this prompt?

Use the variable fields above to fill in your specific details. The prompt will auto-update as you type, ready to copy instantly.

Is this prompt free?

Yes! All prompts on Blenra are free to copy and use immediately. No account required.