From f370d34200313b664fb4e8c10d2e169a144d79d5 Mon Sep 17 00:00:00 2001 From: Davod Saraei Date: Sat, 4 Jul 2020 15:30:06 +0430 Subject: [PATCH] Create README.md --- README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..a036824 --- /dev/null +++ b/README.md @@ -0,0 +1,26 @@ +# affili-js +Affili Javascript Conversion Tracker + +## Simple usage +To install the affili-js conversion tracker, copy the following code and paste it immediately after the tag on every page of your site. Replace ACCOUNT_ID with the ID of the your account id. + +```Javascript + + +``` + +## Track Conversion +To track conversions run the following code in a goal page or call it when the conversion happend. +For example when a customer buy the product, the following code need to run at the thank you page. +Replace EXTERNAL_ID with the invoice number, AMOUNT with the amount of conversion, COMMISSION_KEY with the key of commission where defined in the panel. + + +```Javascript +affili('conversion', EXTERNAL_ID, AMOUNT, COMMISSION_KEY) +````