Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

When the purchase transactions are complete, run the code below.

...

Note

The OM.exVisitorID parameter is the unique value you give the user when signing in or creating a new membership. Its value can be user id or email. If you have no idea which one to give, contact the RMC team.

Code Block
languagejs
var data = {
  "OM.tid" : transactionID, 
  "OM.pp" : "Product1 Code;Product2 Code", 
  "OM.pu" : "Product1 Quantity;Product2 Quantity", 
  "OM.ppr" : "Product1 Price*Product1 Quantity;Product2 Price*Product2 Quantity",
  "OM.exVisitorID" : keyID
};
visilabsApi.customEvent("Purchase", data);

 

Info

You can review the sample usage in line 30. on this page.

Info
You can review the sample usage in line 26. on this page.

 

Ui button
colorgreen
titleNext Step
urlhttps://relateddigital.atlassian.net/wiki/spaces/KB/pages/1090912277/React+Native+-+Banner+Click