@dukaan/dukaan-sdk

1.0.178 • Public • Published

Initilizing Dukaan analytics.

define dukaan tracking system.

const track = new dukaan.track(seller);

Initilize auto tracking

track.init();

Labling elements to be tracked.

da-entity='dukaan-premimum' da-action='signup' da-meta='{plan_name | Free}'

Attribute names & explanation

Key Value
da-entity Product entity to be tracked
da-action the user action
da-meta Additional meta-data for the event in a json format. like product info

events schema

Attribute names & explanation

Key sample value Explanation
user_type seller buyer / seller / reseller / vendor
id_user 12345 User ID
id_buyer 12345 Buyer ID
id_seller 12345 Seller Id
id_store 12345 Store Id
id_reseller 12345 Reseller Id
id_vendor 12345 Vendor Id
store_link dailyneeds Store link
app_platform web Platform - web / Android / iOS
app_version 1.0.3 App version
campaign_name Insta-sellers Marketing campaign name (utm_campaign)
campaign_source google Marketing campaign source (utm_source)
campaign_medium CPC marketing campaign medium (utm_medium)
campaign_term keyword marketing campaigin term (utm_term)
campaign_content article marketing campaign content (urm_content)
device_platform Mobile Mobile / Desktop / Tablet
device_os MAC OS Device os - Mac OS / Windows / Linux
device_os_version 10.15.5 OS version
device_browser Chrome Device browser - Chrome / Safari etc
device_browser_ver 91 Browser version
device_browser_ver_full 91.0.4472.77 browser version full
device_browser_user_agent Mozilla/5.0 .... User agent of the device
device_ip 122.166.131.96 IP of the device - Auto
device_latitude 12.9634 Lat of the device - Auto
device_longitude 77.5855 long of the device - Auto
device_city Bengaluru City of the device - Auto
device_state Karnataka State of the device - Auto
device_country India Country of the device - Auto
device_pin_code 560002 Pin code of the device - Auto
device_screen_width 1080 Screen width of the device
device_screen_height 1920 Screen height of the device
device_screen_resolution 1080x1920 Full resolution string of the device
event_type action Event type - `action` or `page_view`
event_action signup event action - like 'Add to cart' or 'added product' etc
event_entity_type product Root feature node - Like 'cataloge' / 'orders' / marketing , plugins , themes etc
event_entity_id Id of the entity like product id or order id etc
event_entity_name name of the entity like product name or seller name etc
event_entity_lable
event_entity_count
event_entity_meta {\\plan_name\\
event_entity_order_meta Meta data for the event (optional)
event_entity_product_meta
event_order_total_cost
event_order_payment_mode
event_order_meta
page_path /
page_title Dukaan - Add products
page_referrer
api_host
api_response_time
createdAt 2021-06-08 10
updatedAt 2021-06-08 10

Readme

Keywords

none

Package Sidebar

Install

npm i @dukaan/dukaan-sdk

Weekly Downloads

355

Version

1.0.178

License

ISC

Unpacked Size

2.06 MB

Total Files

224

Last publish

Collaborators

  • dukaantech
  • nikamanish