# Javascript Embedding Discourse Comments - User Agent

**URL:** <https://meta.discourse.org/t/javascript-embedding-discourse-comments-user-agent/128377>\
**Category:** Product Support\
**Created:** [September 12, 2019, 8:33am UTC](https://meta.discourse.org/t/javascript-embedding-discourse-comments-user-agent/128377 "2019-09-12T08:33:18Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Jono\_Brain2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jono_brain2/32/106550_2.png) [@Jono\_Brain2](https://meta.discourse.org/u/Jono_Brain2)\
**Post date:** [September 12, 2019, 8:33am UTC](https://meta.discourse.org/t/javascript-embedding-discourse-comments-user-agent/128377/1 "2019-09-12T08:33:19Z")

</div>

Hi

We are looking at embedding comments to pages on our website using the Embed JS feature (which looks awesome).

We have just run into a little issue and its similar to this:

> [@Onebox user agent](https://meta.discourse.org/t/onebox-user-agent/61498):
>
> It appears that when onebox fetches a url to grab opengraph data, it sends a user agent string of “Ruby”. Can this be updated to provide a more useful user agent that identifies the crawler properly?

We use prerender to server side render pages for certain user agents e.g. Google. We have added detection for 'Onebox which works great. However we need something similar for when the Embed scrapes the page.

I have tried to find the user agent sent but I haven’t managed to find it. Can anyone tell me what it is?

---

_[View the full topic](https://meta.discourse.org/t/javascript-embedding-discourse-comments-user-agent/128377)._
