# GoSquared People integration - how to get user name and email in Javascript at \<head\> customization?

**URL:** <https://meta.discourse.org/t/gosquared-people-integration-how-to-get-user-name-and-email-in-javascript-at-head-customization/44917>\
**Category:** Product Support\
**Created:** [27 במאי,‏ 2016,‏ 6:48pm UTC](https://meta.discourse.org/t/gosquared-people-integration-how-to-get-user-name-and-email-in-javascript-at-head-customization/44917 "2016-05-27T18:48:23Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![jbruni](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jbruni/32/106798_2.png) [@jbruni](https://meta.discourse.org/u/jbruni)\
**Post date:** [27 במאי,‏ 2016,‏ 6:48pm UTC](https://meta.discourse.org/t/gosquared-people-integration-how-to-get-user-name-and-email-in-javascript-at-head-customization/44917/1 "2016-05-27T18:48:23Z")

</div>

- I’m setting up a fresh new Discourse forum.

- I’ve already copy/pasted [GoSquared](https://www.gosquared.com/) tracking code into the `</head>` section (at `/admin/customize/css_html/1/body-tag`)

- Now, for their “People” feature, they provide the code snippet below:

```plaintext
  _gs('identify', {
    // TODO User ID
    // id: 123,

    // TODO User's full name
    // name: 'Jony Ive',

    // TODO User's email address
    // email: 'jony@apple.com',

    // TODO User's signup date
    // created_at: '2015-01-01 00:00:00'
  });

```

- I am supposed to edit the code above, providing user’s **id** , **name** , **email** and **created\_at** properties.

- **How can I do this?** Please, help.

- In fact, I was able to grab the user **id** by using the awful hack below, in the `</body>` section. It grabs the `userId` used by Google Analytics:

```plaintext
<script>
  // GoSquared People
  if (ga && ga.q && ga.q[0] && ga.q[0][2] && ga.q[0][2].userId) {
    _gs('identify', { id: ga.q[0][2].userId });
  }
</script>

```

- So far, so good. How can I do this properly, and adding **name** , **email** and **created\_at**?

- Note: I am using `[Communiteq](https://www.communiteq.com) (formerly DiscourseHosting)`. So, I do not have access to the Discourse installation/system. I only have access to the user interface.

Thank you!

---

_[View the full topic](https://meta.discourse.org/t/gosquared-people-integration-how-to-get-user-name-and-email-in-javascript-at-head-customization/44917)._
