Add ShareASale Tracking code

Leccles

New Member
Hi there,

I'm in the process of trying to add a piece of tracking code to the site

I need to add this code

<img src="https://shareasale.com/sale.cfm?amount=AMOUNTOFSALE&tracking=TRACKINGNUMBER&transtype=TYPEOFTRANSACTION&merchantID=XXX" width="1" height="1">

To my thank you page, however I need to replace 2 pieces of dynamic text in capital letters and bolded ("AMOUNTOFSALE", "TRACKINGNUMBER").

The amount of sale has to be the order amount of the sale just submitted, and the tracking number needs to be the Order ID number.

I thought of maybe putting this in the conversion tracking script area found within settings->Customisation->Thank you page
But I don't know what variables etc to use to replace the text above. If I cannot put it there then I'm happy to add it directly to the page-thankyou.php file however I still am not sure what variables to reference so I can put it in there.

Is anyone able to help me with this?


--Edit--
I've managed to find out that I can get the order ID using <?php echo $_GET['h']?> by modifying the page.thankyou.php file and adding the tracking code like that however I cannot obtain the order amount from the transaction page.
 
Last edited:

Leccles

New Member
Offtopic but what are the costs of shareasale? Do you have any experience with them?

Unfortunately I'm not sure, I was hired to install the ShareAsale tracking code into my clients website that uses the Ali dropship plugin.


Luckily I've managed to do it now, I forgot to reply to this post saying I've managed to get it working correctly.
 
Top