1.7.0 • Published 1 month ago

apxor-qe v1.7.0

Weekly downloads
42
License
MIT
Repository
github
Last release
1 month ago

Apxor Web SDK

Install through NPM

npm i -s apxor

Import and initialize SDK in root of your application

import Apxor from 'apxor'; //ES6
//var Apxor = require('apxor'); //ES5

Apxor.init('YOUR_SITE_ID', {
    debug: true //remove this option in production
});

APIs:

import Apxor from 'apxor';
UserId
Apxor.setUserId(String);

Eg:

Apxor.setUserId("user@example.com");

PageView:
Apxor.logPageView(location.pathname); //String URL pathname

Eg:

Apxor.logPageView("/about.html");

Events:
Apxor.logEvent(name, properties, [category]); //All Strings

Eg:

Apxor.logEvent("ADD_TO_CART", {
    "userId": "user@example.com",
    "value": "1299",
    "item": "Sony Head Phone 1201" 
}, "PRODUCT_PURCHASE");

User Properties:
Apxor.setUserProperties({
    "property1": "value",
    "property2": "value2"
});

Eg:

Apxor.setUserProperties({
    "gender": "male",
    "age": "24"
});

Session Properties:
Apxor.setSessionProperties({
    "property1": "value",
    "property2": "value2"
});

Eg:

Apxor.setSessionProperties({
    "language": "en",
    "location": "Hyderabad"
});
1.7.0

1 month ago

1.6.3-qa.0

2 months ago

1.6.3-qa.1

2 months ago

1.6.2-qa.0

3 months ago

1.6.1-qa.0

3 months ago

1.6.0

3 months ago

1.5.1

4 months ago

1.5.0

4 months ago

1.2.0

9 months ago

1.1.10-qa.0

9 months ago

1.4.2

6 months ago

1.2.4

7 months ago

1.4.1

6 months ago

1.2.3

7 months ago

1.4.0

7 months ago

1.2.2

8 months ago

1.3.0

7 months ago

1.2.1

8 months ago

1.2.1-qa.0

8 months ago

1.1.9-qa

11 months ago

1.1.9

12 months ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.9

1 year ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

3 years ago

1.0.2

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.1

5 years ago

1.0.0

5 years ago