• Resolved digitalrevival

    (@digitalrevival)


    Hi,

    Is the module able to capture a custom thank you page like this?
    …/order-received/thank-you-first-order/?key=wc_order_…

    Google Analytics can capture it without manual addition (probably because the rule is to capture the purchase event that consist /order-received/ ).

    Please let me know. Thanks.

    Regards,
    Ruben

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Antonino Scarfì

    (@antoscarface)

    Hi,

    sure, you just need to enable the “Purchase” option in the third box of General settings page of the plugin, where set the options for the DPA events through supported e-commerce plugins (WooCommerce/Easy Digital Downloads).

    From the URL I assume you are using WooCommerce, so the tracking of “Purchase” pixel is automatic if you have enabled it from the General Settings.

    Give a check and let me know.

    Thread Starter digitalrevival

    (@digitalrevival)

    Hi,

    Thanks for a quick reply.

    Just want to make sure that I am using a custom thank you page. So, it shouldn’t be an issue you reckon with the url I provided?

    That’s right. I am using WooCommerce.

    Thanks again.

    Plugin Author Antonino Scarfì

    (@antoscarface)

    Is it a page set in the WooCommerce setting of the checkout page?
    Have you checked with Pixel Helper that the “Purchase” event is properly tracked?

    Thread Starter digitalrevival

    (@digitalrevival)

    It’s a thank you page created with this plugin: https://xlplugins.com/woocommerce-thank-you-page-nextmove/

    The URL is like this: …/order-received/thank-you-first-order/?key=wc_order_…

    Since I am not sure what is the rule / condition in your plugin in order to capture the thank you page, that’s why I ask you.

    I can setup pixel conversion tracking from the inside of that thank you page plugin. I just afraid it might be doubled.

    Plugin Author Antonino Scarfì

    (@antoscarface)

    Hi,

    ok, Pixel Caffeine checks when fire ‘Puchase’ event by calling a WooCommerce function that says when we are in thank you page. The function is “is_order_received_page()”. Maybe this external plugin manage the thank you page in different way as WooCommerce does and the official function of WooCommerce doesn’t work as expected.

    So, the only way is to add some hooks that I provided in the plugin to customize it.

    You just need to add the code I will suggest you below in the functions.php file of the theme or in a new simple plugin created by you. Here a suggested article where explained in detail the different ways to do that: https://www.skyverge.com/blog/add-custom-code-to-wordpress/

    The PHP code is:

    add_filter( 'aepc_can_track', function( $condition, $event ){
    	if ( 'Purchase' === $event ) {
    		$condition = /*your_condition*/
    	}
    
    	return $condition;
    }, 10, 2 );

    Replace /*your_condition*/ with the condition you need to know when you are in the custom thank you page.

    If you are not practical with code, I suggest you ask to the plugin support and ask them to give you the proper true condition in order to run the previous code when you are in the custom thank you page.

    I hope everything is clear.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Custom Thank You Page’ is closed to new replies.