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
New dimension for segmenting visitors by fingerprint #14184
Conversation
…rprint in getLastVisitsDetails API response
# Conflicts: # tests/PHPUnit/System/expected/test_OneVisitor_NoKeywordSpecified__Live.getLastVisitsDetails_day.xml
{ | ||
$metric = $dimensionMetricFactory->createMetric(ArchivedMetric::AGGREGATION_UNIQUE); | ||
$metric->setTranslatedName(Piwik::translate('Visitor_Fingerprint')); | ||
$metric->setName('nb_uniq_visitors_fingerprint'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would we still need this call if we set $metricId
to 'visitors_fingerprint'?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When you set visitors_fingerprint
as segment name, then the autosuggest doesn't work automatically anymore.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I meant as $metricId
, not $segmentName
, unless they are related? Not sure I've ever used this API before... :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
setting $metricId
to visitors_fingerprint
might be a good idea @katebutler 👍 . Shouldn't really change much though. In general the code in that method likely will still be needed to ensure only the unique fingerprint
metrics is being created.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @katebutler, could you please respond to this thread (either by applying the requested change or commenting on why you'd rather not)? Once the thread is resolved I can merge this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works for me, code looks good, needs a rebase/merge w/ 3.x-dev before it can be merged. 👍
# Conflicts: # plugins/CoreConsole/tests/System/expected/test_ArchiveCronTest_preArchivedSegment1_noOptions__Live.getLastVisitsDetails_year.xml # tests/PHPUnit/System/expected/test_csvExport__Live.getLastVisitsDetails_day.csv
Fixes #14101