# Web Pixel

> What Shoplazza Web Pixels are: lightweight scripts that collect customer events such as purchases, product views, and add-to-cart, and report them to ad platforms.

## About Shoplazza Web Pixels

Web pixels are lightweight JavaScript snippets that run on an online store and collect behavioral data from customer interactions. This data, referred to as **customer events**, is used for tracking, analytics, and marketing optimization. Web pixels are integrated with third-party platforms to provide insights into customer activities, such as purchases, product views, cart additions, email subscriptions, and registrations.

Shoplazza web pixels support the following:

* Simplified integration with third-party platforms.
* Compatibility with major analytics and advertising platforms.
* Secure data transmission and consent-based tracking.

## How Web Pixels Work

Web pixels work by listening for specific **customer events** on a store’s pages and reporting these events to the respective third-party platforms. These events include:

* **Order Completion**: Triggered when a customer successfully completes a purchase.
* **Add to Cart**: Triggered when a customer adds a product to their cart.
* **View Product**: Triggered when a customer views a product detail page.
* **Email Subscription**: Triggered when a customer subscribes to a newsletter or marketing emails.
* **User Registration**: Triggered when a customer creates a new account.

When these events occur:

1. **Shoplazza's event system** captures the event and its metadata (e.g., product ID, customer email, or order details).
2. This data is transformed into a format compatible with third-party platforms.
3. The pixel sends the data to the configured third-party endpoint for processing.

## Benefits of Shoplazza Web Pixels

Web pixels provide the following benefits:

* **Enhanced Customer Insights**: Collects detailed behavioral data to help merchants analyze customer interactions.
* **Third-Party Integration**: Simplifies data sharing with platforms like Google Analytics, Facebook Ads, and Criteo.
* **Customizable Event Payload**: Ensures data security and consent-based tracking, respecting user privacy preferences.
* **Secure Data Transmission:** Ensures data security and consent-based tracking, respecting user privacy preferences.
* **Enhanced Advertising and Analytics**: Helps optimize marketing campaigns by integrating detailed user behavior data with external platforms.

Applicable scenarios:

* Merchants who want to integrate their store data with unsupported third-party analytics platforms.
* Businesses needing to track custom events not available through default integrations.
