My problem is simple : I would like to do some statistics on a website my friends and I visit.
So I would like to find a way to connect each instance of my info-gathering google chrome extension in order to gather them in a common place for analysis.
As a first thougt, one ideal solution would be to get read-write access to a shared google drive spreadsheet, but I am open to other solutions.
Is it feasible ? Can anyone point me to the good direction ?
Thanks a lot
A spreadsheet is easy and works well for few users and rows, however the easiest way is to use google analytics, extensions support them and there are samples for custom events.
If you go the spreadsheet route use appendrow to avoid concurrency issues.
You would need to use oauth for spreadsheet access or set sharing to public write.
For a more sophisticated solution with total control of the data and scalability use Google bigquery.
Related
I'm just starting with Google Maps API (GMA for short) and I came to understand it is good to have the GMA Key (GMAK for short) regardless of not being necessary IF you are not to set foot beyond the limit quota. It happens that I probably won't but that is not the concern here.
I just need to note that I'm referring to the v3 version of GMAK. And I have not previously used a GMAK or the GMA; I have always used the code you get from Google Maps itself. So I really don't know much regardless of searching a good amount of time and knowing I will use JavaScript to use the GMA.
I have a lot of websites that I own and some more I administer. But just recently I got the need for GMA for myself and some clients will need too. So here is the question:
Do I need to use a GMAK for each website - meaning creating a Google Account for each website? I mean, is the quota specific to the GMAK or each service will have it's own quota?
And supposing the GMAK quota is specific to website/app and not the GMAK itself: in case of me not being the administrator for one of my ex-clients website anymore, should I inform that I will revoke the GMAK access for that website? Or should I make them provide one GMAK to begin with and not worry it if they finish the contract with me?
I worry and fear that Google will revoke my GMAK because maybe OR all the websites together will reach the quota OR some website of my client will reach it and if they don't pay me, all of my other services will lose the function by not having a GMAK.
The quota belongs to "projects", so you may say it's specific to a key, because each project does have it's own key.
When you can't give a guarantee that access to your key will be granted in the future you should either not use a key or force the client to create an own project and use the key of the client.
However, no matter if you grant access in the future or not, I wouldn't recommend to use your key at all, because when any of the clients will violate the TOS in any manner(there are more cases than hitting the quotas) your own key/project is affected(and of course any webpage/app of any client that uses the particular key). In worst case it may be that your entire google-account is affected.
So you should either use the key of the client(when available) or omit the key.
I work for a non-profit that holds free sports and physical activity events. I'm am trying to set up a system to store and collect information about our membership and the events we hold, using Google Docs as the user interface and Google Cloud SQL for data storage.
Like most non-profits, we do not have a lot of resources available for advanced computer programming. I would like to use Google Forms as a simple UI that our research and evaluation staff can use to build data collection tools without coding. The ease of access to the responses in Google Sheets is great; however, we hold a lot of events and will quickly exceed the 2 million cell limit. So, I think we will need to store the responses in a SQL database.
What I would like to do is modify the action performed on submit, such that the form:
Does NOT submit to a sheet
Connects to a SQL table (I've set this up on Google Cloud SQL)
Dumps the responses into the correct columns
If the form was modified, add any new columns to the table (like Forms does with attached sheets).
I know that Google Apps Script can connect to external databases through the JDBC service (https://developers.google.com/apps-script/guides/jdbc) and I know that I will need to use the getItemResponse method (https://groups.google.com/d/msg/google-appengine-stackoverflow/laLkcneaqZo/PfPKKYlmva8J) to execute this.
I have very little experience with Google Apps Script or JavaScript in general....basically, the most I've done is finish the Codecademy JavaScript course. However, I am a quick learner and I'm looking for a little example code that might get me started (remembering that I have almost no experience).
I've searched through this forum, GitHub and everywhere else I can think of, but cannot find something that is quite right. I'm mostly pointed to the JBDC documentation, but do not know how to use it. Any help you can provide would be much appreciated.
Brett
I wrote some articles about this at my blog, Bit Vectors. This article might cover most of what you need. That specific article explains how to build a Google Apps Script solution tied to a Google Sheet file. The GAS solution front-ends Cloud SQL. The end-user sees a web page / form, and if you want, the Google Sheet itself. To answer your list items:
1) The web form does write to a sheet, but in the software, you can easily prevent this
2) The web form definitely connects to your Cloud SQL table / database
3) The solution writes to the table(s) / column(s) you want through stored procedures
4) The solution will not modify the data table structure if you change the form - you would have to handle this change yourself
See a demo here.
HTH!
Frank
I have been assigned a task which in most inner form is just updating a shared doc (whose owner is my friend) on google drive using javascript.
But I am completely clueless on this, All I know is i might have to use google app scripts, but can i use google app scripts for this? what are my options and how can I use app script with javascript?
Thank you and my apologies if this question sounded lame...
You have two options. You need to choose between them, then do your research to understand each one. The two options are mutually exclusive, so once you choose one, you should ignore the other, otherwise you'll confuse yourself :-)
Use Google Apps Script. This is server-side Javascript and is decribed here https://developers.google.com/apps-script/ and the Google Drive aspect is described here https://developers.google.com/apps-script/reference/drive/
Use the Drive SDK. Since you said Javascript, this will be using client-side Javascript. The top level doc is https://developers.google.com/drive/, plus you will need to understand OAuth https://developers.google.com/accounts/docs/OAuth2UserAgent
Remember, as you are doing your research, make sure that you are only reading about option 1 or option 2.
So I'm creating many Windows (8) Store apps and I'm wondering what are my best choices to help my users but possible bugs (if they ever occour).
I was thinking about a log4net like solution to a rollingFile. Or maybe on the appcrashed event send a crash report to my own server.
What are my options? what's the "best" option?
I'd recommend using the new Google Analytics service. Just add the free Google Analytics SDK for Windows 8 to your app and automatically track unhandled exceptions (or add 1 line of code to track them manually). Super easy, plus you get a ton of great analytics tracking for your app.
You could use log4javascript and use the RollingFileAppender from here: http://pastebin.com/MdCtjGt8 It uses the momentjs lib to calculate the file name but you can substitute this with your own calculation.
I need to add analytics feature to our web service so we can provide our customers a way to understand their own content. I was wondering if anybody can provide some pointers, guidelines on designing such solutions. I know this is a little too open-end. Here is a list of concrete questions, and I have a vague idea on some of them but I would like to see more references or best practices:
How to organize the database for analytics data so it won't hurt site performance and scalability?
How to implement the tracking code? JavaScript?
We allow people to embed the content in other web sites, using iframe. How do we track web analytics for that? For example, how to we track the traffic source?
How do we track the "mentioning" on social media? Like, somebody blogged about a piece of content, or twittered/facebook'ed the content.
Thanks!
Are you absolutely sure you want to build your own analytics rather than use Google Analytics?
If you want to mash up the data to add value for your clients, you can use the Analytics Data Export API -- that way, your time is spent on that end of the deal, rather than reinventing the analytics wheel