matomo-log-analytics
matomo-log-analytics copied to clipboard
New Config for Log-Import: Filter by Site-ID while --replay-tracking
An option to filter by a Site-ID while importing (with replay-tracking) would be a handy feature. In most cases, Webserverlogfiles contain many Site-IDs. At the moment, it's not possible to import just one or multiple specific IDs, but instead, every Site-ID is imported which was found in the logfile.
To select just one or multiple specific Site-IDs which should be imported could be great in the following cases:
- Migrating a single/multiple specific Site-ID into another instance (at least the lookback window to not have a peak in "New Visitors" metric)
- When you have a mixed setup, some Site-IDs use Javascript tracking, others App-Tracking, others logimport with replay-tracking, you only want the ladder to be imported by the logimporter
- You can store standardized testdata in just one file and just import the datasets you need at the moment
- When the serverside tracking fails (for reasons...) and you use the logimporter (replay-tracking) to catch up to the most recent data state, you want to import the most important Site-IDs first and then the rest (or just specific Site-IDs at all).
Thanks for suggestion @peterbo this would be a useful new feature. Could be done for example via --include-idsite=SITE_ID