Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow server-side analytics #76

Open
pauldowman opened this issue Nov 5, 2015 · 11 comments
Open

Allow server-side analytics #76

pauldowman opened this issue Nov 5, 2015 · 11 comments

Comments

@pauldowman
Copy link
Member

Currently we use Segment's open source analytics.js library, which I don't think would work server side. I haven't investigated how we would make it work but it would be great to be able to log events on the server side too.

@pauldowman
Copy link
Member Author

I think the best option would probably be to add something separate server-side that mimics the same API (analytics.track()). I doubt we'd find something cross-platform that supports all of the integrations though (which might be a good thing anyway since we want to split them out into multiple packages.

It might not be a bad idea to start with just GA and Segment.

@nadeemja
Copy link

nadeemja commented Jun 1, 2016

Any progress on this? :)

@Kemingkai
Copy link

I am also interested in whether there's any progress on having an open source library for server side analytics. Thanks!

@arrygoo
Copy link
Contributor

arrygoo commented Jul 6, 2016

Currently there is no plan to implement this in the near future, but pull requests are welcome!

@Kemingkai
Copy link

Got it, thanks for your quick reply. I think this would be a bit above my abilities :)

@t3db0t
Copy link

t3db0t commented Oct 12, 2016

Hm; why is analytics exported to server at all then? It doesn't seem to even be defined on the server.
https://github.com/okgrow/analytics/blob/master/package.js#L36

@arrygoo
Copy link
Contributor

arrygoo commented Oct 19, 2016

@t3db0t the server export was left there for backwards compatibility.

@luzlab
Copy link

luzlab commented Mar 1, 2017

I saw analytics.js has a server-side Node library. I took a look but need to dig into the code to understand how to set it up. I'll spend some time on figuring this out and see if I can put together a PR.

@pauldowman
Copy link
Member Author

Thanks @luzlab. I think it only supports Segment as an integration (which of course then lets you send the data on to the other services).

@thebarty
Copy link

thebarty commented Aug 3, 2017

Hi guys, just letting you know that it would be really cool to have server-side support!!

@RichardLitt
Copy link
Contributor

Thanks for the note, @thebarty! Currently, this is waiting on community contributions, as it isn't being prioritized. If you'd like to take a crack at it, we'd be happy to review any PRs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants