Priority or Disable Sources? - google-fit-api

I have a user where if I upload data to their account, I get a successful message back from Google Fit, but I cannot that data back from the aggregated feeds nor does the user see the data in the Google Fit app.
For example, the upload of:
{"dataSourceId":"raw:com.google.step_count.delta:132640741942","minStartTimeNs":1590015600000000000,"maxEndTimeNs":1590102000000000000,"point":[{"endTimeNanos":1590020944666000000,"dataTypeName":"com.google.step_count.delta","startTimeNanos":1590015600000000000,"value":[{"intVal":18102}]}]}
Results as
{"minStartTimeNs":"1590015600000000000","maxEndTimeNs":"1590102000000000000","dataSourceId":"raw:com.google.step_count.delta:132640741942","point":[{"startTimeNanos":"1590015600000000000","endTimeNanos":"1590020944666000000","dataTypeName":"com.google.step_count.delta","value":[{"intVal":18102,"mapVal":[]}]}]}
But a read does not contain this information. I cannot reproduce this on other accounts. Is there a way to disable DataSources?
Eric

Related

Does Firebase Analytics link data to user identity?

I am trying to publish my React Native iOS app (which uses Firebase Analytics) on the App Store. The App Store requires me to specify what data is linked to the user.
The problem is: I cannot figure out whether Firebase Analytics links the data it collects to the user identity.
Specifically, I am unsure if Firebase Analytics links data from the following categories to the user identity: Contact Info, Identifiers, Diagnostics, Location, Usage Data, and Other Data. Can anyone advise?
I found Google documentation explaining how to enable/disable privacy settings: Privacy controls in Google Analytics
For location data, they state: "You have the option to enable/disable the collection of granular location-and-device data on a per-region basis. Analytics collects this data by default."
For user level data acccess, they state: "For Universal Analytics properties, you can pull event information for any given user identifier via the User Explorer report or the User Activity API. These features allow you to analyze and export event level data for a single user identifier. " -- I think this means that the data is in fact linked to user identities if you use Firebase Analytics.

getting firebase campaign information from flutter app

I'm writing a flutter app and I'm trying to find out how to fetch campaign information from the flutter app for the current user.
so In firebase console when I go to Conversions -> Network Settings
and I generate a Click campaign URL with some relevant values to Source, Medium, Campaign, Ad Network Type and Creative.
now when the user installed the app from that click campaign and executed the app, I want to be able from flutter to be able to fetch these parameters.
any ideas how to do so?
I thought i'll find it in the flutter analytics API but so far no luck.
any information regarding this issue would be greatly appreciated.
thanks!
There is no public API to get the campaign information or other data from Google Analytics for Firebase.
The only ways to get analytics data from Firebase are:
exporting the raw event data to BigQuery, and doing further/custom analysis there.
exporting the data from the charts to CSV by clicking the Download CSV option from the ⠇ overflow menu.
As far as I know neither of these exports the definitions of your campaigns however. The best I can think of is to replicate the parameters in your app. I realize that's not ideal, so hope someone knows of a better way.

Google Analytics - flagging PII/NPI (personally identifiable information & non-public information)

Can you set up alerts in Google Analytics to flag potential PII/NPI such as name, email address, billing address, billing details etc.? If so, how?
First I have do say I do not understand the downvote(s). For example I have seen applications with user logins where a full name was part of the page title - combined with time based dimensions that gave profile that say which user looked at what page at what time, and that would be clearly illegal. Even worse I have seen a case where security tokens were transmitted to GA that allowed access to secured resources. So clearly accidental transmission of PII to Google Analytics is a real thing.
Unfortunately there is not much you can do about it. You can either do a custom report with relevant dimensions and have it sent to you for a manual audit, or pull them via the API and have them programmatically examined via regular expressions that look for patterns like e-mail addresses etc. But by the time you can do that it is already to late, the data will already be permanently recorded in the GA property.
You have to stop this before the data is collected - if at all possible already in the website (via form validation etc), or use Google Tag Manager with custom javascript variables with validation rules, or filters in the analytics view (the latter being cumbersome and not very promising for this purpose).
The good news is that GA will not suddendly start to track PII on it's own. So you only need to check if your GA account tracks PII when you set up the account. Collect a few days data, validate that everything is okay, make changes as necessary and after all flaws are straightened out copy the view to start data collection from scratch and drop the old view if it contains PII.

How to share a part of the site in Google Analytics

we have events listing website and events from different organizers are grouped (by URL), like -
www.site.com/organizer/event1
www.site.com/organizer/event2
www.site.com/organizer/event3
etc. How to give an organizer an access only to his/her part of the site's Google Analytics?
Easy way -
An organizer registers in Google Analytics
An organizer creates a counter in Google Analytics
An organizer sets this counter in his/her profile on our website.
We add this counter to our Google Analytics code on www.site.com/organizer/* pages
He/she clicks on some link in the profile and sees the GA stat only for own events.
The way I want it:
He/she clicks on some link in the profile and sees the GA stat only for own events.
Is this possible with some API to separate statistics for www.site.com/organizer/* and share a private link to it with organizer?
After reading your comments in another answer (which is basically just a copy of the comment I left on your question). I have changed my recommendation left in comment, think you should use the Google Analytics API for this.
Since you want to give others access to your own data I suggest you use a service account. You will need to do this in a server sided programing language, say PHP or C#.
Every night run a job that will extract the data you want though the Core reporting API. Store it in the database then create a page that will then display only the data you want to the different people. You will only need to run your job once per day as the data for previous days will never change. Wait at least 24 hours to get the data as data hasn't completed processing for 24 hours.
I am not sure what language plan on using but these tutorials should get you started: Google Service Account with PHP or Google Analytics API Authentication with C#
I would create different profile views with filters to include only the subset of data for the subpages.
This way, you can add a specific user access rights to that specific profile only, so they can only view that profile when they log in.
Create an include only filter which filters on Request URI: /organizer/event1, /organizer/event2, /organizer/event3 etc.

Google analytics api

I would like to have a div on my companies website that is filled with links to our most-visited pages dynamically by querying our google analytics account. From everything I've been looking at in the DataExport API though, it seems like the user viewing the site has to authenticate. Am I missing something?
This is correct: google analytics only supplies exported data to an authenticated user (you wouldn't want it otherwise after all, with your competitors peeking at your data, right?-).
You can run the application querying analytics separately, with all required authentication, and have that application supply such data selectively to "your company's website" with whatever level of validation you think is warranted (to avoid snooping competitors) -- if the exact subset of data that you supply (just most-visited pages, for example) is not sensitive according to your judgment, you may in fact get away without the "validation" part!-).
You could add a server side script that grabs your analytics data using the api and write some javascript that inserts it into the div.
There are a number of different client libraries for google analytics you could use.

Resources