https://github.com/affise/affise-web-sdk
https://github.com/affise/affise-web-sdk
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/affise/affise-web-sdk
- Owner: affise
- Created: 2025-03-27T09:02:58.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2025-03-31T09:12:19.000Z (about 2 months ago)
- Last Synced: 2025-03-31T10:24:38.530Z (about 2 months ago)
- Language: JavaScript
- Size: 22.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 idgoal: '',
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: '',
});
```