API for getting visitors statistic of heroku app - heroku

Does heroku have an API for getting visitors statistic to my web app hosted on their site?
i don't really want to use Google analysis.

No it doesn't. Google (uh) for alternatives if you don't want to use Google Analytics - there are quite a few.

Related

Google MyBusiness API working in localhost, but not in hosting server

My employer has a project approved for Google MyBusiness Api. GMB Api is used to manage locations on Google and its reviews.
The problem I'm facing is that I can get the reviews in localhost, but when I try it in my main hosting server, no reviews are returned. The rest of the Apis like getting accounts and locations work fine, only getting the reviews does not work.
Is there something that I'm missing ?
It was just a temporary issue. Everything is good now.

Is there any google analytics reporting ruby gem available to get most popular products from e-commerce section ?

I am looking for a solution where I can fetch google analytics data like Popular Products, traffic on Mobile device, Avg Cart value etc.
There is a Ruby Google API client library, which is designed to call the Google Analytics Reporting API v4. The reporting API is capable of querying any of populated dimensions and metrics. The hardest part will be setting up OAuth 2.0 but after that it is all down hill. If you get stuck setting up OAuth feel free to come back to SO to ask any problems you are having with your code.

Gem to post message on google plus?

Is there any gem to post message on google plus from our rails application ?. I want to post a meesage on my google plus page whenever i logged in my application using google plus credentials. Please suggest me the gem name to do this. Thanks in advance.
EDIT
I have a app in goole plus. On behalf of my application users, my app should post messages.
I suggest to use gem 'google_plus'`
As Google plus having so many restrictions. Still I would Like to Share a link you can follow that..
How to share content from our site to google plus
For more reference:
https://developers.google.com/accounts/docs/OAuth2
https://developers.google.com/+/web/share/interactive#button_attr_calltoactionurl
I hope it will work fine...
Yes, there's a Ruby client library provided by Google which allows you consume their Google+ API
https://developers.google.com/api-client-library/ruby/apis/plus/v1
UPDATE
The URL above points to Ruby client library. The API you're looking for is moments.insert
https://developers.google.com/+/api/latest/moments/insert
There is an official Google API Client gem. However the Google+ API does not allow standard automated posting to a profile. The recommended approach to share posts is the share button or the interactive share API.
The automated posting that Google+ does support are:
App activities/moments are a way to make actions within your app visible to other users of your app. They do not appear in the Google+ posts stream.
Domains API can be used with Google Apps accounts to create posts that are limited to users within the company.
Pages API can be used to post to a page (not a profile) but is limited to approved partners.

Using Google Analytics with a Third-Party Checkout (Magento)

We currently have a Drupal site that is content-focused and are using Google Analytics for metrics. We are partnered with a company that has a Magento site and cart and will be using them for eCommerce. How do I successfully add our GA tracking code to their domain and cart pages to ensure I am tracking conversions from acquisition to checkout success (or dropout)?
Is it just the simple cross-domain code outlined in the Google knowledgebase?
Thanks in advance
Yep, should be as simple as cross-domain tracking. Your best bet would be to setup a staging/dev environment to test things out and then push to production.
You can use tools to monitor the http requests getting sent to the server to make sure your tracking is working.
For Firefox, I use HTTPFox and for Chrome it's Google's homegrown Google Analytics Debugger.
Best of luck!

How can google analytics be integrated in a desktop application (MAC)..?

Could anyone help or refer how it can be done..I searched over the net and what i felt is that its only for mobile and websites.
It's for websites. Many of the concepts of web analytics (number of pages viewed for example) don't even make any sense on a desktop app, because they're not organized like a web page.
If you want to use Google analytics data from an analytics account Google provides a data export API.
If you want to track your native application then as Catfish_Man (great name btw!) said, it is not really possible. That isn't totally true, as you could fake it, but the paradigm is so different that you would be better off creating you own solution.
You might want to see this library for GA on desktops
http://code.google.com/p/jgoogleanalytics
Google Analytics doesn't provide a native Mac app integration, but you can use the Measurement Protocol Overview to send raw data to your GA property from your account.
Just create a mobile app property and then start sending raw GA events using HTTP. There are couple Obj-C wrappers available like https://github.com/swisspol/GARawTracker or https://github.com/stephenlind/SimpleCocoaGoogleAnalytics.

Resources