An open API service indexing awesome lists of open source software.

https://github.com/affise/affise-web-sdk


https://github.com/affise/affise-web-sdk

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

## affise-web-sdk

Build sdk files:

`npm install --legacy-peer-deps`
`npm run build`

Set the file affise-web-sdk.js from dist folder to of HTML page

Configure the SDK before doing any tracking:

```javascript
ASDK.configure({
tracking_domain: 'https://.com',
})
```

On the tracking page call click method:

```
AffiseSDK.click({
offer_id: 1, // Required. The offer id
affiliate_id: 1, //Required. The affiliate id

goal: '',
status: '',
currency: '',
comment: '',
secure: '',
promo_code: '',
user_id: '',

custom_field_1: '',
custom_field_2: '',
custom_field_3: '',
custom_field_4: '',
custom_field_5: '',
custom_field_6: '',
custom_field_7: '',
});
```