Do you know of any addon on Heroku that provides a report on the usage of API/Routes that are being called by end users?
I have tried searching heroku with different keywords but did not help
Check out this package over here: https://www.npmjs.com/package/universal-analytics.
This would work in any NodeJS environment so it works even if you are not using Heroku.
If you are looking for a Heroku only solution, Just search for "analytics" in Heroku Elements: https://elements.heroku.com/search?q=analytics and you'll find a lot of results.
If you do want to put the burden on the server, you can just use Google Analytics on the client side. It is very strait forward to install and use. Just plug it into your website. However, this would not work for API routes and only for the web pages that the users visit.
Instead of an herkou add-on, add your own logging.
If you want to be able to go back and look, use google analytics and do Events.
Related
I just finished my JavaScript course and I understand pretty well how things work.
I have started my React journey with a project in mind
So I want to create a mobile application using React Native and I also want that same application to be a website with domain and url since I want the website to work with with Google adsense.
I'm a little bit confused about things cause I want to use mysql database, node for back end and React for the front end, but I don't know if this is possible to just create one application that work as both mobile app and a website.
Thank for your assistance and advice in advance.
A way to use practically the same code for a web frontend and mobile app is using tools like Capacitor. It make it quite simple, and also allow you to use some mobile native API's.
Here's how to integrate it with react js Using Capacitor with React
So i'm designing a new application with Nodejs and packaging into an executable then putting a release in github, I want to be able to monitor how many people are using my executable?
I was thinking about creating an api server and my application just make a call to that API service but I thought there might be something already out there any help?
The easiest way is to connect third party services that do that. The most famous one is Google Analytics
You just need to create your developer account and embed a few lines of tracking code. After that you can see full info about your visitors including their location.
I'd like to use Google Analytics to track usage of a command line Node app. Tracking will be strictly opt-in. I'd like to track basic usage, plus which operating system and version of Node was used.
I've found the Measurement Protocol, but I'm wondering whats the best way to set up Google Analytics.
You can choose from Web or App - App seems the best fit, but then I'm sent to Firebase to set up an iOS, Android or Web app. None of these are correct. So is 'Web' the best way to track my app usage? Or is Google Analytics not the right approach?
Seems like the best approach is Google Measurement Protocol. There's a Node library for it.
Really Google Analytics is completely designed around web apps and more recently mobile apps, it has concepts like "page views" which don't make sense for CLIs, and Firebase Analytics is only for Android and iOS.
You might be able to shoehorn he CLI use case for some purposes. Alternatively, you could consider using a cloud database like Firebase real-time DB to capture your own events.
Google analytics really isnt designed for something like this. You have only two options web app where everything is page based. http://example.com/hello.php vs using a mobile app where everything is screen based. Home, about, help.
I have done this before with several console applications, a custom SSIS task (dll) and an arduino project. I chose mobile application mainly because i thought it was closer. I know of someone who did the same with an actions on google project.
In the end what you use will be up to you. Just consider what it is you want to track exactly and lay it out before you start.
If you choose mobile make sure you send Screen views and not page views. The Google analytics website is split you cant mix and match the hit type.
Workaround for createing moble account without firebase.
create a new web property on Google analytics type Web
create a new view under that web property type mobile.
We made Console Cat for this exact purpose! It's built from the ground up to track telemetry / analytics for CLIs including things like flags, command duration, version, etc.
My company is wanting to migrate their entire site to Shopify. We use node for our backend, so we're hoping to integrate that into the site. I am new though, and not experienced with node or Shopify app development, so I was hoping to find a tutorial or guide, but it seems that almost all resources are specifically for ruby. Is there anything out there I'm just not seeing?
Bonus question:
Is express routing possible on Shopify?
The node-shopify-api library has some decent examples as well as being a very useful core of a Node based Shopify app.
Routing is possible only for apps attached at a proxy url.
Do you know any node.js application that do something similar to http://olark.com. Not necessarily for multiple website, I just need it for single domain.
I just want to install it myself on heroku and run chat customer support for my website on it.
Thanks,
Michal
Try out opensource-olark. I built it for my own use - it may be useful to you. It is not entirely based on Nodejs. But it works exactly like Olark. It uses strophe.js - A xmpp push based library for jabber which works with BOSH
try http://www.vivocha.com, based on node.js
It's very symple to use and you can integrate with other applications via API (with CRMs and ticketing systems for exemple).
This platform, with only one line of code on your website, allow you to configure all the widgets, without other tech skills needed.
And also, you can adding voice on your website, so you can call with your visitors directly on your web pages.
There are open source tools that you can check out like :
http://nowjs.com
http://www.socketstream.org
They allow you to incorporate realtime features into your nodejs app & you can probably have a very simplified olark-type app in just a couple lines of code.