Skip to content

Adding Matomo URL to email report#137

Merged
snake14 merged 1 commit intomatomo-org:5.x-devfrom
Digitalist-Open-Cloud:URL_email_report
Dec 18, 2024
Merged

Adding Matomo URL to email report#137
snake14 merged 1 commit intomatomo-org:5.x-devfrom
Digitalist-Open-Cloud:URL_email_report

Conversation

@mikkeschiren
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
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