analytics editorconfig travis-ci npm

Analytics beacon for general purpose.

3 years after

Analytics

Analytics beacon for general purpose.


analytics website travis ci vulnerabilities license

 Installation

You can deploy to Heroku:

Deploy

Or you can deploy on OpenShift:

DEPLOY TO OpenShift

or run on your own machine:

git clone [email protected]:gokaygurcan/analytics.git
cd analytics
npm install
npm start

Showcase

Type Google (svg) Google (png) Yandex (svg) Yandex (png)
Flat square
Flat
Plastic
Social
Pixel (there is a pixel here)

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.

  • Flat square: ![analytics](https://analytics.gokaygurcan.com/UA-XXXXXXXX-X/organization_name/repository_name.svg?style=flat-square)

  • Flat: ![analytics](https://analytics.gokaygurcan.com/UA-XXXXXXXX-X/organization_name/repository_name.svg?style=flat)

  • Plastic: ![analytics](https://analytics.gokaygurcan.com/UA-XXXXXXXX-X/organization_name/repository_name.svg?style=plastic)

  • Social: ![analytics](https://analytics.gokaygurcan.com/UA-XXXXXXXX-X/organization_name/repository_name.svg?style=social)

Yandex

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

  • Flat square: ![analytics](https://analytics.gokaygurcan.com/UA-XXXXXXXX-X/organization_name/repository_name.svg?style=flat-square)

  • Flat: ![analytics](https://analytics.gokaygurcan.com/UA-XXXXXXXX-X/organization_name/repository_name.svg?style=flat)

  • Plastic: ![analytics](https://analytics.gokaygurcan.com/UA-XXXXXXXX-X/organization_name/repository_name.svg?style=plastic)

  • Social: ![analytics](https://analytics.gokaygurcan.com/UA-XXXXXXXX-X/organization_name/repository_name.svg?style=social)

 Pixel

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

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

License

MIT © Gökay Gürcan

Related Repositories

laravel-analytics

laravel-analytics

A Laravel package to retrieve pageviews and other data from Google Analytics ...

angular-google-analytics

angular-google-analytics

Google Analytics tracking for your AngularJS apps ...

awesome-analytics

awesome-analytics

A curated list of analytics frameworks, software and other tools. ...

universal-analytics

universal-analytics

A node module for Google's Universal Analytics tracking ...

react-native-google-analytics-bridge

react-native-google-analytics-bridge

React Native bridge to the Google Analytics libraries on both iOS and Android. ...


Top Contributors

gokaygurcan greenkeeperio-bot jwasham leonardosmleo KameronArgis Akim95

Releases

-   v1.1.0 zip tar
-   v1.0.1 zip tar
-   v1.0.0 zip tar