Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map URL Query string parameter to Custom Variables #6812

Closed
mattab opened this issue Dec 5, 2014 · 1 comment
Closed

Map URL Query string parameter to Custom Variables #6812

mattab opened this issue Dec 5, 2014 · 1 comment
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

Comments

@mattab
Copy link
Member

mattab commented Dec 5, 2014

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:

  • URL parameter pageId, record it in Custom Variable slot 5 with name = pageId, value = com.x.y.us.abc
  • URL parameter countryCode, record it in Custom Variable slot 6, name = countryCode, value = us
  • URL parameter accountName, record it in Custom Variable slot 7, name = accountCode, value = Testaccount
  • etc.

Possible solution:

  • This could be done for example with a new parameter to the import_logs.py script:
    • --query-string-parameters-to-custom-variables="pageId:5,countryCode:6,accountName:7"
  • I'm not sure whether this functionnality should be done in the import_logs.py or maybe it should instead be done as a new custom plugin
    • in this way it lets any website reuse this Query string -> Custom vars mapping.
@mattab mattab added Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. c: Log Analytics (import_logs.py) labels Dec 5, 2014
@mattab mattab added this to the Mid term milestone Dec 5, 2014
@mattab mattab changed the title Log Analytics: Map URL Query string parameter to Custom Variables Map URL Query string parameter to Custom Variables Dec 5, 2014
@diosmosis diosmosis assigned diosmosis and unassigned diosmosis Dec 5, 2014
@mattab
Copy link
Member Author

mattab commented Mar 12, 2015

Issue was moved to the new repository for Piwik Log Analytics: https://github.com/piwik/piwik-log-analytics/issues

refs #7163

@mattab mattab closed this as completed Mar 12, 2015
@mattab mattab added the duplicate For issues that already existed in our issue tracker and were reported previously. label Mar 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

No branches or pull requests

2 participants