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 chrome.runtime.onInstalled to listen to the installation. The addListener can use the method and send it to _trackEvent in your Analytics account.

Then in your 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"]);});   

You set any combination of string calling before the "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

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -