Widget for Angular 7 Website?

4 Comentários

  • 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
  • Craig

    I have it working on an Angular 8 app. Simply added the widget script code to the index.html...However, due to Angular Routing I believe, Zendesk cannot track the visitor page. It is always shown as the root domain. Considering the number of Angular apps out there now, it would be smart for Zendesk to build an ngx Zendesk Chat module that CAN track the visitor pages within an Angular app.

    0

Por favor, entrar para comentar.

Powered by Zendesk