{"id":16934405,"url":"https://github.com/wikimatze/matomo-middleman","last_synced_at":"2025-04-11T18:52:17.485Z","repository":{"id":56883007,"uuid":"114280648","full_name":"wikimatze/matomo-middleman","owner":"wikimatze","description":"Tracking code for matomo","archived":false,"fork":false,"pushed_at":"2019-11-21T07:55:47.000Z","size":9,"stargazers_count":0,"open_issues_count":2,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T14:44:47.528Z","etag":null,"topics":["middleman","middleman-extension","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wikimatze.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-14T17:57:09.000Z","updated_at":"2019-02-09T06:49:18.000Z","dependencies_parsed_at":"2022-08-20T13:10:40.168Z","dependency_job_id":null,"html_url":"https://github.com/wikimatze/matomo-middleman","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wikimatze%2Fmatomo-middleman","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wikimatze%2Fmatomo-middleman/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wikimatze%2Fmatomo-middleman/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wikimatze%2Fmatomo-middleman/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wikimatze","download_url":"https://codeload.github.com/wikimatze/matomo-middleman/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248148236,"owners_count":21055547,"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":["middleman","middleman-extension","ruby"],"created_at":"2024-10-13T20:52:02.224Z","updated_at":"2025-04-11T18:52:17.462Z","avatar_url":"https://github.com/wikimatze.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Matomo-Middleman\n[![Gem Version](https://badge.fury.io/rb/matomo-middleman.svg)](https://badge.fury.io/rb/matomo-middleman)\n\nIt's an extension for the [Middleman](http://middlemanapp.com/) static site generator\nto use [Matomo](https://matomo.org/) tracking (previously known as [Piwik](https://matomo.org/blog/2018/01/piwik-is-now-matomo/)).\n\n\n## Installation\n\nClone the repository `git clone git@github.com:wikimatze/matomo-middleman.git ~/git/matomo-middleman`.\nThen add the following line to your `Gemfile`:\n\n\n```ruby\ngem 'matomo-middleman', path: \"/home/wm/git/matomo-middleman/\"\n```\n\nRun `bundle install`.\n\n\n## Configuration\n\nIn your `config.rb` you can configure the settings as follow:\n\n```ruby\nactivate :matomomiddleman do |p|\n  p.domain = '\u003cyour-domain\u003e'\n  p.url = '\u003cyour-url\u003e'\n  p.id = 1\nend\n```\n\n\n## Helper\n\nThis plugin will add the following helper method:\n\n```erb\n\u003c%= matomo %\u003e\n```\n\n\nwhich will expand to\n\n\n```erb\n\u003cscript type=\"text/javascript\"\u003e\n  var _paq = _paq || [];\n  _paq.push(['trackPageView']);\n  _paq.push(['enableLinkTracking']);\n  (function() {\n  var u=((\"https:\" == document.location.protocol) ? \"https\" : \"http\") + \"://\u003cyour-domain\u003e/\u003cyour-url\u003e/\";\n  _paq.push(['setTrackerUrl', u+'piwik.php']);\n  _paq.push(['setSiteId', 1]);\n  var d=document, g=d.createElement('script'),\n  s=d.getElementsByTagName('script')[0];\n  g.type='text/javascript';\n  g.defer=true; g.async=true;\n  g.src=u+'piwik.js';\n  s.parentNode.insertBefore(g,s);\n  })();\n\u003c/script\u003e\n\u003cnoscript\u003e\u003cp\u003e\u003cimg src=\"https://\u003cyour-domain\u003e/\u003cyour-url\u003e/piwik.php?idsite=1\" style=\"border:0;\" alt=\"\" /\u003e\u003c/p\u003e\u003c/noscript\u003e\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwikimatze%2Fmatomo-middleman","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwikimatze%2Fmatomo-middleman","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwikimatze%2Fmatomo-middleman/lists"}