Hi,
since several days i got my Joomla 2.5.6 + VM 2.0.18a online. I track visitors / orders via Piwik 1.10.1.
But i have got a problem: Normal visits are tracked, Orders not.
For my old vm 1.19 i defined in Piwik a target "order", triggered if url contains part of the order-confimation-page - url.
So i changed it for vm 2 to: URL contains: "cart/confirm.html". This works, except for paypal Orders. Unfortunately i have ~80% paypal orders. I use the Standard-PayPal plugin, maybe the redirection to paypal starts too soon?
Then i googled a bit and found "Piwik for VirtueMart 2" on http://extensions.virtuemart.net/index.php?option=com_virtuemart&view=productdetails&virtuemart_category_id=13&virtuemart_product_id=29.
I tried it, but it doesnt work too. No orders are tracked.
After some test-orders there are in piwik "ECommerce & Targets" only "4 Besuche mit Verlassener Warenkorb" i don't know the exact therm in english, maybe "4 visits in abandoned shoppingcart" (right box under graph). That means the vm plugin is somehow connected to piwik . But orders are not tracked anyway.
I would be very greatful if s.o. has a tip how to get the plugin to work.
In the settings of the plugin I tried:
Piwik URL:
https://www.myUrl.de/piwik
https://www.myUrl.de/piwik/
http://www.myUrl.de/piwik
http://www.myUrl.de/piwik/
Order status confirmed order: first two states.
I hope s.o. has an idea... i have to get either the "normal" piwik-target or the "Piwik for VirtueMart2" - plugin to work as soon as possible :(
Bye, Mojo
Hi,
at least i got an solution how to track paypal orders via piwik. The problem is in the Standard-VM2 paypal-plugin, it redirects, before the document has loaded completely.
Old code in paypal.php:
$html = '<html><head><title>Redirection</title></head><body><div style="margin: auto; text-align: center;">';
$html .= '<form action="' . "https://" . $url . '" method="post" name="vm_paypal_form" >';
$html .= '<input type="submit" value="' . JText::_ ('VMPAYMENT_PAYPAL_REDIRECT_MESSAGE') . '" />';
foreach ($post_variables as $name => $value) {
$html .= '<input type="hidden" name="' . $name . '" value="' . htmlspecialchars ($value) . '" />';
}
$html .= '</form></div>';
$html .= ' <script type="text/javascript">';
$html .= ' document.vm_paypal_form.submit();';
$html .= ' </script></body></html>';
it to it is loaded in index.php so why html, head and body?. I changed it to:
$html = '<div style="margin: auto; text-align: center;">';
$html .= '<form action="' . "https://" . $url . '" method="post" name="vm_paypal_form" >';
$html .= '<input type="submit" value="' . JText::_ ('VMPAYMENT_PAYPAL_REDIRECT_MESSAGE') . '" />';
foreach ($post_variables as $name => $value) {
$html .= '<input type="hidden" name="' . $name . '" value="' . htmlspecialchars ($value) . '" />';
}
$html .= '</form></div>';
$html .= ' <script type="text/javascript">';
$html .= ' jQuery(document).ready(function() {';
$html .= ' document.vm_paypal_form.submit();';
$html .= ' });';
$html .= ' </script>';
...and my test paypal-order was tracked in piwik as it should.
the "Piwik for VirtueMart 2" - plugin doesn't work anyway. Would be nice, if s.o. had a hint how to get it to work because it provides much more information in piwik then the "normal" order tracking.
Bye, Mojo