{"id":23332712,"url":"https://github.com/epappas/tap-matomo","last_synced_at":"2025-04-07T11:18:52.423Z","repository":{"id":196281319,"uuid":"695492410","full_name":"epappas/tap-matomo","owner":"epappas","description":"tap-matomo is a is a Singer tap for Matomo that can be used to pull the site visits and more.","archived":false,"fork":false,"pushed_at":"2023-12-18T10:21:46.000Z","size":624,"stargazers_count":0,"open_issues_count":8,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-13T13:50:48.222Z","etag":null,"topics":["analytics","matomo","matomo-analytics","meltano","poetry","python","signer","singer","singer-tap","site-analysis","tap"],"latest_commit_sha":null,"homepage":"","language":"Python","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/epappas.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-23T10:59:55.000Z","updated_at":"2023-09-23T11:02:16.000Z","dependencies_parsed_at":"2025-02-13T13:48:56.830Z","dependency_job_id":"7b0f47a3-f3b5-4624-be87-c43560815411","html_url":"https://github.com/epappas/tap-matomo","commit_stats":null,"previous_names":["epappas/tap-matomo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epappas%2Ftap-matomo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epappas%2Ftap-matomo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epappas%2Ftap-matomo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epappas%2Ftap-matomo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/epappas","download_url":"https://codeload.github.com/epappas/tap-matomo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247640474,"owners_count":20971558,"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":["analytics","matomo","matomo-analytics","meltano","poetry","python","signer","singer","singer-tap","site-analysis","tap"],"created_at":"2024-12-20T23:18:06.935Z","updated_at":"2025-04-07T11:18:52.398Z","avatar_url":"https://github.com/epappas.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tap-matomo\n\n`tap-matomo` is a Singer tap for [Matomo](https://matomo.org/)\nthat can be used to pull the site visits.\n\nBuilt with [Meltano Singer SDK](https://sdk.meltano.com/).\nand [Singer.io Specs](https://github.com/singer-io).\n\n## Usage\n\n### Extract only\n\nRun `tap-matomo` by itself using `meltano invoke`:\n\n```bash\nmeltano invoke tap-matomo\n```\n\n#### Extract \u0026 Load\n\nRun `tap-matomo` in a pipeline with a loader using `meltano elt`:\n\n```bash\n# Add target-jsonl loader\nmeltano add loader target-jsonl\n\n# Create output directory\nmkdir output\n\n# Run pipeline\nmeltano elt tap-matomo target-jsonl\n\n# View results\ncat output/assets.jsonl\n```\n\nYou should see output along the following lines:\n\n```\n{ \"idSite\": \"\", \"idVisit\": \"\", \"visitIp\": \"\", \"visitorId\": \"\", \"fingerprint\": \"\", \"actionDetails\": [ { \"type\": \"action\", \"url\": \"\", \"pageTitle\": \"\", \"pageIdAction\": \"\", \"idpageview\": \"\", \"serverTimePretty\": \"\", \"pageId\": \"\", \"pageLoadTime\": \"\", \"timeSpent\": \"\", \"timeSpentPretty\": \"\", \"pageLoadTimeMilliseconds\": \"\", \"pageviewPosition\": \"\", \"title\": \"\", \"subtitle\": \"\", \"icon\": \"\", \"iconSVG\": \"\", \"timestamp\": \"\" }, { \"type\": \"event\", \"url\": \"\", \"pageIdAction\": \"\", \"idpageview\": \"\", \"serverTimePretty\": \"\", \"pageId\": \"\", \"eventCategory\": \"\", \"eventAction\": \"\", \"pageviewPosition\": \"\", \"timestamp\": \"\", \"icon\": \"\", \"iconSVG\": \"\", \"title\": \"\", \"subtitle\": \"\", \"eventName\": \"\", \"eventValue\": \"\" } ], \"goalConversions\": \"\", \"siteCurrency\": \"\", \"siteCurrencySymbol\": \"\", \"serverDate\": \"\", \"visitServerHour\": \"\", \"lastActionTimestamp\": \"\", \"lastActionDateTime\": \"\", \"siteName\": \"\", \"serverTimestamp\": \"\", \"firstActionTimestamp\": \"\", \"serverTimePretty\": \"\", \"serverDatePretty\": \"\", \"serverDatePrettyFirstAction\": \"\", \"serverTimePrettyFirstAction\": \"\", \"userId\": \"\", \"visitorType\": \"\", \"visitorTypeIcon\": \"\", \"visitConverted\": \"\", \"visitConvertedIcon\": \"\", \"visitCount\": \"\", \"visitEcommerceStatus\": \"\", \"visitEcommerceStatusIcon\": \"\", \"daysSinceFirstVisit\": \"\", \"secondsSinceFirstVisit\": \"\", \"daysSinceLastEcommerceOrder\": \"\", \"secondsSinceLastEcommerceOrder\": \"\", \"visitDuration\": \"\", \"visitDurationPretty\": \"\", \"searches\": \"\", \"actions\": \"\", \"interactions\": \"\", \"referrerType\": \"\", \"referrerTypeName\": \"\", \"referrerName\": \"\", \"referrerKeyword\": \"\", \"referrerKeywordPosition\": \"\", \"referrerUrl\": \"\", \"referrerSearchEngineUrl\": \"\", \"referrerSearchEngineIcon\": \"\", \"referrerSocialNetworkUrl\": \"\", \"referrerSocialNetworkIcon\": \"\", \"languageCode\": \"\", \"language\": \"\", \"deviceType\": \"\", \"deviceTypeIcon\": \"\", \"deviceBrand\": \"\", \"deviceModel\": \"\", \"operatingSystem\": \"\", \"operatingSystemName\": \"\", \"operatingSystemIcon\": \"\", \"operatingSystemCode\": \"\", \"operatingSystemVersion\": \"\", \"browserFamily\": \"\", \"browserFamilyDescription\": \"\", \"browser\": \"\", \"browserName\": \"\", \"browserIcon\": \"\", \"browserCode\": \"\", \"browserVersion\": \"\", \"events\": \"\", \"continent\": \"\", \"continentCode\": \"\", \"country\": \"\", \"countryCode\": \"\", \"countryFlag\": \"\", \"region\": \"\", \"regionCode\": \"\", \"city\": \"\", \"location\": \"\", \"latitude\": \"\", \"longitude\": \"\", \"visitLocalTime\": \"\", \"visitLocalHour\": \"\", \"daysSinceLastVisit\": \"\", \"secondsSinceLastVisit\": \"\", \"resolution\": \"\", \"plugins\": \"\", \"pluginsIcons\": [ { \"pluginIcon\": \"\", \"pluginName\": \"\" } ], \"experiments\": [], \"adClickId\": \"\", \"adProviderId\": \"\", \"adProviderName\": \"\", \"formConversions\": \"\", \"sessionReplayUrl\": \"\", \"campaignId\": \"\", \"campaignContent\": \"\", \"campaignKeyword\": \"\", \"campaignMedium\": \"\", \"campaignName\": \"\", \"campaignSource\": \"\", \"campaignGroup\": \"\", \"campaignPlacement\": \"\" }\n```\n\n## Stand-alone usage\n\n### Installation\n\n```bash\npip install git+https://github.com/epappas/tap-matomo.git\n```\n\n### Configuration\n\nCreate a `config.json` file with content along the following lines:\n\n```json\n{\n  \"api\": {\n    \"base_url\": \"https://example.com/\",\n    \"module\": \"API\",\n    \"method\": \"Live.getLastVisitsDetails\",\n    \"idSite\": \"25\",\n    \"period\": \"day\",\n    \"date\": \"yesterday\",\n    \"format\": \"JSON\",\n    \"token_auth\": \"..changeme..\",\n    \"filter_limit\": 10000\n  }\n}\n```\n\n### Usage\n\nRun `tap-matomo` with the `config.json` file created above:\n\n```bash\ntap-matomo --config config.json\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fepappas%2Ftap-matomo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fepappas%2Ftap-matomo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fepappas%2Ftap-matomo/lists"}