---
title: settings
description: >-
  Provides access to the settings JSON object as set by the GraphQL Admin API
  **(Web pixel app extensions only)**.
source_url:
  html: 'https://shopify.dev/docs/api/web-pixels-api/standard-api/settings'
  md: 'https://shopify.dev/docs/api/web-pixels-api/standard-api/settings.md'
api_name: web-pixels
---

# settings

Provides access to the settings JSON object as set by the [GraphQL Admin API](https://shopify.dev/docs/apps/marketing/pixels/getting-started#step-5-create-a-web-pixel-setting-for-the-store) **(Web pixel app extensions only)**. The structure of this object is a string keyed hash map: `Record<string, any>`.

Examples

### Examples

* ####

  ##### App Pixel

  ```js
  // ONLY AVAILABLE IN APP PIXELS

  import {register} from '@shopify/web-pixels-extension';

  register(({analytics, settings}) => {
    analytics.subscribe('page_viewed', (event) => {
      console.log(settings);
      /**
       * {
       *   "accountID": "234"
       * }
       */
    });
  });
  ```

***
