Skip to content
Data
Skill

/walkeros-mapping-configuration

Read [understanding-mapping](../walkeros-understanding-mapping/SKILL.md) first for core concepts.

From plugin
walkeros
35122 skills

Claude Code

$ npx -y skills add elbwalker/walkerOS --skill walkeros-mapping-configuration --agent claude-code

SKILL.md

walkeros-mapping-configuration.SKILL.md
name: walkeros-mapping-configuration
description:
  Use when configuring walkerOS event mappings for specific use cases. Provides
  recipes for GA4, Meta, custom APIs, and common transformation patterns.

Mapping Configuration Recipes

Prerequisites

Read [understanding-mapping](../walkeros-understanding-mapping/SKILL.md) first for core concepts.

Quick Reference

| I want to... | Use this pattern | | ------------------------------ | ---------------------------------------------------------------- | | Rename event | `{ name: 'new_name' }` | | Extract nested value | `'data.nested.value'` | | Set static value | `{ value: 'USD' }` | | Transform value | `{ fn: (value, { event }) => transform(event) }` | | Build object | `{ map: { key: 'source' } }` | | Process array | `{ loop: ['source', { map: {...} }] }` | | Gate by consent | `{ key: 'data.email', consent: { marketing: true } }` | | Gate one event type by consent | rule `consent: { marketing: true }` (on top of `config.consent`) | | First defined value (fallback) | `[{ key: 'data.sku' }, { key: 'data.id' }]` | | Add a field to a default rule | `{ extend: { data: { map: { x: 'path' } } } }` | | Drop a field from output | `{ remove: ['field.path'] }` |

Common Recipes

GA4 / gtag

**Product view → view_item:**

product: {
  view: {
    name: 'view_item',
    data: {
      map: {
        currency: { key: 'data.currency', value: 'EUR' },
        value: 'data.price',
        items: {
          loop: [
            'this', // the product is the event itself
            {
              map: {
                item_id: 'data.id',
                item_name: 'data.name',
                item_category: 'data.category',
                price: 'data.price',
                quantity: { key: 'data.quantity', value: 1 },
              },
            },
          ],
        },
      },
    },
  },
}

**Order complete → purchase:**

order: {
  complete: {
    name: 'purchase',
    data: {
      map: {
        transaction_id: 'data.id',
        value: 'data.value',
        currency: { key: 'data.currency', value: 'EUR' },
        items: {
          loop: [
            'nested',
            {
              // only the products, not other nested entities
              condition: (entity) =>
                typeof entity === 'object' &&
                entity !== null &&
                'entity' in entity &&
                entity.entity === 'product',
              map: {
                item_id: 'data.id',
                item_name: 'data.name',
                price: 'data.price',
                quantity: { key: 'data.quantity', value: 1 },
              },
            },
          ],
        },
      },
    },
  },
}

Meta Pixel

**Product view → ViewContent:**

product: {
  view: {
    name: 'ViewContent',
    data: {
      map: {
        content_ids: { set: ['data.id'] },
        content_type: { value: 'product' },
        content_name: 'data.name',
        value: 'data.price',
        currency: { key: 'data.currency', value: 'EUR' },
      },
    },
  },
}

**Order complete → Purchase:**

order: {
  complete: {
    name: 'Purchase',
    data: {
      map: {
        content_ids: {
          loop: [
            'nested',
            {
              condition: (entity) =>
                typeof entity === 'object' &&
                entity !== null &&
                'entity' in entity &&
                entity.entity === 'product',
              key: 'data.id',
            },
          ],
        },
        content_type: { value: 'product' },
        value: 'data.value',
        currency: { key: 'data.currency', value: 'EUR' },
        num_items: {
          fn: (value, { event }) =>
            event.nested?.filter((entity) => entity?.entity === 'product')
              .length ?? 0,
        },
      },
    },
  },
}

Custom API Destination

**Transform to REST API format:**

'*': {
  '*': {
    // A computed name goes in policy: a rule's name is a fixed string
    policy: {
      name: { fn: (value, { event }) => `${event.entity}_${event.action}` }, // page_view
    },
    data: {
      map: {
        eventName: 'name',
        eventData: 'data',
        userId: 'user.id',
        sessionId: 'user.session',
        timestamp: 'timestamp',
        metadata: {
          map: {
            consent: 'consent',
            globals: 'globals',
          },
        },
      },
    },
  },
}

Conditional Mapping

**Different mapping based on event data:**

order: {
  complete: [
    // High-value orders get extra tracking
    {
      condition: (value, { event }) =>
        typeof event.data?.value === 'number' && event.data.value > 500,
      name: 'high_value_purchase',
      data: {
        map: {
          value: 'data.value',
          priority: { value: 'high' },
          notify: { value: true },
        },
      },
    },
    // Standard orders
    {
      name: 'purchase',
      data: { map: { value: 'data.value' } },
    },
  ],
}

Patching Package-Shipped Rules (`extend` / `remove`)

`@walkeros/transformer-ga4` ships default mapping rules in its `settings.mapping`. Normally a user rule at the same key replaces the default in full. Use `extend` or `remove` to patch instead.

Two layers, two keywords:

  • **`extend`** runs at init (config layer): deep-merges a partial rule onto the

shipped default. A `null` value clears an inherited field. Onl

Read more
@elbwalker
Ships withwalkeros

From browser to BigQuery and ad platforms - warehouse-native, and ready for AI agents via MCP.

Stars on GitHub

Momentum

stars in total
351
Star history of elbwalker/walkerOS on GitHub, a chart by star-history.com

Other skills on walkeros.

walkeros-create-source

walkeros-create-source

Use when creating a new walkerOS source to capture events (browser source, dataLayer interception, server/HTTP source, webhook…

@elbwalker@elbwalkerInstall Skill
walkeros-mcp-actions

walkeros-mcp-actions

You are an AI agent running inside a **code-execution host**, not issuing tool calls one at a time through the model. Examples:

@elbwalker@elbwalkerInstall Skill

More skills from other plugins.

paddleocr-doc-parsing

paddleocr-doc-parsing

Use this skill to extract structured Markdown/JSON from PDFs and document images—tables with cell-level precision, formulas as…

paddleocr2mo93k
@paddlepaddle@paddlepaddleInstall Skill
context-loader
Auto-invoked

context-loader

Search memories from earlier Pi sessions in this repository. Use it when earlier work may already explain the code, error,…

mem02w69k
@mem0ai@mem0aiInstall Skill
analyzing-ai-citations

analyzing-ai-citations

Answer AI citation and answer engine optimization (AEO) questions in PostHog: whether AI answer engines (ChatGPT, Claude, and an…

posthog3w41k
@posthog@posthogInstall Skill

Questions about walkeros-mapping-configuration.

Which coding agents can use walkeros-mapping-configuration?
walkeros-mapping-configuration installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.