Exposing Block/Paragraph field data in dataLayer

Created on 10 May 2023, over 1 year ago

Problem/Motivation

Field data from custom Blocks and Paragraph Types are not added to the dataLayer

Steps to reproduce

- Create custom Block Type (Structure > Block layout > Block types > Add custom block type)
- Select "Manage fields" for target custom Block Type
- Select "Edit" for target field of custom Block Type
- Click "Expose field data in JavaScript dataLayer variable."

Current result: Exposed dataLayer field from Block does not appear in the dataLayer object.

Proposed resolution

Add dataLayer support for custom Block & Paragraph Type fields.

Note: Field data from Content Types is being added to my dataLayer so I assume the module is configured correctly, however I cannot get field data from Blocks and Paragraph Types to be included. I cannot find any resources in the dataLayer issue log that mentions others using this module with custom Blocks or Paragraph Types.

💬 Support request
Status

Active

Version

2.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024