Thread Starter
mazs91
(@mazs91)
Hi Support,
The problem with the 1st issue (purchase pixel not firing) is due to Paypal Return URL. I did the checkout with 2checkout and everything worked smoothly. Below is the url that Paypal returns.. If I copy the url till cm=%7B , purchase pixel is fired.
/secure-checkout/order-received/139/?key=wc_order_5908e78&utm_nooverride=1&amt=0.01&cc=USD&cm=%7B“order_id”:175%2C”order_key”:”wc_order_5908e78″%7D&st=Completed&tx=076383W
https://www.domain-name/secure-checkout/order-received/utm_nooverride=1 is set in Paypal as a return url… Do you have any experience with this issue?
Also, please let me know if it is possible to get content-category in the purchase event?
thanks
Mazhar
Hi,
about the first issue, I didn’t have any experience with this issue. It seems something related to the checkout plugin, maybe something goes wrong when those parameters are passed. I ask you if you can post the website URL so I’ll try to check about your issue.
For the second issue, I ask you to make two things:
1. Open a plugin file wp-content/plugins/pixel-caffeine/includes/class-aepc-track.php and search this line at the end of the file: return $params;. Replace this line with this one: return apply_filters( 'aepc_allowed_standard_event_params', $params, $event );. This change will be added also in the next version of the plugin, so you will be able to upgrade without losing the customization.
2. After this change, add this code at the end of the file functions.php of your active theme:
function my_custom_allowed_standard_event_params($params, $event) {
if ( $event === 'Purchase' ) {
$params .= ', content_category';
}
return $params;
}
add_filter('aepc_allowed_standard_event_params', 'my_custom_allowed_standard_event_params', 10, 2);
Let me know,
Thanks.
Thread Starter
mazs91
(@mazs91)
Hi Support,
Thank you for the feedback. Last night, I bought the Pixelyoursite Pro version and both the issues got solved. The Purchase event is firing event with the same Paypal return URL & they have a lot of extra information in the Purchase event including Category_Name.
If you need to troubleshoot this, please share your email address and I will create a staging for you and will share all the details on email.
Thank you for providing such an awesome plugin for FREE.
Mazhar
Hi,
it would be very useful, but unfortunately, I cannot share you my info in order to share some confidential info, due to forum rules 🙁
If you can, you might share the website URL, I hope it can help me to troubleshoot this issue.