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

New dimension for segmenting visitors by fingerprint #14184

Merged
merged 14 commits into from Apr 1, 2019
Merged

New dimension for segmenting visitors by fingerprint #14184

merged 14 commits into from Apr 1, 2019

Conversation

katebutler
Copy link

Fixes #14101

@diosmosis diosmosis added this to the 3.9.0 milestone Mar 12, 2019
@diosmosis diosmosis added Needs Review PRs that need a code review not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. labels Mar 12, 2019
{
$metric = $dimensionMetricFactory->createMetric(ArchivedMetric::AGGREGATION_UNIQUE);
$metric->setTranslatedName(Piwik::translate('Visitor_Fingerprint'));
$metric->setName('nb_uniq_visitors_fingerprint');
Copy link
Member

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'?

Copy link
Member

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.

Copy link
Member

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... :)

Copy link
Member

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.

Copy link
Member

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.

Copy link
Member

@diosmosis diosmosis left a 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
@mattab mattab modified the milestones: 3.9.0, 3.10.0 Mar 18, 2019
@diosmosis diosmosis merged commit 0df4c84 into 3.x-dev Apr 1, 2019
@diosmosis diosmosis deleted the 14101 branch April 1, 2019 21:57
@mattab mattab removed the not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. label Jun 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Visitor raw data API: expose the "fingerprint" value of each customer in API responses (log_visit.config_id)
4 participants