Announcement

Collapse
No announcement yet.

Thank You Page After Purchase URL?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Thank You Page After Purchase URL?

    Hello,

    I need the "thank-you" URLS that someone receives once a sale is complete to track conversions via adwords. Our ad person is asking for this. I could not find it.

  • #2
    There are a couple options. The first is to use the built in adwords system, this is in the WP EasyCart -> Settings -> Third Party. The second option is to program it using the hook wpeasycart_success_page_content_top -- more info here: http://support.wpeasycart.com/wp-eas...documentation/ -- this requires a bit of WordPress programming knowledge, but gives you the most flexibility.

    Comment


    • #3
      This is exactly what I want too. I have one line of tracking code which normally fits on a page after the customer has purchased.

      I set my own parameters using my own tracking software this generates the code for me to insert in to a page (I think). How do I achieve this please guys?
      Last edited by SWJ1975; 08-14-2018, 03:56 AM.

      Comment


      • #4
        Hi again, ok so I am looking up http://support.wpeasycart.com/wp-eas...documentation/ what is the file which I need to edit and add the code? Seems easy enough

        Comment


        • #5
          You can use the "http://support.wpeasycart.com/wp-easycart-api-documentation/#toggle-id-18" hook, http://support.wpeasycart.com/wp-eas.../#toggle-id-18 to add custom code within the success page. We recommend that you do not edit plugin files so that you can continue to receive updates.

          Comment


          • #6
            Hi, thanks for the reply.

            I'm confused sorry. What code do I add and to what page?

            Comment


            • #7
              Sorry, bad copy and paste, the hook is "wpeasycart_success_page_content_top", from the link above:

              Hook Type: Action

              Hook Name: wpeasycart_success_page_content_top

              Hook Arguments:
              • order_id (number)
              • order (ec_order)

              Hook Description: This action is run at the top of the cart success page, allowing you to add scripts or additional content at the top of the cart success page.

              Hook Example Usage:

              Within Class: add_action( 'wpeasycart_success_page_content_top', array( $this, 'my_class_function' ), 10, 2 );

              Outside Class: add_action( 'wpeasycart_success_page_content_top', 'my_custom_function', 10, 2 );

              10 = priority value, 2 = number of arguments

              function my_custom_function( $order_id, $order ){

              echo "put script here for anything from third party code to additional content for the user on successful purchase.";

              }

              Comment

              Working...
              X