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

Support of multiple trackers #8

Open
kachkaev opened this issue Oct 30, 2015 · 1 comment
Open

Support of multiple trackers #8

kachkaev opened this issue Oct 30, 2015 · 1 comment

Comments

@kachkaev
Copy link

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');
@mpdude
Copy link
Member

mpdude commented Oct 31, 2015

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

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