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

Add link to segmented visitor log in goal conversions overview #9465

Merged
merged 2 commits into from Jan 12, 2016

Conversation

sgiehl
Copy link
Member

@sgiehl sgiehl commented Jan 4, 2016

image

fixes #7411

@sgiehl sgiehl added not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. Needs Review PRs that need a code review labels Jan 4, 2016
@@ -37,6 +37,10 @@
</li>
{% endif %}
</ul>

<a href="javascript:;" class="segmentedlog" onclick="DataTable_RowActions_Registry.getActionByName('SegmentVisitorLog').createInstance({}).showVisitorLog('Goals.getMetrics', 'visitConvertedGoalId=={{ idGoal }}', {})">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we maybe instead provide a static function SegmentedVisitorLog.show(method, segment) or similar? This way we could reuse it somewhere else more easily and would hide the dependency to RowActions etc.

Even better would be maybe if DataTable_RowActions_SegmentVisitorLog.prototype.doOpenPopover used this method as well so we do not use RowActions at all when calling SegmentedVisitorLog.show

@mattab mattab modified the milestones: 2.16.1, 2.16.0 Jan 12, 2016
@sgiehl
Copy link
Member Author

sgiehl commented Jan 12, 2016

I've refactored the code. @tsteur would you please have a look again.

tsteur added a commit that referenced this pull request Jan 12, 2016
Add link to segmented visitor log in goal conversions overview
@tsteur tsteur merged commit 0ef8d40 into master Jan 12, 2016
@tsteur tsteur deleted the goalsegment branch January 12, 2016 22:22
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 not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants