Sending XDM event from custom code | Community
Skip to main content
Level 3
May 24, 2024
Solved

Sending XDM event from custom code

  • May 24, 2024
  • 1 reply
  • 785 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by MahimitraCh

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 

1 reply

bjoern__koth
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
May 24, 2024

Hi @mahimitrach 

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!
MahimitraChAuthorAccepted solution
Level 3
May 25, 2024

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 

bjoern__koth
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
June 13, 2024

Glad you figured it out!

Cheers from Switzerland!