Magento

If you are using Magento as an e-commerce platform, then you will need to add the code below in the success.phtml file.

Replace the following placeholders with the program and order values:
CAMPAIGN_UNIQUE: you received it by e-mail
CONFIRM: you received it by e-mail
ADD_SALE_VALUE: the total paid value of the purchase minus all other expenses (like tax amount, discount amount, shipping cost)
ADD_DESCRIPTION: the name of all the products that have been purchased, URL-encoded. (This will help affiliates optimize future sales )
ADD_TRANSACTION ID: the order id, in your platform, URL-encoded. (This will help identify and process the commissions later)

<iframe height='1' width='1' scrolling='no' marginheight='0' marginwidth='0' frameborder='0' src='https://event.2performant.com/events/salecheck?amount=ADD_SALE_VALUE&campaign_unique=CAMPAIGN_UNIQUE&confirm=CONFIRM&description=ADD_DESCRIPTION&transaction_id=ADD_TRANSACTION_ID'><iframe>

Example:

For an order of:
Items value: 121.54EUR
Discount: 12.15EUR
VAT: 21.88EUR VAT
Shipping: 15EUR
The order id in your platform: UY981237Y
Items description: “dress & necklace, shoes”

And supposing you received the following program parameters:
CAMPAIGN_UNIQUE=test_unique
CONFIRM=test_confirm

Then you should generate, in the order confirmation page, the following html code:

<iframe height='1' width='1' scrolling='no' marginheight='0' marginwidth='0' frameborder='0' src='https://event.2performant.com/events/salecheck?amount=121.54&campaign_unique=test_unique&confirm=test_confirm&description=dress+%26+necklace%2C+shoes&transaction_id=UY981237Y'></iframe>

The store currency (EUR in our example) must be configured in 2Performant, in Settings/General and then choose Currency

You can also see some examples below:

Was this article helpful to you? Yes No 1