This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php } | |
add_action( 'woocommerce_thankyou', 'my_custom_tracking' ); | |
function my_custom_tracking( $order_id ) { | |
$order = new WC_Order( $order_id ); | |
$total = $order->get_order_total(); | |
$id = str_replace('#', '', $order->get_order_number()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"data": { | |
"user_type": "affiliate_user", | |
"user_id": "2", | |
"user_status": "active", | |
"account_status": "active", | |
"hash": "e864f39cf0521423ce697db1652e216", | |
"token": "2t434ReL9XHPnQ2eoTLOrBWPvD" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'woocommerce_thankyou', 'my_custom_tracking' ); | |
function my_custom_tracking( $order_id ) { | |
// Pull values from WooCommerce | |
$order = new WC_Order( $order_id ); | |
$saleAmount = $order->get_total(); | |
/** | |
<iframe src="https://demo.go2cloud.org/aff_l?offer_id=2&amount=$saleAmount&adv_sub=$order” scrolling="no" frameborder="0" width="1" height="1"></iframe> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<iframe src="http://demo.go2cloud.org/aff_l?offer_id=2&amount=AMOUNT&payout=PAYOUT&adv_sub=ORDER _ID" scrolling="no" frameborder="0" width="1" height="1"></iframe> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/Let’s assume this is for an online clothing store and the customer bought shoes, pants, and a shirt. Each category has 5%, 10%, and 15% commission respectively. | |
$shoes = .05; | |
$pants = .10; | |
$shirts = .15; | |
$aff_payout = ($shoes_price * $shoes) + ($pants_price + $pants) + ($shirts_price * shirts); | |
//Now that we have calculated and stored the payout that is going to be given to affiliates, we can place that into the &amount= parameter in the pixel and fire it. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
guh=Math.random()*10000000000000000; | |
document.write('<scr' + 'ipt language=\'JavaScript1.1\' SRC=\"http://ad.doubleclick.net/adj/N8305.134236.VALUECLICK/B7971050.2;sz=120x600;click=http://www.advertiser.com/click.track?CID=260614&AFID=301243&ADID=1085850&NonEncodedURL=http%3A%2F%2Fdemo.go2cloud.org%2Faff_c%3Foffer_id%3D1%26aff_id%3D2%26file_id%3D3516;ord='+guh+'?\"></scr' + 'ipt>'); | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
guh=Math.random()*10000000000000000; | |
document.write('<scr' + 'ipt language=\'JavaScript1.1\' SRC=\"http://ad.doubleclick.net/adj/N8305.134236.VALUECLICK/B7971050.2;sz=120x600;click=http://www.advertiser.com/click.track?CID=260614&AFID=301243&ADID=1085850&NonEncodedURL={etracking_link};ord='+guh+'?\"></scr' + 'ipt>'); | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
guh=Math.random()*10000000000000000; | |
document.write('<scr' + 'ipt language=\'JavaScript1.1\' SRC=\"http://ad.doubleclick.net/adj/N8305.134236.VALUECLICK/B7971050.2;sz=120x600;click=http://www.advertiser.com/click.track?CID=260614&AFID=301243&ADID=1085850;ord='+guh+'?\"></scr' + 'ipt>'); | |
</script> |