Map URL Query string parameter to Custom Variables #6812
Labels
duplicate
For issues that already existed in our issue tracker and were reported previously.
Enhancement
For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Milestone
The goal of this issue is to let users define a set of URL Query string Parameters that they want to store as Custom Variables of scope
page
in the request.For example imagine in the log file we have a URL path such as
/page?pageTitle=Hello, world&pageId=com.x.y.us.abc&countryCode=us&accountCode=us1234&accountName=Testaccount
User may want to configure:
pageId
, record it in Custom Variable slot 5 with name =pageId
, value =com.x.y.us.abc
countryCode
, record it in Custom Variable slot 6, name =countryCode
, value =us
accountName
, record it in Custom Variable slot 7, name =accountCode
, value =Testaccount
Possible solution:
import_logs.py
script:--query-string-parameters-to-custom-variables="pageId:5,countryCode:6,accountName:7"
import_logs.py
or maybe it should instead be done as a new custom pluginThe text was updated successfully, but these errors were encountered: