Expand my Community achievements bar.

SOLVED

Web SDK Not Found Error When Testing Locally

Avatar

Level 2

Hi Community,

I am trying to implement the Adobe Experience Platform (AEP) Web SDK to ingest data. I have followed all the steps outlined in the tutorials, but I’m running into an issue during testing.

Here’s what I did:

  1. I copied the JavaScript library from Data Collection → Environments → Development.
  2. I included this JavaScript in a simple HTML page on my local PC.
  3. When I load the page and open the debugger, I see an error saying: Web SDK not found.

Questions:

  1. Is it mandatory to move this implementation to a cloud-hosted page for it to work? Does the Web SDK not support local testing?
  2. During tag creation, does the Domain Setup field need to match the domain of the page where I’m testing? Could this mismatch be the reason for the "Web SDK not found"?

For reference, these are the steps I have completed:

  1. Implement Adobe Experience Cloud with Web SDK tutorial
    https://experienceleague.adobe.com/en/docs/platform-learn/implement-web-sdk/overview
  2. Create an XDM schema for web data
    https://experienceleague.adobe.com/en/docs/platform-learn/implement-web-sdk/initial-configuration/co...
  3. Configure an identity namespace
    https://experienceleague.adobe.com/en/docs/platform-learn/implement-web-sdk/initial-configuration/co...
  4. Configure a datastream
    https://experienceleague.adobe.com/en/docs/platform-learn/implement-web-sdk/initial-configuration/co...
  5. Install Adobe Experience Platform Web SDK tag extension
    https://experienceleague.adobe.com/en/docs/platform-learn/implement-web-sdk/tags-configuration/insta...
  6. Create data elements
    https://experienceleague.adobe.com/en/docs/platform-learn/implement-web-sdk/tags-configuration/creat...
  7. Create identities
    https://experienceleague.adobe.com/en/docs/platform-learn/implement-web-sdk/tags-configuration/creat...
  8. Create tag rules
    https://experienceleague.adobe.com/en/docs/platform-learn/implement-web-sdk/tags-configuration/creat...
  9. Validate Web SDK implementations with Experience Platform Debugger
    https://experienceleague.adobe.com/en/docs/platform-learn/implement-web-sdk/tags-configuration/valid...

Any insights or suggestions would be greatly appreciated!

Thanks in advance!

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @lnl669 

first of all, you should be able to run the Web SDK on your local environment.


Can you confirm the following

  • you have set up a Datastream in the Data Collection > Datastreams configuration
    bjoern__koth_0-1733728662366.png
  • you have the Web SDK extension installed in Adobe Launch, referring to your datastream configured above (Extensions > Installed)
    bjoern__koth_1-1733728777059.png
  • you have a Development library in Adobe Launch that has the Web SDK included (Publishing Flow > <your library>)
    bjoern__koth_0-1733729061315.png

Once you have built your library, you should also be able to run this in your console

 

alloy

 

bjoern__koth_3-1733728937015.png

Cheers from Switzerland!


View solution in original post

9 Replies

Avatar

Correct answer by
Community Advisor

Hi @lnl669 

first of all, you should be able to run the Web SDK on your local environment.


Can you confirm the following

  • you have set up a Datastream in the Data Collection > Datastreams configuration
    bjoern__koth_0-1733728662366.png
  • you have the Web SDK extension installed in Adobe Launch, referring to your datastream configured above (Extensions > Installed)
    bjoern__koth_1-1733728777059.png
  • you have a Development library in Adobe Launch that has the Web SDK included (Publishing Flow > <your library>)
    bjoern__koth_0-1733729061315.png

Once you have built your library, you should also be able to run this in your console

 

alloy

 

bjoern__koth_3-1733728937015.png

Cheers from Switzerland!


Avatar

Level 2

Hi @bjoern__koth , 

 

Thank you so much for this complete description.

I believe I did all the steps. I will cross-check and test again.

 

Avatar

Community Advisor

Hi @lnl669 
you're welcome! I just double-checked and cannot find any occurrence of "Web SDK not found" in the launch code.
Is that maybe some error message from your end?

Cheers from Switzerland!


Avatar

Level 2

Hello @bjoern__koth , 

 

I did the cross check please find this screenshot: 

 

lnl669_1-1733738193832.png

 

 

I have done the test which you suggested, according to this file is there but in debugger it is showing web SDK not found.

I would like to know if I am missing thing. 

 

 

Avatar

Community Advisor

Looks good. Your request payload is in the "events" section.

bjoern__koth_0-1733754596781.png

To be honest, using the debugger is extremely annoying, and I would recommend using one of the following extensions

Both highly recommended!

Cheers from Switzerland!


Avatar

Community Advisor

No problem,

let me know if you have more questions 

Cheers from Switzerland!


Avatar

Employee Advisor

Chrome won't let you set cookies when you open a file locally with the file protocol. So, the cookie setting parts of Web SDK won't work and you might experience anomalies related to this when playing around with local files. Do you also see this error in the console?:

dwright_0-1733770470041.png

That's why we provide the Luma website for you to use while going through that tutorial--so you have a hosted website you can point to your own tags property. I produced that tutorial and it always makes me happy to see people using it. Please let me know if you have any feedback.

Avatar

Level 2

Hello @dwright  , 

 

Thank you so much for this tutorial.

It is really helpful.