Chrome extension use report -
I've written a Chrome extension that I've published in the Chrome Store. I want to know all the numbers associated with it, this includes the number of installs / active users / user activity etc.
Where do I get these numbers? There is no way to see the total number of installs according to this question:
More importantly, what is the method of setting up a weekly / monthly email to get these numbers directly in my inbox? ?
There is no official way to do this. Google does not provide detailed statistics for your extension, so if you want to know the details, then you should use Analytics.
To set up your Analytics account.
The number of people setting up your extension will require you to set up an analytics account and link it to your extension, then you can Then in your You set any combination of string calling before the chrome.runtime.onInstalled to listen to the installation. The addListener can use the method and send it to
_trackEvent in your Analytics account.
background.js you will do something like this:
var _gaq = _gaq || []; _gaq.push (['_ setAccount', 'UA-XXXXXXXX-X']); // where UA-XXXXXXXX-X is your Analytics account user number (function () {var ga = document.createElement ('script'); ga.type = 'text / javascript'; ga.async = true; ga.src = 'Http: //ssl.google-analytics.com/ga.js'; var s = document.getElementsByTagName ('script') [0]; s.parentNode.insertBefore (ga, s);}); // Add listener to now installed event: chrome.runtime.onInstalled.addListener (function () {_gaq.push (["_ trackEvent", "Installation"]);});
"category", "action", "label" Can
_gaq.push (["_ trackEvent", ...]) . Now, every time a user installs an extension, you will increase the number of "installation" events in your Analytics account.
Comments
Post a Comment