{"id":15080823,"url":"https://github.com/shapecode/piwik-bundle","last_synced_at":"2026-01-02T21:00:12.120Z","repository":{"id":57048937,"uuid":"98189640","full_name":"shapecode/piwik-bundle","owner":"shapecode","description":null,"archived":false,"fork":false,"pushed_at":"2017-07-24T13:59:50.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-23T04:43:58.187Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shapecode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-24T12:44:45.000Z","updated_at":"2017-07-24T13:18:13.000Z","dependencies_parsed_at":"2022-08-23T19:10:29.734Z","dependency_job_id":null,"html_url":"https://github.com/shapecode/piwik-bundle","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shapecode%2Fpiwik-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shapecode%2Fpiwik-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shapecode%2Fpiwik-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shapecode%2Fpiwik-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shapecode","download_url":"https://codeload.github.com/shapecode/piwik-bundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243910820,"owners_count":20367545,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-09-25T05:31:50.290Z","updated_at":"2026-01-02T21:00:07.041Z","avatar_url":"https://github.com/shapecode.png","language":"PHP","readme":"ShapecodePiwikBundle\n============\n\nA Symfony2 Bundle that helps you to use the Piwik Open Analytics Platform with your project.\n\nIt contains a Twig function that can insert the tracking code into your website. Plus, you can turn it off with a simple configuration switch so you don't track your dev environment.\n\n\nInstallation\n------------\nSimply add the following to your composer.json (see http://getcomposer.org/):\n\n```json\n\"require\": {\n    \"shapecode/piwik-bundle\": \"~1.0\"\n}\n```\n\nAnd enable the bundle in `app/AppKernel.php`:\n\n```php\n\u003c?php\n// app/AppKernel.php\n\npublic function registerBundles()\n{\n    $bundles = array(\n        // ...\n        new Shapecode\\Bundle\\PiwikBundle\\ShapecodePiwikBundle(),\n    );\n}\n```\n\nUsage\n-----\nSomewhere in your views, right before the closing `\u003c/body\u003e` tag, insert \n\n```twig\n{{ piwik() }}\n```\nThis will add the appropriate Piwik tracking code as [described in the API reference](http://developer.piwik.org/api-reference/tracking-javascript#where-can-i-find-the-piwik-tracking-code).\n\nYou have the ability to change the config on the fly if it necessary\n\n```twig\n{{ piwik({\n    site_id: 1,\n    host_name: 'my.piwik.hostname'\n    host_path: '/sub_directory/',\n    no_script_tracking: false\n}) }}\n```\n\nConfiguration\n-------------\nYou can configure the bundle in your `config.yml`. Full Example:\n\n```yaml\nshapecode_piwik:\n    site_id: 1                      # required, no default. site id from piwik tool\n    disabled: %kernel.debug%        # not required, default %kernel.debug%. Usually, you only want to include the tracking code in a production environment\n    host_name: my.piwik.hostname    # required. no default. Hostname to the piwik instance.\n    host_path: \"/sub_directory/\"    # not required, default null. Path to the tracking script on the host.\n    no_script_tracking: true        # not required, default true. Enables Image-Tracking if JavaScript is disabeld.\n```\n\nCredits, Copyright and License\n------------------------------\nCopyright 2017 shapecode. Code released under [the MIT license](LICENSE).\n\nOriginal script from \u003chttp://www.webfactory.de\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshapecode%2Fpiwik-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshapecode%2Fpiwik-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshapecode%2Fpiwik-bundle/lists"}