---
title: Magento Metafields & Data Mapping
slug: 50rhNeg85zMMRPUV3WV58
description: Learn how to customize your online store with metafields in Magento. This document explains the use of metafields for tracking and displaying specialized information. Discover how to add metafields using approved apps or a technical approach. Configur
image: https://www.sparklayer.io/assets/images/logos/og-logo.png
docTags: 
createdAt: 2023-06-18T07:25:01.000Z
---

## Introduction

:::hint{type="warning"}
**Please note**
The SparkLayer Help Docs refer to attributes as "Metafields" elsewhere.
:::

Attributes help you to customise the functionality and appearance of your Magento store by letting you save specialised information that isn't usually captured in the Magento admin. You can use attributes for internal tracking, or to display specialised information on your online store in a variety of ways.&#x20;

In the context of SparkLayer, attributes are used to capture additional B2B data that you can then use in a variety of ways:

| Type                  | Details                                                                                                                                                                                             |
| --------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Product attributes`  | Updating the [Frontend Interfaces](docId\:ccZ1vnH0O6D_722w35Xpa) by adding configurations such as [pack sizing](docId\:CmxfrPgjQxfz9vJzTVv0D), [RRP prices](docId\:S_VTlJBorGmnwjjfSMom9), and more |
| `Customer attributes` | Updating a customer's information by adding information such as [credit limits](docId\:yWm70oQUosyKOoIqb4Z4G)                                                                                       |
| `Order attributes`    | Updating an order with [invoicing information](docId\:yWm70oQUosyKOoIqb4Z4G)                                                                                                                        |



***

## How to add attributes to Magento

The easiest way to add attributes is to action this via the SparkLayer Dashboard. Simply go to **Integrations > Platform Connection** and click "Configure" under "Configure metafields". You can then select which of the SparkLayer [attributes](docId\:OTLHhi8sQ6oS4PAt23-8H) you'd like to enable.



***

## Important considerations

In order for SparkLayer to work with Magento attributes, please note the following:

:::hint{type="warning"}
**Product attributes**
Attributes are always added at the product variant level, even if the product only comes in a single variant.&#x20;

**JSON data**
Some SparkLayer settings require attributes to be set up as JSON strings. These will need to be carefully added, making sure the formatting is set correctly.
:::



***

## Advanced settings

To learn about more advanced settings, including customer-level product attributes settings, please see [Product Settings](docId\:Cm9B1I6Cz0vOlc67g-fJI)
