How to send a value in Database to Google analytics? - php

I manage web application which is made by Symfony2(PHP).
I measure some value in Database (for example, register User per a day) on management screen made by myself.
But I want to compare this value with data on Google analytics.
so I want to know how to send a value in database to Google analytics.

You could check the Data Import section on Property level, in Admin menu. You can find various range of data, that can be imported into Analytics, and applied to your reports.
It's not clear from your post, if any of these would be a solution for you. The detailed description of this feature is available here.
Personally, I'd do it reversed, and collect GA data for my management screen via GA API, if I had a management screen already.

Related

Google Analytics API: export data everyone session

I want to get these data from Google Analytics https://support.google.com/analytics/answer/3437719?hl=en
How can I do it? Tried through the Reporting API, did not work.
You cannot, at least not for the more "exotic" fields (fullVisitorId, Nr. of session etc), at least not via the Reporting API). As the title of the linked page suggests this requires integration with Google's BigQuery product which is only available for GA360 clients.
You can of course get the more mundane dimensions and metrics (i.e. the ones that are accessible via the interface), but I don't suppose your are talking about that (and if you do you should show us what you tried so far).

Real Time Database on Android with Google Maps

we have a android project that needs the following objectives:
*we also have a web application for this app that needs to communicate with the same database as the android application
what I have done so far:
a view of a map with a pinpoint on my current Location
mysql db containing information (including latitude and longtitude position)
registration and login
Real Time Database Objectives:
state that people are online or offline(updating a database).
Google Map Objectives:
When I press a button, the map will show other users who are online within a given radius so basically I need to view online people who are near me
Send a message to them [2 ways]
2.1 I send them a message by clicking their icon
2.2 I send everyone[online people within the radius] the message
Questions:
I am currently using php mysql for login/register. Can I use this for a real time database or is there any other way?
is Firebase somehow similar to a hosting site?
if there are other needed information needed, pls inform me, I may not have included information that could help with my questions :)
ill update my question too if I have more questions.
thank you.
I think for your requirements its is more appropriate to use Firebase as it fulfills all your expectations and provides additional features.

Google Analytics for Advanced Data Extraction

I am planning to use the FREE Google Analytics as the engine for analytic for an ecommerce website. Is it possible for me to do the advanced data extraction from Google Analytics for the following task?
Every merchants will have their own analytic statistic on the website control panel to view how is their store page performing, which product people view the most, and etc detail statistic info.
Web system will able to use Google Analytics to have deep understanding about each individual customer like what product they view the most, how frequently they visit and etc. Then, using the info to provide most relevant suggestion to each individual customer.
Is this possible to be done with Google Analytics or I really need to have my own analytic system & store all the data myself?

How to retrieve real time traffic and display it onto an admin dashboard?

I'm looking for a way to retrieve and then display (with some Highcharts - like library) the current traffic we have on the website. The same way google analytics displays it on the gioogle analytics admin dashboard, but I'd like to retrieve with some API and display it directly on our custom dashboard.
After reading through the complete google analytics documentation, I've understood that
"Google Analytics API doesn’t support real-time stats yet… but this is
still useful if you want to display pageviews or number of visits on
your site and have it automatically update."
So my question is, is there another API to retrieve and display the current/instant traffic on a website on our custom admin dashboard. Or, is there a workaround (with AJAX ?) to do so with the google analytics API ? ( i've seen that you can retrieve the amount visitors on a given perido, so even if this is not real time, fo now it gets as close as I can to my goal)
I'm working with php and javscript
Thanks
No - the current API doesn't currently support true real-time statistics. It is the most highly requested feature though:
Google Analytics developer issues and feature requests
Access to Real Time Data
We develop services which integrate with the API. On average I estimate the latency is about 1-3 hours. I believe the larger your dataset it the longer the latency.

Simplest way to get data from Google Analytics?

I am building a service like Wix.com, users can build simple mutli-pages website with ease. Every website will be including in a global Google Analytics account with a unique profile, then the tracking code is to be placed in the website pages.
Now, on the website dashboard i want to show the online visitors and the total number of visists for the website for each website separatly, trying to do so i have :
Tried using GAPI (http://code.google.com/p/gapi-google-analytics-php-interface/) but due to Google Analytics major update it doesn't work anymore.
I found Google Core reporting API for Analytics, but i believe it's made for 3rd party applications that accesses GA data for their clients, meaning that the user should have a Google account and GA profile for the website, and the App just connects to the account and retrieves data. And this of course isn't the case here; i can't ask the user to create a Google account and embed the tracking code in the website HTML; else what am i here for ?
Got the picture ? I need the simplest method to do this, no fancy stuff.
PS: Minutes ago i found this: Google Analytics Query Explorer (http://ga-dev-tools.appspot.com/explorer/), it's a 3rd party app that builds custom queries for GA and gives you the link, something like that :
https://www.googleapis.com/analytics/v3/data/ga?ids= (the ID) &dimensions=ga%3AvisitCount&metrics=ga%3Avisitors&segment=gaid%3A%3A-1&start-date=2013-02-01&end-date=2013-02-23&max-results=50
Now, trying to access the URL (thinking; this is easy :) ) the respond is a request for login first :
{"error":{"errors":[{"domain":"global","reason":"required","message":"Login Required","locationType":"header","location":"Authorization"}],"code":401,"message":"Login Required"}}
Thanks in advance.
Unless you have fewer than 50 clients this plan is not going to work the way you're asking for. (There is a limit of 50 profiles per account.)
The client will have to make their own GA number and provide it to you as a setting for their website.
In order to display the customers reports on a dashboard on your site you're also going to have to get them to authorize a GA App you create for access.

Categories