- This topic has 1 reply, 2 voices, and was last updated 3 years, 6 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Stripe payment plugins for your WordPress site
· ·
Home › Forums › Stripe Payments Plugin › eCommerce Tracking addon & custom thank you page
Google analytics ecommerce tracking does not work if the product uses a custom thank you page. This seems to be because the control block checks if the queried page is the same id as the default checkout page.
$checkout_page_id = $this->ASPMain->get_setting( 'checkout_page_id' );
$page_id = get_queried_object_id();
if ( $page_id === $checkout_page_id)
...
Is this the expected behaviour, or am I doing something wrong?
By default the e-commerce tracking only works on the thank you page generated by our plugin. We will need to investigate and see if we can extend the function for custom thank you pages also.