Skip to content

Commit

Permalink
πŸ” App Insights - Refactored google analytics logs (#1603)
Browse files Browse the repository at this point in the history
refactored filter of analytics
  • Loading branch information
babakamyljanovssw authored Nov 1, 2024
1 parent fd55ca7 commit 5d287b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hooks/useAppInsights.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ export default function useAppInsights() {
item.tags['ai.cloud.role'] = 'SSW.Rules-StaticClientPage';

if (
item.baseData?.target?.includes('analytics.google.com') &&
(item.baseData?.target?.includes('analytics.google.com') ||
item.baseData?.target?.includes('www.google-analytics.com')) &&
item.baseData?.responseCode == 0
) {
// mark these as successful requests as per this comment - https://github.com/SSWConsulting/SSW.Rules/issues/1589#issuecomment-2437107468
Expand Down

0 comments on commit 5d287b1

Please sign in to comment.