Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Barakah Deals
- add_action( "woocommerce_thankyou", "BarakahDeals_Tracking", 20 );
- if ( ! function_exists( 'BarakahDeals_Tracking' ) ) {
- function BarakahDeals_Tracking( $order_id ) {
- if ( $order_id > 0 ) {
- $order = wc_get_order( $order_id );
- if ( $order instanceof WC_Order ) {
- $order_id = $order->get_id(); // order id
- $order_total = $order->get_total(); // order total
- ?>
- <script type="text/javascript" src="https://pkwxb.endtrk.com/scripts/sdk/everflow.js">
- </script>
- <script type="text/javascript">
- EF.conversion({
- advertiser_id: ID HERE,
- amount: <?php echo $order_total ?>,
- adv1: <?php echo $order_id ?>,
- });
- </script>
- <?php
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement