Ticket #825 (closed New feature: fixed)
Adding event hook for existing users:
| Reported by: | andrew.johnstone | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Piwik 0.4.3 |
| Component: | Core | Keywords: | |
| Cc: | Sensitive: |
Description
It would be ideal to have event hooks to cater for existing users, that we can add additional functionality too.
Index: core/Tracker/Visit.php
===================================================================
--- core/Tracker/Visit.php (revision 2)
+++ core/Tracker/Visit.php (working copy)
@@ -148,6 +148,9 @@
$idActionReferer,
$this->visitorInfo['time_spent_ref_action']
);
+
+ Piwik_PostEvent('Tracker.existingVisitorInformation', $this->visitorInfo);
+
} catch(Piwik_Tracker_Visit_VisitorNotFoundInDatabase $e) {
printDebug($e->getMessage());
$this->visitorKnown = false;
Change History
Note: See
TracTickets for help on using
tickets.
