Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding event hook for existing users: #825

Closed
anonymous-matomo-user opened this issue Jun 25, 2009 · 5 comments
Closed

Adding event hook for existing users: #825

anonymous-matomo-user opened this issue Jun 25, 2009 · 5 comments
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Milestone

Comments

@anonymous-matomo-user
Copy link

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;
@robocoder
Copy link
Contributor

Defer to #813 review.

@robocoder
Copy link
Contributor

Sorry, wrong ticket. Deferred to #613 review.

@robocoder
Copy link
Contributor

see: Tracker.knownVisitorInformation

@robocoder
Copy link
Contributor

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

@robocoder
Copy link
Contributor

updated wiki:Plugins/Hooks

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Projects
None yet
Development

No branches or pull requests

2 participants