• Resolved mamba1242

    (@mamba1242)


    Hello,

    I noticed that Pixel send purchase events to wrong Campaigns. For example: Purchase from Czech Republic is added to campaign for Slovenia. In this case ROAS numbers are not realistic any more.
    example of 1 day:
    https://ibb.co/3dPWbhq

    Also we are getting Errors like this:
    https://ibb.co/93J26NT

    and today we received this:
    https://ibb.co/d6n3Lff

    but when check diagnostic and test events, everything was ok. So should we just dismiss message?

    We are using only Facebook for WooCommerce version: 2.6.1 and not custom code is installed on page.

    Thank you

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi there!

    Based on the error message and what you said, it looks like that you might have multiple pixel plugins and they might be conflicting.

    Are you able to confirm that?

    Also, could you share your current System Status Report? You can get it by navigating to WP Admin > WooCommerce > Status. Once there, click on the “Get system report” button and then copy it by clicking on the “Copy for support” button.

    Thread Starter mamba1242

    (@mamba1242)

    Hello Felipe,

    I am 100% that there is no other pixel plugin (have checked all of them again).

    We have some custom code regarding pixel plugin:

    1. We have added verification to the header.php file like this:

    	<?php if(is_page(99) || is_page(694) || is_page(3008) || is_page(8212)){ ?>
          <meta name="facebook-domain-verification" content="m3mwkn**************ka7try8wg" />
    	<?php } ?>

    We have added it to a home page for every language that we support (4 languages).

    2. We are using WooCommerce One Click Upsells plugin (by WooFunnels). By their manual, we had to insert some code (to functions.php file), to make it compatible with pixel plugin:

    <?php
    
    /**
     * This snippet will stop purchase events to fire on thank you page
     **/
    add_action( 'woocommerce_init', function () {
    
    	//get all WooCommerce integrations
    	$integrations = WC()->integrations->get_integrations();
    
    	//checking if facebook for woocommerce installed?
    	if ( isset( $integrations['facebookcommerce'] ) && $integrations['facebookcommerce'] instanceof WC_Facebookcommerce_Integration ) {
    
    		/**
    		 * For version >= 1.1.0
    		 */
    		remove_action( 'woocommerce_thankyou', [
    			$integrations['facebookcommerce']->events_tracker,
    			'inject_purchase_event'
    		], 40 );
    	}else{
    		if ( function_exists('facebook_for_woocommerce') ) {
    			$event_track = facebook_for_woocommerce()->get_integration()->events_tracker;
    
    			/**
    			 * For version >= 1.1.0
    			 */
    			remove_action( 'woocommerce_thankyou', [
    				$event_track,
    				'inject_purchase_event'
    			], 40 );
    
    			remove_action( 'woocommerce_checkout_update_order_meta', [
    				$event_track,
    				'inject_purchase_event'
    			], 10 );
    		}
    	}
    }, 999 );
    
    ?>

    Below is report:
    https://drive.google.com/file/d/1o6J_B9HPO447JY4I07rnUM5m6hMZQPFe/view?usp=sharing

    Thank you,
    M

    • This reply was modified 3 years, 3 months ago by mamba1242.

    Hi there!

    Thank you for the additional details!

    I believe that it is a conflict considering the custom code that you added, so I believe that the ideal path would be trying a conflict test.

    The best way to determine if the issue is being caused by a theme and/or plugin is to temporarily switch your theme to Storefront and disable all plugins except for WooCommerce and Facebook for WooCommerce. Finally, test to see if the issue is resolved by trying to reproduce the same event issues confirming that it sends to the correct campaign.

    To figure out which plugin is causing the problem, continue to the next step – reactivate your other plugins one by one, testing after each, until you find the one causing conflict.

    Here’s a more extensive explanation in our docs: https://docs.woocommerce.com/document/how-to-test-for-conflicts/

    If the conflict test doesn’t help, please contact us at WooCommerce.com > My Account > Support. You may need to create an account before you can access that page.

    Please include a link to this forum thread and let us know the results of the conflict test, so that we can keep track of what’s already been done.

    We will be able to help you further there.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Pixel issue – sending events to wrong campaigns, error messages’ is closed to new replies.