Widget for Angular 7 Website?

3 コメント

  • Chris Stock
    Community Moderator

    Hi Brett, we have the web widget enabled on an Angular 8 site. We put the widget <script> in the head of the main index.html file.

    0
  • Joseph Cobbinah

    Good evening Chris, hope you are great. Thanks for the awesome work

    Does this work when the project is not in production ie. running on my localhost? I keep getting this error whether I put script in the head or body.

    GET http://localhost:4200/%E2%80%9Chttps://static.zdassets.com/ekr/snippet.js?key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx%E2%80%9D net::ERR_ABORTED 404 (Not Found).

    Any help will be greatly appreciated!

     

    0
  • Chris Stock
    Community Moderator

    Hi Joseph Cobbinah, it works fine for us in development mode. The error suggests that maybe it's trying to load it as a relative url, rather than an absolute url. Check your code and make sure that angular isn't trying to do anything other than load the exact url you've provided.

    0

サインインしてコメントを残してください。

Powered by Zendesk