The ebasket-trackingcode is for the tracking of the basket items and have to be implemented in the <body>-tag of the thank-you page of your shop. The function “eamTrackAddBasektItem()” have to be filled with the correct values of the basket.

JavaScript-Code

<script src="https://SUB-DOMAIN/trck/ebasket/ebasket.js"></script>

<script language="javascript">

    /* have to be implementier for every article of the basket */

        eamTrckAddBasketItem(KAMPAGNEN-ID, TOKEN, TRIGGER_ID, ARTICLE_NUMBER, AMOUNT, PRICE, EMID, PRODUCTNAME, CATEGORY, ATTRIBUTION, { 'variable' : 'CONTENT', 'variable_2' : 'CONTENT_2' })

    /* end */

    eamTrckSubmitBasket();

</script>

Example

JavaScript-Code

<script src="https://pvn.example.com/trck/ebasket/ebasket.js"></script>

<script language="javascript">

    eamTrckAddBasketItem('1', ‘12345’, ‘1', ‘002973000902’, '1’, '335.29', '5eeb0e0dabf7ad282b28c4a2', 'Samsung TV', 'Consumer Electronics',0.5, { 'vc' : 'Vouchercode123',  'Color' : 'blue'});

    eamTrckAddBasketItem('1', ‘12345’, ‘1', '000657001803', '1’, '25.13', '5eeb0e0dabf7ad282b28c4a2', 'Cupboard', 'Living room',1.0,{ 'vc' : 'Vouchercode456', 'Color' : 'black', 'tax' : '16%'});

    eamTrckSubmitBasket();

</script>

Variable description

The function needs parameter to work correctly. What the different parameter means shows the table below:

VARIABLE

BESCHREIBUNG

CAMPAIGN_ID

The campaign ID is placed here.

TOKEN

The order ID is placed here.

TRIGGER_ID

The trigger ID is placed here.

ARTICLE_NUMBER

The article number is placed here.

AMOUNT

Is placed with the amount of how many times an item was purchased.

PRICE

The net order value is stored here. This may result in the commission for the publisher.

EMID

Is filled with the value of the parameter emid, which is transferred to the landing page by the easy Marketing System via the click link. This value is very important for the attribution, as otherwise no assignment of the transaction is possible.

PRODUCTNAME

The product name is placed here.

CATEGORY

The product category is placed here.

ATTRIBUTION

This is where the attributes of the order are stored. The value is passed in decimal format and a dot as separator. (50% = 0.50)).

For additional parameter in this code you have to add them comma separated in the curved brackets. For the name of the parameter you can choose every name that you want, but it have to be in apostrophes. This is followed by a colon and then the value of the variable as string, also in apostrophes.

Deklaration

{'variable' : 'Content'}

Excample

{'vc' : 'Voucher12345', 'Brand' : 'Samsung'}