• Resolved popeating

    (@popeating)


    Since a week it looks our product page is no longer sending ViewContent event, all the events for ecommerce works correctly, but when i visit a product page (like https://moleco.it/prodotto/shampoo-micellare-moleco/) it only sends PageView event; it looks like the plugin did not recognize the product page as a “product” page, but as a normal page; i already verified wwith pixel helper, no warnings or error, just the PageView event
    any steps i could take to fix the issue?

    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter popeating

    (@popeating)

    Just a little update, i discovered that the guy which is in charge of the interface, used Avada to build the product page; in doing that the hook woocommerce_after_single_product is no longer available on the product page!!!

    any suggestion on how overcome this (without modifying facebook-commerce-events-tracker.php to look for other hooks) before getting mad at him?

    Hi there @popeating,

    I’m glad to hear that you narrowed down the issue! However, I’d spare the person who built the product page in Avada 🙂 Instead, I’d recommend reaching out to Theme Fusion for some assistance.

    The Theme Fusion support team can be reached at the following link:

    https://theme-fusion.com/support/

    I’m going to leave this thread open in case someone else from the community might be able to guide you in the right direction.

    Thread Starter popeating

    (@popeating)

    At the moment i “solved” this way while thinking for a permanent solution:

    in facebook-commerce-events-tracker.php i modified this section

    // ViewContent for individual products
    add_action( 'woocommerce_after_add_to_cart_button', array( $this, 'inject_view_content_event' ) );
    add_action( 'woocommerce_after_add_to_cart_button', array( $this, 'maybe_inject_search_event' ) );

    changing the hook to something that is still present on the page (woocommerce_after_add_to_cart_button)

    then i disabled the automatic plugin update, but since other admin can manually updated i run a seaerch/replace script everytime the hook upgrader_process_complete is triggered; it will work until no major changes, but i hope to find a final solution before then!

    slash1andy

    (@slash1andy)

    Automattic Happiness Engineer

    Hey again!

    Thanks for sharing your solution, however temporary. Hopefully it helps other Avada users to work around this in the meantime while they fix this.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Event ViewContent stopped working’ is closed to new replies.