Has anything been done with this project? I might need to use piwik's ecommerce analytics in a project soon. If I do, I'd be happy to help build on what you've already done. It looks like the git repository is empty though.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | uc_piwik.zip | 3.52 KB | dgitonga |
Comments
Comment #1
jbenjamin commentedsubscribe
Comment #2
Anonymous (not verified) commentedyes i would like to see an initial commit of some sort so i know how to tweak it myself.
Comment #3
didumir commentedsubscribe
Comment #4
dgitonga commentedi've already got the basic complete order tracking functionality working in code for the product line items and the order details. Will post code sample here when I complete testing (should be no more than 2 days).
I'm working on getting the other tracking functions working with the 'add to cart' button for cart abandonment conversion rates and product views etc, might need help with drupal hooks writing ui.
Comment #5
pebosi commentedJust pushed my early dev Version, using simple hook_init to add code.
@dgitts would be nice to see your code here to combine with my dev Version.
Comment #6
rlange77 commentedwhere is the upload?
would like to give it a go...
Comment #7
dgitonga commentedHi, sorry for the delay in posting the code.
I've attached a zip file containing the development module. Unzip the file into your modules directory, this will create the uc_piwik folder, go to your drupal_site/admin/build/modules and enable the module 'DEV2: Piwik Analytics for Ubercart', it should be listed under statistics category.
These modules are required to run uc_piwik:
- Piwik Web analytics
- Ubercart Core Modules
- & Token
Just enable the module and do a test checkout, then go to your Piwik Analytics Reports, Ecommerce section, and you should be tracking ecommerce orders & items purchased.
I also added some code to track discount coupon amounts provided through Discount Coupons (uc_coupon) module.
@pebosi let me know if you would like for me to be officially involved in your project.
Comment #8
stesind commentedsubscribe
Comment #9
stesind commentedHi,
Thanks for contributing this module! I activated this module but there is no tracking of products, carts and orders. I think the ecommerce tracking code is not build in the pages. I can just see the normal Piwik tracking code. Do you have an idea?
Steffen
Comment #10
dgitonga commentedhi Steffen, the tracking code is inserted at order completion page (default order completion page url looks something like this, cart/.../complete), it should also work for custom order completion page. Make sure you have ecommerce stats activated on the site in your piwik interface & you have configured piwik module already.
Comment #11
stesind commentedThanks for the answer!
I think I know what the reason is. If it is taking the order completion page into account the reason could be that customers are not clicking on the "return to ..." link at paypal. In this case the order is not counted. Did you implement some functionality for abandoned carts?
Comment #12
stesind commentedOne more question to my problem of post #11. Would it be possible to add an additional trigger if the order is completed other than the checkout complete page? Like a conditional action with some php?
Thanks!
Comment #13
dgitonga commentedI'm currently working on the additional tracking functions like the product views and cart conversions, will post soon as I get those working. Thanks for pointing that out, i completely forgot abt 3rd party checkout redirection, will see how to add google/paypal & amazon checkout.
Comment #14
maxilein commentedHi,
did you make an progress that you would be willing to share?
Thanks.
Max