Analytics

Analytics beacon for general purpose.


analytics website travis ci vulnerabilities license

 Installation

git clone git@github.com:gokaygurcan/analytics.git
cd analytics
npm install
npm start

Showcase

Type Google (svg) Google (png) Yandex (svg) Yandex (png)
Flat square google flat-square google flat-square yandex flat-square yandex flat-square
Flat google flat google flat yandex flat yandex flat
Plastic google plastic google plastic yandex plastic yandex plastic
Social google social google social yandex social yandex social

Usage

You can put the beacon in your Readme file to track GitHub statistics:

![analytics](https://analytics.gokaygurcan.com/UA-XXXXXXXX-X/organization_name/repository_name.svg)

Or, you can call the pixel via AJAX call or something similar to track some pages/events:

$.ajax({
  method: 'GET',
  url: 'https://analytics.gokaygurcan.com/UA-XXXXXXXX-X/organization_name/repository_name.gif'
}).done(function(response) {
  console.log(response); // this will be a 1x1 pixel image though
});

Note: you can use anything you like but using organization_name/repository_name will help you if you want to use more than one repository with only one tracking id.

 Examples

Google

You can use either svg or png extension with style querystring. Default is flat-square.

Yandex

You can use either svg or png extension with style querystring. Default is flat-square.

 Pixel

You can only use gif extension, no svg or png can be used as a pixel image.

License

MIT © Gökay Gürcan