WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
[closed] Google analytics ecommerce tracking on working with Woo Commerce (32 posts)

  1. jonlevine
    Member
    Posted 1 year ago #

    I am having a similar issue. I'm using the WooCommerce plugin with a custom designed theme. I can see in the view source of the confirmation page that the Google Analytics code is firing and all of the order data is being captured, however, nothing is getting reported to Google. All of my other (non-transactional) analytics are working fine.

    Like some of the earlier posters, I see the <p> tags surrounding the analytics code. I don't know if that is having an effect or not.

    I am running the latest version of the plugin.

    Any help is appreciated.

  2. joeyrudi
    Member
    Posted 1 year ago #

    @ jonlevine

    Yes, the issues is quite possible the P tags. Or in other words, wpautop. You can test this by adding a line to your functions.php file. Once added, you should not longer see the P tags:

    remove_filter('the_content', 'wpautop');

    One thing to note: this *might* affect some of your other pages' formatting because the line of code is disabling WordPress' auto paragraph formatting. [moderated]

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic