--- title: PixelDataSharingState - GraphQL Admin description: >- Indicates whether the pixel can access events. The state may reflect event restrictions or modifications. api_version: unstable api_name: admin source_url: html: >- https://shopify.dev/docs/api/admin-graphql/unstable/enums/PixelDataSharingState md: >- https://shopify.dev/docs/api/admin-graphql/unstable/enums/PixelDataSharingState.md --- # Pixel​Data​Sharing​State enum Indicates whether the pixel can access events. The state may reflect event restrictions or modifications. ## Valid values * ALWAYS\_​ON The pixel can access all events. * OPTIMIZED\_​ALLOW\_​ALL\_​EVENTS Optimization is enabled and the pixel can access all events. * OPTIMIZED\_​ALLOW\_​LIMITED\_​EVENTS Optimization is enabled and the pixel can access some events or partial event data. * OPTIMIZED\_​PAUSE\_​ALL\_​EVENTS Optimization is enabled and the pixel cannot access any events. * PAUSED The pixel cannot access any events. *** ## Fields * [Server​Pixel.dataSharingState](https://shopify.dev/docs/api/admin-graphql/unstable/objects/ServerPixel#field-ServerPixel.fields.dataSharingState) OBJECT A server pixel stores configuration for streaming customer interactions to an EventBridge or PubSub endpoint. * [Web​Pixel.dataSharingState](https://shopify.dev/docs/api/admin-graphql/unstable/objects/WebPixel#field-WebPixel.fields.dataSharingState) OBJECT The `WebPixel` object enables you to manage JavaScript code snippets that run on an online store and collect [behavioral data](https://shopify.dev/docs/api/web-pixels-api/standard-events) for marketing campaign optimization and analytics. Learn how to create a [web pixel extension](https://shopify.dev/docs/apps/build/marketing-analytics/build-web-pixels) to subscribe your app to events that are emitted by Shopify. *** ## Map ### Fields with this enum * [Server​Pixel.dataSharingState](https://shopify.dev/docs/api/admin-graphql/unstable/objects/ServerPixel#field-ServerPixel.fields.dataSharingState) * [Web​Pixel.dataSharingState](https://shopify.dev/docs/api/admin-graphql/unstable/objects/WebPixel#field-WebPixel.fields.dataSharingState)