You have no items in your shopping cart.

Profile: Scott

Avatar
Statistics

    Hello,

    Is there a way to inject the tracking code on custom controllers/actions?

    In other words it seems like it's only pushing the PageType.ProductPage dataLayer variable on pages that have a controller name of Product and action name of ProductDetails.

    We have some custom controllers/actions that we'd like to inject the ProductPage code on but there doesn't seem to be a way to do that currently.

    For example we can name our custom controller action ProductDetails as well and have it inject only based on action (rather than controller + action) if that's a feasible solution on your end.

    Thanks

    5 years ago

    Support wrote:

    I need to think.
    Write me on Monday


    Will do. If it makes it easier, you should simply deduct the tax and shipping amount you pass to transactionTotal - because most Google Analytics users would prefer to exclude those amounts from revenue since tax and shipping amounts are passed through to 3rd parties (tax authorities and shipping company).
    5 years ago

    Support wrote:

    'Include Tax'  - this parameter is for product prices.

    transactionTotal - order total with tax and shipping fees.
    transactionTax - order total tax.

    I can add the new parameter 'transactionSubTotal'
    transactionTotal - order subtotal value (with or without TAX)
    What do you think?


    No, because Google Analytics only looks for the variable transactionTotal, it won't recognize transactionSubTotal.

    You should make another checkbox in the Settings called 'Include Tax & Shipping In Order Total'. If unchecked, then you don't include tax/shipping amounts in the transactionTotal variable amount. If checked, then you include tax/shipping amounts in the transactionTotal variable amount.

    Thanks

    Then you can also rename the existing Include Tax setting to be called 'Include Tax on Products'
    5 years ago

    To clarify, I do not want to include the Tax amount in the transactionTotal value that is passed to dataLayer for Google Analytics ecommerce tracking, only the order subtotal before tax and shipping should be passed to transactionTotal variable. I am OK with keeping the tax amount in the transactionTax variable.

    5 years ago

    Hello,

    The amount of Tax is being included in the Total value passed to the dataLayer in the Google Tag Manager script even though the setting 'Include Tax' in Configuration is not checked.

    Please fix this so that the Tax amount is not included in the Total value amount.

    Thanks

    5 years ago

    Review has been posted - thanks so much!

    5 years ago

    Hello,

    It works perfectly now!

    Thanks

    5 years ago

    Hello,

    For the Cart page I am still not seeing the AttributeCombo SKU value in dataLayer. I confirmed that the inventory is set to track for attributes. In regards to your question about if Cart is updated, I do not care about that right now, only concerned with outputting correct Attribute Combo SKU on initial page load

    For the order confirmation page, I reconfirmed that the correct AttributeCombo SKU was still being passed to dataLayer but was still not being passed to the ProductIDList object in dataLayer. I am less concerned with this compared to Cart page since I can always parse transactionProducts object for the correct SKU since you are correctly outputting that now.

    Thanks

    5 years ago

    Hello, was hoping this could be addressed in the next update. Let me know. Thanks!

    5 years ago

    Hello,

    That works, however as far as I see the only spot the correct Sku is being passed to is in the transactionProducts object on the order confirmation page.

    The correct Sku should also be set everywhere else a Combo Sku is being output, such as:

    Cart page in the cart_product_list array that is passed to the dataLayer

    Order Confirmation page in the ProductIDList array that is passed to the dataLayer

    5 years ago

    Powered by nopCommerce

    Copyright © 2023 FoxNetSoft. All rights reserved