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.

CommentFileSizeAuthor
#7 uc_piwik.zip3.52 KBdgitonga

Comments

jbenjamin’s picture

subscribe

Anonymous’s picture

yes i would like to see an initial commit of some sort so i know how to tweak it myself.

didumir’s picture

subscribe

dgitonga’s picture

Title: Has anything happened? » something has happened!

i'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.

pebosi’s picture

Version: » 6.x-1.x-dev

Just 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.

rlange77’s picture

where is the upload?
would like to give it a go...

dgitonga’s picture

StatusFileSize
new3.52 KB

Hi, 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.

stesind’s picture

subscribe

stesind’s picture

Hi,

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

dgitonga’s picture

hi 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.

stesind’s picture

Thanks 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?

stesind’s picture

One 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!

dgitonga’s picture

I'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.

maxilein’s picture

Hi,

did you make an progress that you would be willing to share?

Thanks.
Max