Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Launch extension: allow eventInfo to be retrieved with data elements #119

Open
yuhui opened this issue Apr 15, 2021 · 2 comments
Open

Launch extension: allow eventInfo to be retrieved with data elements #119

yuhui opened this issue Apr 15, 2021 · 2 comments

Comments

@yuhui
Copy link

yuhui commented Apr 15, 2021

Expected Behaviour

Given an ACDL push like so:

window.adobeDataLayer.push({
  "event": myEvent",
  "eventInfo": { foo: "bar" }
});

Then there should be an ACDL data element type that when provided with the key eventInfo.foo, the data element returns "bar".

The Data Layer Computed State data element type is not able to read eventInfo, because eventInfo does not persist in the data layer.

Actual Behaviour

There is no such data element to retrieve eventInfo fields.

Steps to Reproduce

See "Expected Behaviour".

Platform and Version

All platforms, all versions.

Sample Code that illustrates the problem

See "Expected Behaviour".

@onyx-blackbird
Copy link

I mentioned this to Benedikt Wedenik as well, so thumbs up for it. Though this is only the ACDL itself and not the Launch extension built around it. Not sure if there is now a separate github space for it.

@Aaronius
Copy link

Aaronius commented Aug 3, 2021

In case it helps, I believe you can create a Custom Code data element with the following:

return event.eventInfo.foo;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants