nystudio107 / craft-instantanalytics

DEPRECATED: Instant Analytics brings full Google Analytics support to your Twig templates and automatic Craft Commerce integration with Google Enhanced Ecommerce.
https://nystudio107.com/
Other
20 stars 9 forks source link

Product List Clicks have null values in GA > Conversions > ecommerce reports #37

Closed mikefats closed 4 years ago

mikefats commented 4 years ago

Product list views are registering fine through Instant Analytics, as well as Product detail views, but not Product list clicks:

Google Analytics screenshot

Am I missing some step in the IA configuration?

khalwat commented 4 years ago

@mikefats You need to add a call to {% do instantAnalytics.addCommerceProductDetailView(PRODUCT_VARIANT) %} on the page where you're showing a detail view of a product. IA can't automatically know when a product is being displayed unfortunately.

See: https://nystudio107.com/docs/instant-analytics/Using.html#craft-commerce-tracking-with-google-enhanced-ecommerce

uaextension commented 4 years ago

Odd. Just like I had the code to report the list views (working correctly) {% do instantAnalytics.addCommerceProductImpression(product, loop.index, 'Catalogue search') %}

My product detail page template has the following code: {% do instantAnalytics.addCommerceProductDetailView(product) %}

so in-line with your suggestion, yet GA's "product list clicks" column in the "Product List Performance" report is all zeros. I've verified that the 'product' that I'm passing is a valid Craft product item.