See post in: http://forum.piwik.org/read.php?2,73977
I think we need to:
Then we can also come up with a "How to" for tracking on Paypal. Of course these features will be useful for many other similar use cases.
(In ) PiwikTracker
I too would be very interested in this use case; I stumbled across the forum post looking for exactly this. This would be extremely useful for getting very accurate associations between referrals and actual purchases!
I think that (for at least this specific use case), you would need to make use of PayPal's custom field to pass the visitor ID through IPN (Since only PayPal, and not the actual visitor, will pass data through IPN)
(In ) Refs #2222 Implementing Visitor ID forced request, so that we can log, after the fact, a page/goal/action to the latest visit of a given visitor ID (useful for example to trigger goal conversions that were missed by the JS beacon...)
Had to add another index on the log_visit table unfortunately, to ensure reasonnably fast lookup on the idvisitor, even though this index will very rarely get used (never if you don't use the tracking API with setVisitorId()...)
(In ) Fixes #2168
Refs #2222 Accurate Paypal tracking (or any other third party "after the fact" Goal conversion): implementation is now done, we must write some kind of guide and test
matheweis, I think you can now try and get this to work. Here is a proposal / pseudo code:
Then, Piwik will record, for the visit that was redirected to Paypal, the Goal conversion, making sure the Referrer (search engine, or website) or the Campaign (and keyword) used to reach the site in the first place, are credited for this goal conversion.
It would be great if you could give it a try and report if it is working :)
matheweis, now is a good time to help with the Paypal stuff if you can :) PLease see my post in the forum: http://forum.piwik.org/read.php?2,73977,page=1#msg-74946 and if you can test it and report, it would be great thanks!
After implementing this and running it for several days, I can confirm that it's working. Thanks Matt!
Thanks for your patience and help in getting this to work nicely!
Do you think you would be able to write a short, practical how to to get Paypal tracking work for other Piwik users? it would be great. I will then write a documentation about campaign tracking and to explain attribution in general.
Sure thing. I'll try to work on that this week.
Basic how to guide posted in forum: [http://forum.piwik.org/read.php?2,76296]
Thanks morrack, very appreciated! Maybe, we can wait a few weeks see if the post gets any feedback, and then turn it into some kind of official How to for piwik.org/docs/ ?
When we put this tutorial online as an "official doc", we could also write a section about "How to record recurrent payments / conversions using Piwik" which would explain how to track revenue from monthly memberships, and still credit the money to the initial referrer that brought in the visitor, credit the right keyword/country/etc.