Firstly I am not a developer so unfortunately I wouldn't know where to begin with this implementation(!) Is it possible however for the module to be developed so that the Yahoo Analytics tracking system fully integrates with Ubercart? With ubercart clearly being the leading ecommerce module for Drupal sites I think this would be a great feature to have developed.
An issue that I am currently experiencing is that although the Yahoo module allows you to track "sale", "add_to_cart", "product_view" etc, there is no obvious way to link ubercart to these to know which products they relate to or indeed their prices for ecommerce purposes. What I assume would therefore need to be developed is for the Yahoo Analytics module to output product SKU/sell price/qty into the tracking code on product pages/pages defined in the "Included Paths/Pages/URLs" area. Similarly this information would need to be presented to Yahoo when at the shopping cart/checkout/checkout complete stages.
Currently for example using the system I can see that Yahoo's "add_to_cart" action was triggered x times, however there is no way of knowing what products were added, or which ones converted.
Development of this module for use with Ubercart/ecommerce would certainly be a great improvement..
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | ywa_ubercart.patch | 10.56 KB | Andy Langton |
Comments
Comment #1
Andy Langton commentedWe ended up altering the files ourselves, and have patched the relevant files as per the attachment. This currently adds a checkbox to track ubercart in the admin section, and only works for completed sales. In future it should be possible to track add to cart, pending sales etc. Tracking conversions seemed the most important functionality to start with, however!
This is slightly "rough and ready" but has worked for our internal testing.
Comment #2
Andy Langton commentedQuick comment - YWA generates a different path to the main javascript for some accounts, e.g. http://d.yimg.com/mi/eu/ywa.js vs http://d.yimg.com/mi/ywa.js - for the above, it was the /eu/ version. Having the right one seems to be necessary for tracking to work properly, so you may need to modify the above based on the the location of the Yahoo script as referenced in the installation section of the YWA control panel.