Skip to content

Commit

Permalink
Merge pull request #15 from razorpay/change-package-name
Browse files Browse the repository at this point in the history
Update package name
  • Loading branch information
umanghome authored Mar 25, 2019
2 parents 49b9cfc + 1a8e8d9 commit 88517db
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# lytics.js
# @razorpay/lytics
> Simpler analytics using HTML attributes.
<a href="https://travis-ci.com/razorpay/lytics.js" title="Build Status"><img src="https://api.travis-ci.com/razorpay/lytics.js.svg?branch=master" alt="Build Status" /></a> <a href="https://www.npmjs.com/package/lytics.js" title="NPM"><img src="https://img.shields.io/npm/v/lytics.js.svg" alt="NPM" /></a> <a href="https://github.com/razorpay/lytics.js/tree/master/LICENSE" title="License"><img src="https://img.shields.io/github/license/razorpay/lytics.js.svg" alt="License"/></a>
<a href="https://travis-ci.com/razorpay/lytics.js" title="Build Status"><img src="https://api.travis-ci.com/razorpay/lytics.js.svg?branch=master" alt="Build Status" /></a> <a href="https://www.npmjs.com/package/@razorpay/lytics" title="NPM"><img src="https://img.shields.io/npm/v/@razorpay/lytics.svg" alt="NPM" /></a> <a href="https://github.com/razorpay/lytics.js/tree/master/LICENSE" title="License"><img src="https://img.shields.io/github/license/razorpay/lytics.js.svg" alt="License"/></a>

Lytics enables analytics tracking by adding `data-lytics-*` attributes to HTML elements, without having to write JavaScript for individual elements.

Expand All @@ -17,12 +17,12 @@ There are lots of "clicks" and "submits" on websites that we need to track. Writ

NPM
```bash
npm i lytics --save
npm i @razorpay/lytics --save
```

Unpkg
```html
<script src="https://unpkg.com/lytics.js@1.0.0/dist/lytics.js" type="text/javascript"></script>
<script src="https://unpkg.com/@razorpay/[email protected]/dist/lytics.js" type="text/javascript"></script>
```

### Initialising
Expand All @@ -32,7 +32,7 @@ Add `data-lytics-*` attributes to elements, and initialize Lytics by invoking `l
Import the package if you are using npm.

```js
import lytics from 'lytics.js';
import lytics from '@razorpay/lytics';
```

If the script is included using a `<script>` tag, lytics will be available as `window.lytics`.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "lytics.js",
"name": "@razorpay/lytics",
"version": "1.0.0",
"description": "Simpler analytics using HTML attributes.",
"main": "dist/lytics",
Expand Down

0 comments on commit 88517db

Please sign in to comment.