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

Adding Matomo URL to email report #137

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

mikkeschiren
Copy link
Contributor

@mikkeschiren mikkeschiren commented Dec 17, 2024

Description:

When you manage more than one Matomo instance, you would like to know from which instance you are getting email alert. This merge requests adds Matomo URL to the email report.

Fixes: #136

Review

Copy link
Contributor

@snake14 snake14 left a comment

Choose a reason for hiding this comment

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

Looks good to me. I just had one optional comment.

Any concerns merging this @AltamashShaikh ?

Comment on lines +45 to +46
$url = parse_url($matomoUrl);
$matomoHost = $url['host'];
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe this would be a little cleaner?

Suggested change
$url = parse_url($matomoUrl);
$matomoHost = $url['host'];
$matomoHost = parse_url($matomoUrl, PHP_URL_HOST);

Copy link
Contributor

@AltamashShaikh AltamashShaikh left a comment

Choose a reason for hiding this comment

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

Looks good to me 👍

@AltamashShaikh
Copy link
Contributor

@snake14 let the tests run, if all good we can merge it 👍

@snake14 snake14 merged commit 8ac736a into matomo-org:5.x-dev Dec 18, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add instance URL in emails
3 participants