• Resolved gabrieldelpech

    (@gabrieldelpech)


    Hello,

    I’ve installed conversios on this website, and I don’t get any data about product pages views, add to cart… The only data shown in GA are products bought and revenue.

    I’ve checked one product page with dataslayer and noticed that there was no add_to_cart event for example.

    Do you have any idea about why it isn’t working ?

    Thank you

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter gabrieldelpech

    (@gabrieldelpech)

    Hello,

    The website is using GTM for implementing the GA tracking code. Does this could explain why the ecommerce tracking is not working?

    Thank you

    Thread Starter gabrieldelpech

    (@gabrieldelpech)

    Hello,

    Some help would be appreciated ?? It does not work at all, and I guess this is because woocommerce hooks are not standard or whatsoever, but if you could confirm, that would be nice.

    Thank you

    Thread Starter gabrieldelpech

    (@gabrieldelpech)

    After some complementary search, it could be related to elementor. I’ve read on another enhanced ecommerce plug-in forum that elementor add to cart button does not use the woocommerce hook tracked for add to cart event.

    Are you aware of that?

    Thank you

    Plugin Support sarathkumarrajendran

    (@sarathkumarrajendran)

    Hi @gabrieldelpech

    Thank you for creating this thread and apologies for not responding sooner.

    The plugin uses gtag.js for tracking, also it supports only the standard woocomerce implementation.

    As you are using GTM for tracking could also impact the gtag.js script (added by the plugin) could result in non-tracking.

    The add to cart button should use a default woocommerce template hooks where the plugin will be able to track the events if any other being used could be a reason for non-tracking of cart events.

    Thread Starter gabrieldelpech

    (@gabrieldelpech)

    Hello @sarathkumarrajendran,

    Thank you for your answer. I had noticed that, but I didn’t know that it could not work with your plug-in, sorry for that. I’ve deactivated the GTM script, and I’m able to get some events, but add-to-cart is still missing.

    I think the add to cart template is using the default hooks:

    		<button type="submit" name="add-to-cart" value="<?php echo esc_attr( $product->get_id() ); ?>" class="btn"><i class="fas fa-shopping-basket" style="
        font-size: 18px;
        padding-right: 15px;
    "></i><?php echo esc_html( $product->single_add_to_cart_text() ); ?></button>
    
    		<?php do_action( 'woocommerce_after_add_to_cart_button' ); ?>
    	</form>
    	<?php do_action( 'woocommerce_after_add_to_cart_form' ); ?>

    Should I check somewhere/something else?

    I’m using conversios for other websites, and I have no such issue. I compared the simple.php add to cart template, and they are similar.

    Thank you!

    Plugin Support sarathkumarrajendran

    (@sarathkumarrajendran)

    Hi @gabrieldelpech

    We would require 2 woocomerce hooks for add to cart to track as expected, below are the same for your reference:

    woocommerce_after_add_to_cart_button
    woocommerce_after_shop_loop_item

    In the code-shared in your comment, I can see loop item hook is not available.

    We also notice that our jQuery is not loaded as per the required sequence due to jQuery deferred error in the console.

    Kindly disable the jQuery deferred option if any, here is the screenshot for your reference – https://prntscr.com/jomx2uYLa2im

    Thread Starter gabrieldelpech

    (@gabrieldelpech)

    Hello @sarathkumarrajendran,

    Ok, I will check that. Thanks a lot.

    Have a nice day

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Events not tracked’ is closed to new replies.