Affirm / Salesforce_Commerce_Cloud_Affirm

BSD 3-Clause "New" or "Revised" License
1 stars 5 forks source link

updated enhanced analytics #49

Closed taehyunlim closed 3 years ago

taehyunlim commented 3 years ago

EA Updates

Requirements

Example trackOrderConfirmed script placed on confirmation page

affirm.ui.ready(function(){
  affirm.analytics.trackOrderConfirmed(
    {"orderId":"00001003","currency":"USD","paymentMethod":"Affirm","total":214303},
    null,
    true
  );
})

Link to Enhanced Analytics Doc

https://docs.affirm.com/affirm-developers/docs/enhanced-analytics