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

Link with piwik/piwik-php-tracker #7

Open
kachkaev opened this issue Oct 30, 2015 · 2 comments
Open

Link with piwik/piwik-php-tracker #7

kachkaev opened this issue Oct 30, 2015 · 2 comments

Comments

@kachkaev
Copy link

In some web apps it may be useful to supplement the javascript tracker with a PHP one. This will help ensure that the statistics are not partially missing because of JS errors in old browsers or very slow networks.

Official implementation of the PHP tracker is in piwik/piwik-php-tracker. It can be easily made available as a service in your bundle. Usage example:

$tracker = $container->get('webfactory_piwik.tracker');
$tracker->doThis();
$tracker->doThat();
$response = new Response();
//...
return $response;

When piwik is disabled in config, the PHP tracker should be too (the service can be replaced with a dummy object having the same API).

@ghost
Copy link

ghost commented Mar 24, 2016

👍

@mpdude
Copy link
Member

mpdude commented Dec 6, 2018

Nice idea, I’d be glad to review a PR 🤙🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants