Ticket #825 (closed New feature: fixed)

Opened 3 years ago

Last modified 3 years ago

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

Changed 3 years ago by vipsoft

  • milestone set to 2- DigitalVibes

Defer to #813 review.

Changed 3 years ago by vipsoft

Sorry, wrong ticket. Deferred to #613 review.

Changed 3 years ago by matt

  • milestone changed from 2- DigitalVibes to 1 - Piwik 0.4.2

Changed 3 years ago by vipsoft

  • priority changed from major to normal

Changed 3 years ago by vipsoft

see: Tracker.knownVisitorInformation

Changed 3 years ago by vipsoft

  • status changed from new to closed
  • resolution set to fixed

(In [1344]) fixes #825 - add event hook for known users, Tracker.knownVisitorInformation

Changed 3 years ago by vipsoft

Note: See TracTickets for help on using tickets.