Google analytics with a Chrome Web store packaged app - google-analytics

I have a couple of small packaged apps on the Chrome Web Store (that's packaged, not hosted, so I'm not hosting anything myself). I was wondering whether I can still use Google Analytics, and how to test whether it's working before publishing the app.
I'm guessing the answer might be no, because their FAQ just says this:
"Can I use Google Analytics?
Yes. Hosted apps use Google Analytics just like any other website does. For help on using analytics in packaged apps (and extensions), see this tutorial."
Anyone know if there's a way around this?
Resolution
Followed the advice from the answer, but with a couple of small differences. First, I did not modify in any way the code that I copied from GA. Second, I pasted my GA ID in the app publishing form in my developer dashboard (go to developer dashboard, click edit for the app in question, then find the GA field).

I hope this might help: http://code.google.com/chrome/extensions/tut_analytics.html

I recently submitted an app and found that there is a text field for adding your Google Analytics code.

Related

Tracking mobile web app with Google Analytics using the website script

I have built a web app (read: a website within a naitive app container) for iOS and Android. I started by adding the website script provided by Google to my app, figuring it would work since it's basically a website hosted within a container. The issue? Well, it doesn't work.
When I access the app from my phone, all I get within the Analytics GUI is that there is a user at page / nothing else despite how many pages I go to. I get the same result if I just browse to the website on my phone. However, if I go to the website on my computer, the script seems to pick up everything perfectly. I can see all pages I've visited and when, for example.
So I guess I have two questions:
Why doesn't the script work as expected through the app on my phone, but perfectly when accessing the webiste on my computer from a technical point of view? Does Google perform some sort of blocking regarding the request headers?
Is there any way to get the website script to work within an app or do I have to use Firebase for long-term and sustainable tracking?
Have in italics since the feeling I get when reading here is that the Google Analytics Services SDK for Android and iOS will probably be phased out sooner or later. According to this post the GA SDK is already deprecated. So using that doesn't really feel like an alternative.
Also, I am not interested in comments like "Why don't you use this analytics tool instead", or, "What's your problem with Firebase? Just use it".
There are two types of Google Analytics accounts. Web accounts and mobile accounts. Web accounts run off of pageview hits. Mobile accounts run off screenview hits. If you insert a screenview into a web account the only thing you will see is page / because its sending the in correct hit type.
The SDK is used for tracking mobile applications so it inserts screen views. You cant use the same Google analytics account for tracking with it your going to need a mobile Google analytics account if you want to use the SDK. You wont of course be able to analyse between the web and mobile accounts.
Cant help with firebase sorry.

google analytic technical: gif request & options for web apps

I want to build own analytic platform base on google analytic (GA).
So I had a quick investigation on GA.
But I have some misunderstand below:
In the website and web apps field, google analytic give three options: gtag.js, analytic.js, AMP HTML. But I don't know what will I choose whichever. or could you help me point out the case that we will use for each option?
I tried to follow gtag.js, debug and realize that google analytic send a gif request to post data to google analytic server. I think they use this way to avoid cross-domain Ajax. But the question is how they send data to google server by Android/IOS sdk? They still used gif request or normal restful api.
If anyone know or have idea please help and sharing to me.
Thanks in advance
Jame
gtag.js (global tag) is the current version of Google tracking code - "global" because it aims to provide a unified tracking code for Analytics, Adwords, and other Google products.
With the release of the gtag libary analytics.js is now the legacy version of the Google Analytics Javascript tracker, so currently most available information refers to that. However if you are getting started with Analytics you probably should use the current version.
AMP are accelerated mobile pages, a special format with reduced markup and scripting options that is cached on and delivered from Google servers (you relinquish control over your pages in favour of faster delivery, basically). If you have to ask what this is then you are not using it, and do not need this type of tracking code.
If you use Google Analytics in a mobile website you'd use the Javascript tracker and that will indeed return a gif.
If you want to track a native App you would, these days, use Google Analytics for Firebase which comes with it's own SDK. You would implement Firebase in your App and then connect the Firebase project to a mobile property in GA.

Google Analytics Demo

I'm trying to find a web site/resource that has a working demo of Google Analytics to use.
As I have no website etc to be able to link my Analytics account to, I have no way of reviewing/learning to use Google Analytics.
Is anyone aware of such a demo available to the public?
Are you're asking for is a site where you can see GA working?
Years ago I set up 3 unusual but extremely effective GA learning sites mainly for myself (so they are crude).
I still use 2 of them today with Real Time reporting and Chrome extensions dataSlayer & WASP.
They accept your own Web Property ID (UA-xxxxx.yy) and save it in a cookie so the data goes into your own account.
Captures data to be sent to GA.
It's currently at http://cyclonal.com.
It still uses Classic GA (_gaq) - any offers to upgrade it to Universal gladly accepted
I also cloned a site used by the GA Dev team's (with permission)
It tested almost every feature of GA at the time.
Which is at http://cyclonal.com/g (has a history of the site link in the footer)
Finally, and probably what you may want to clone/create yourself, is a free form version of the concepts behind the above sites at http://cyclonal.com/sandbox/codeExec
Let me know if that works for you.
Google team released a Google Analytics demo account: https://support.google.com/analytics/answer/6367342?hl=en#access You can start "playing" with this account to get familiarized with google analytics api!

Where do I find my Google Font API Key? (Newbie)

I am working on a Wordpress site.
Woothemes framework, Canvas theme from Woothemes.
Have installed the plugin Google Webfonts for Woo Framework.
So far - so good.
Now I need a Google Font API key.
So I have a registered developer account, and a Google Font project up and running via GoogleCloud Console. I have activated the Google Font API in the API list.
But I can't find my Google Font API Key!
I've followed the instructions as given here: https://developers.google.com/fonts/docs/developer_api
It says:
"To acquire an API key, visit the APIs Console. In the Services pane, activate the Google Fonts Developer API; if the Terms of Service appear, read and accept them. (Edit: Done this!)
Next, go to the API Access pane. The API key is near the bottom of that pane, in the section titled "Simple API Access."(Can't find this at all!)
Any ideas?
Sorry if this is a terribly simple question!
Kind regards
Annelie
Maybe the help page is a bit behind and refers to the 'old' console.
Old: https://code.google.com/apis/console/b/0/?noredirect
New: https://cloud.google.com/console?redirected=true
I wrote the Google Webfonts for Woo Framework plugin, found at http://wordpress.org/plugins/google-fonts-for-woo-framework/
For the last few versions, you do not need to use a Google API key to be up and running. The WordPress plugin contains a fallback list of all available Google webfonts, and I try to keep that list up-to-date as Google releases additional fonts.
So, unless there is a really new font you want to use, just run the plugin without an API key and it should provide all the Google Webfonts you want.
Hi at first create a project in Firebase then go there and click on the "Get a Key" at the main of the page choose your project and get it.

Software for tracking how popular a web site is

Is there a (free!) software/components that I can use to track how my web site is being used - which pages are most popular, how many times was the site visitied today, yesterday etc...
How about Google Analytics? http://google.com/analytics
The information you want is (mostly) in the server logs, so I'd ask the server admin to give you access to some statistic-script (if it's installed).
Here's an open software for website analytics:http://www.openwebanalytics.com/
And you can - of course - always give your data to Google and let them generate the statistics using "Google Analytics". It requires including a piece of code into your website.
AWStats is a good option, but +1 for Google Analytics.

Resources