Google analytics works for the chrome app!

Hey great news to report! 

As my earlier post mentions, I think I have found how to install google analytics to track visitors coming to download the application.

As you can see, it works! 🙂

Image

I am still new to stats on google analytics… it is very comprehensive, and it points the way towards creating a website for a company or something by first exploring it with this chemystery blog.

To further elaborate on the steps to achieve this,

You need to have in your chrome app folder these 4 files

Image

 

Getting the analytics file

Heading to this website: https://chromiumcodereview.appspot.com/9212044

Image

 

Click on that purple link of analytics.js

Copy everything in the box, and paste in notepad

Then save as file name     analytics.js

Image

 

Changing the manifest

You need to add the google analytics code into your manifest.

Navigate to this link: 

http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/tutorials/analytics/manifest.json

Then make sure you have this important lines in your manifest

Image

 

Then zip it up and go update it in your google apps dashboard and you are done!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s