piwik-bundle icon indicating copy to clipboard operation
piwik-bundle copied to clipboard

Support of multiple trackers

Open kachkaev opened this issue 10 years ago • 1 comments

I've seen a few cases when people were willing to use multiple trackers in their apps. It would be nice if your repository could support them too in a way. The config would look like this:

webfactory_piwik:
    main:
        site_id: 1
        disabled: %kernel.debug%
        piwik_host: my.piwik.hostname
       tracker_path: "/js/"
    other:
        site_id: 42
        disabled: %kernel.debug%
        piwik_host: example.com
        tracker_path: "/analytics/"

If this ever gets implemented, service names in #7 would have to be made different too:

$tracker1 = $container->get('webfactory_piwik.tracker.main');
$tracker2 = $container->get('webfactory_piwik.tracker.other');

kachkaev avatar Oct 30 '15 16:10 kachkaev

We should do this in a BC way and we need to allow choosing a tracker in the Twig function as well.

mpdude avatar Oct 31 '15 13:10 mpdude