-
I’m setting up a fresh new Discourse forum.
-
I’ve already copy/pasted GoSquared 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:
_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 theuserId
used by Google Analytics:
<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!