Expand my Community achievements bar.

SOLVED

Sending XDM event from custom code

Avatar

Level 3

launch-450e00021d4f.min.js:16 Uncaught (in promise) Error: [alloy] The library must be configured first. Please do so by executing the configure command.
    at s (launch-450e00021d4f.min.js:16:15982)
    at launch-450e00021d4f.min.js:16:16678
    at new Promise (<anonymous>)
    at launch-450e00021d4f.min.js:16:16647
    at <anonymous>:1:1

 

 

there's issue in launch or alloy library, we are not getting this error on otherr iframe pages. this is error coming from alloy('sendEvent', {
      'xdm': clone(xdmLinkObject)
    })

which sends server call


whole code is running in iframe, we are fetching values present in dataLayer from iframe on main page.

1 Accepted Solution

Avatar

Correct answer by
Level 3

Hey we found out that datastream id is not attached to that page. As it's big website, and this is new third-party url we took time to figure it out. Now its resolved. Thanks 

View solution in original post

3 Replies

Avatar

Community Advisor

Hi @MahimitraCh1 

is the iFrame a code-only implementation without Launch?
It is missing the initialization

 

https://experienceleague.adobe.com/en/docs/experience-platform/web-sdk/commands/configure/overview

Cheers from Switzerland!

Avatar

Correct answer by
Level 3

Hey we found out that datastream id is not attached to that page. As it's big website, and this is new third-party url we took time to figure it out. Now its resolved. Thanks 

Avatar

Community Advisor

Glad you figured it out!

Cheers from Switzerland!