Custom Context Layers

If you have your own set of attributes, features, or Topics for your inventory, then you may consider creating a Custom Context Layer. These Layers allow you to configure any field on the content table to be a Topic that gets outputted onto user profiles. Consider the following examples of Custom Context Layers:

  • Shopify Data. When importing Shopify data, Lytics captures all attributes and fields associated with your items. Suppose each item has a shopify_product_tags field, with values such as wool, cotton, polyester, etc. If we create a Custom Context Layer using the shopify_product_tags field, Lytics will output a shopify_affinities_tag_ field to the user profiles that captures which tags a user has interacted with or purchased. You can then use this data to target users with a high interest in specific tags. In the screenshot below, we can see the popular Topics (or tags) consumed by your users.
  • Genre or Category Data. In some cases, your CMS may allow you to append additional metadata to your web pages. If such data exists, a Custom Context Layer will allow you to capture data such as genre, or category and output it to user profiles.
  • Offline Data. If you have a rich collection of offline product data, a Custom Context Layer can be used to enrich your user profiles. Consider a supermarket with a corpus of discount coupons that exist in an internal database, each with an ID, metadata, and category information. Once the data has been imported, a Custom Context Layer can be used to link and enrich user profiles based on which coupons they have used.

Creating a New Custom Context Layer

📘

Creating, editing, or deleting a context layer needs permission to view the schema and to create, update, or delete content. The Content Manage granular permission covers the content half. Without it, the New Context Layer, Edit, and Delete buttons are hidden, or disabled in the Topics layer selector. See Predefined Roles and Granular Permissions.

To create a new Custom Context Layer, select Topics under Content, open the Context layer selector, and choose New context layer. This opens the wizard.

The first step requires selecting the unique identifier and features (or Topics) from your inventory (ie the content table). In the screenshot below, we are using the Shopify example from earlier, and using the shopify_product_id and shopify_product_tags fields.

Once the Inventory and Features have been identified, the next step requires mapping the data to your user profiles. The Inventory Field refers to the field on the user table that contains a set of shopify_product_ids (ie a set of unique identifiers from the content table). In this case, the shopify_product_ids field is an array of IDs that a user has purchased. Next, configure the name of the output field - this field will contain the shopify_product_tags that a user has expressed interest in based on their shopify_product_ids.


Did this page help you?