Unable to send data to AEP using Web SDK | Community
Skip to main content
Level 2
September 17, 2021
Solved

Unable to send data to AEP using Web SDK

  • September 17, 2021
  • 2 replies
  • 1952 views

Hi Team,

 

I am new to the AEP Web SDK and trying to explore the capabilities of the Web SDK just by creating a static web page in my local desktop. What I had done so far is:

  • Created a XDM (ExperienecEvent) in AEP
  • Created a dataset for the XDM I had defined in AEP
  • Created a DataStream in Adobe Launch
    • Enabled AEP to send data to AEP
    • Mapped the dataset (created above)
  • Created a Property under "Tags" in Adobe Launch
    • Installed and configured AEP Web SDK, Cloud ID Service as Extensions
      • Passed my ORG ID to Web SDK while configuring and mentioned "edge.adobedc.net" as Edge domain.
    • Created some local storage variables as Data Elements
    • Created a data element of type XDM object and mapped the data elements to the respective XDM fields
    • Created rules for a particular Page Type to  send Event of type "commerce.productViews"
  • Created a Library and published it to Development environment
  • In the static web page, added the script for Development environment along with other local storage elements whose values will be mapped to the XDM.
    • Added a onload script in the body of the static page which is calling the _satellite.track('productview') after building the dataLayer.

  After doing all these, when I am opening the static page in any browser, I am getting the below error:

 

I had checked the launch-28a5d85e2c18-development.min.js which was generated by Web SDK and verified that my ORG ID is exactly same. I am not sure what is wrong here. If anyone of you can point me out what is wrong here, that will be really great.

 

Thanks a lot in advance. 

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 bitunsen

I am able to solve this by doing the following:

  • Converted the single static page into a static Web Application and deployed the application in JBoss EAP application server.

I am sure if I had used Tomcat, then as well it would have worked.

2 replies

bitunsenAuthorAccepted solution
Level 2
September 20, 2021

I am able to solve this by doing the following:

  • Converted the single static page into a static Web Application and deployed the application in JBoss EAP application server.

I am sure if I had used Tomcat, then as well it would have worked.

Level 4
September 28, 2021

Hi @bitunsen ,

 

I have written a blog on this topic. You can have a look on the same and make sure that you have covered all the steps to get your alloy beacon.

 

https://jayakrishnaap91.medium.com/adobe-analytics-implementation-using-alloy-js-aep-web-sdk-through-edge-network-959c007cbbcc

 

Thank you,

Jay.