Git Product home page Git Product logo

analytics's Introduction

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

analytics's People

Contributors

akim95 avatar gokaygurcan avatar greenkeeperio-bot avatar kamargis avatar leonardosmleo avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.