Okay
  Public Ticket #891122
Pixel Conversion
Closed

Comments

  •  2
    José María started the conversation

    Hi friends, i need insert my conversion pixel analytics in my aurum e-commerce. I need insert this pixel in “thank you page”, but i cant find this page, only find “thankyou.php” in woocommerce folder, but i dont know where insert my pixel… can u help me please?

    thanks!

    www.munecasrealistas.com

  • [deleted] replied

    Hi José,

    The best practice to add this code in Thankyou page is to do with WordPress actions, so here is the code to add in functions.php:

    function conversion_pixel_analytics_code() {
    ?>
    <!-- HTML/JS code here -->
    <?php
    }
    
    add_action( 'woocommerce_thankyou', 'conversion_pixel_analytics_code' );
    After you update the theme the only thing to care about is functions.php file so you copy this (backup) and paste to the new updated version.