Add tag from adwords

Home Forums Legacy Support Support queries How-to & Troubleshooting Add tag from adwords

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #18742
    ieltsdojo
    Participant
    Hi all, I want to track conversions from adwords marketing. To do this I need to add a tag into the page that the user lands on when completing a sale. In my site this is http://ieltsdojo.com/checkout/order-received/ORDERNUMBER/?key=wc_order_569a0fd0a3b01 I'm not sure how to add the tag though so this page sends back the necessary data to adwords. Anyone know? Thanks Neil Dojo  
    #18994
    Anshuman Sahu
    Keymaster
    You can handle this by adding the given code in your wplms-customizer.php file at the end before "?>" in wplms customizer plugin : Yiu can run your adwords success code in the given block . add_action('woocommerce_thankyou','adwords_Code',10,1); function adwords_Code($order_id){ $order = new WC_Order( $order_id ); if ( $order->has_status( 'completed' ) ){ // print adwords code } }
Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Add tag from adwords’ is closed to new replies.