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

Create the "Top converting traffic source" key metric widget tile. #7253

Merged
merged 9 commits into from
Jul 10, 2023

Conversation

techanvil
Copy link
Collaborator

Summary

Addresses issue:

Relevant technical choices

PR Author Checklist

  • My code is tested and passes existing unit tests.
  • My code has an appropriate set of unit tests which all pass.
  • My code is backward-compatible with WordPress 5.2 and PHP 5.6.
  • My code follows the WordPress coding standards.
  • My code has proper inline documentation.
  • I have added a QA Brief on the issue linked above.
  • I have signed the Contributor License Agreement (see https://cla.developers.google.com/).

Do not alter or remove anything below. The following sections will be managed by moderators only.

Code Reviewer Checklist

  • Run the code.
  • Ensure the acceptance criteria are satisfied.
  • Reassess the implementation with the IB.
  • Ensure no unrelated changes are included.
  • Ensure CI checks pass.
  • Check Storybook where applicable.
  • Ensure there is a QA Brief.

Merge Reviewer Checklist

  • Ensure the PR has the correct target branch.
  • Double-check that the PR is okay to be merged.
  • Ensure the corresponding issue has a ZenHub release assigned.
  • Add a changelog message to the issue.

@github-actions
Copy link

github-actions bot commented Jul 3, 2023

Build files for d4f9491 have been deleted.

@github-actions
Copy link

github-actions bot commented Jul 3, 2023

Size Change: +514 B (0%)

Total Size: 1.39 MB

Filename Size Change
./dist/assets/css/googlesitekit-admin-css-********************.min.css 50.4 kB +35 B (0%)
./dist/assets/js/33-********************.js 930 B +1 B (0%)
./dist/assets/js/googlesitekit-activation-********************.js 24.1 kB +9 B (0%)
./dist/assets/js/googlesitekit-ad-blocking-recovery-********************.js 52.1 kB +23 B (0%)
./dist/assets/js/googlesitekit-adminbar-********************.js 33 kB +6 B (0%)
./dist/assets/js/googlesitekit-api-********************.js 9.88 kB -4 B (0%)
./dist/assets/js/googlesitekit-components-gm2-********************.js 5.29 kB +3 B (0%)
./dist/assets/js/googlesitekit-components-gm3-********************.js 9.96 kB +1 B (0%)
./dist/assets/js/googlesitekit-data-********************.js 2.16 kB -10 B (0%)
./dist/assets/js/googlesitekit-datastore-site-********************.js 16.5 kB -3 B (0%)
./dist/assets/js/googlesitekit-datastore-ui-********************.js 9.4 kB +2 B (0%)
./dist/assets/js/googlesitekit-main-dashboard-********************.js 80 kB +7 B (0%)
./dist/assets/js/googlesitekit-modules-********************.js 21.6 kB -28 B (0%)
./dist/assets/js/googlesitekit-modules-adsense-********************.js 105 kB +48 B (0%)
./dist/assets/js/googlesitekit-modules-analytics-4-********************.js 57.6 kB +410 B (+1%)
./dist/assets/js/googlesitekit-modules-analytics-********************.js 88.2 kB +12 B (0%)
./dist/assets/js/googlesitekit-modules-optimize-********************.js 20.6 kB -12 B (0%)
./dist/assets/js/googlesitekit-modules-pagespeed-insights-********************.js 21.4 kB +2 B (0%)
./dist/assets/js/googlesitekit-modules-search-console-********************.js 53.2 kB -13 B (0%)
./dist/assets/js/googlesitekit-modules-tagmanager-********************.js 32.4 kB -1 B (0%)
./dist/assets/js/googlesitekit-settings-********************.js 49.5 kB +5 B (0%)
./dist/assets/js/googlesitekit-splash-********************.js 67.1 kB +5 B (0%)
./dist/assets/js/googlesitekit-user-input-********************.js 42 kB +9 B (0%)
./dist/assets/js/googlesitekit-widgets-********************.js 20.1 kB +1 B (0%)
./dist/assets/js/googlesitekit-wp-dashboard-********************.js 62.9 kB +7 B (0%)
./dist/assets/js/runtime-********************.js 1.3 kB -1 B (0%)
ℹ️ View Unchanged
Filename Size
./dist/assets/css/googlesitekit-adminbar-css-********************.min.css 11.2 kB
./dist/assets/css/googlesitekit-wp-dashboard-css-********************.min.css 7.55 kB
./dist/assets/js/30-********************.js 2.8 kB
./dist/assets/js/31-********************.js 2.28 kB
./dist/assets/js/32-********************.js 3.72 kB
./dist/assets/js/34-********************.js 888 B
./dist/assets/js/35-********************.js 3.12 kB
./dist/assets/js/analytics-advanced-tracking-********************.js 769 B
./dist/assets/js/googlesitekit-datastore-forms-********************.js 9.3 kB
./dist/assets/js/googlesitekit-datastore-location-********************.js 2.09 kB
./dist/assets/js/googlesitekit-datastore-user-********************.js 23.3 kB
./dist/assets/js/googlesitekit-entity-dashboard-********************.js 66.3 kB
./dist/assets/js/googlesitekit-i18n-********************.js 3.92 kB
./dist/assets/js/googlesitekit-polyfills-********************.js 379 B
./dist/assets/js/googlesitekit-vendor-********************.js 311 kB

compressed-size-action

Copy link
Collaborator

@aaemnnosttv aaemnnosttv left a comment

Choose a reason for hiding this comment

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

Thanks @techanvil – this LGTM, just a few small observations.

@@ -37,14 +49,92 @@ export default function TopConvertingTrafficSourceWidget( {
select( CORE_USER ).isKeyMetricsWidgetHidden()
Copy link
Collaborator

Choose a reason for hiding this comment

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

This must have been scaffolded before, but there is a utility used by other widget tiles to simplify this which also prevents side effects from the widget rendering without the need to have conditional selects

export default whenKeyMetricsWidgetVisible()( LoyalVisitorsWidget );

It might not be worth changing at this point as this should be covered by #7061

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks @aaemnnosttv, that's useful to know. It does seem this should conceptually be covered by #7061, but looking at the IB, it only specifies the removal of the whenKeyMetricsWidgetVisible HOC, with the only reference to keyMetricsWidgetHidden being in a struck-out line.

Noting that there are other widgets currently doing a similar check with isKeyMetricsWidgetHidden(), and furthermore that #7061 is currently in execution with @jimmymadon, I'd say it's probably not worth updating this widget, but rather getting it merged while Jimmy's still working on #7061, and dropping him a line to make sure he merges develop into his branch and updates all of these widgets to remove the checks based on isKeyMetricsWidgetHidden().

$ grep -l isKeyMetricsWidgetHidden assets/js/**/*Widget.js

assets/js/modules/analytics-4/components/widgets/EngagedTrafficSourceWidget.js
assets/js/modules/analytics-4/components/widgets/PopularProductsWidget.js
assets/js/modules/analytics-4/components/widgets/TopCitiesWidget.js
assets/js/modules/analytics-4/components/widgets/TopConvertingTrafficSourceWidget.js
assets/js/modules/analytics-4/components/widgets/TopCountriesWidget.js
assets/js/modules/analytics-4/components/widgets/TopTrafficSourceWidget.js

Copy link
Collaborator Author

@techanvil techanvil Jul 6, 2023

Choose a reason for hiding this comment

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

Ah - actually, I should have looked into #7061 a bit more deeply, I've now seen there's an open PR in which @jimmymadon is already addressing those isKeyMetricsWidgetHidden() checks in the other widgets. So this really just becomes a question about timing and if it makes sense to merge this PR while #7061 is in progress...

Copy link
Collaborator Author

@techanvil techanvil Jul 6, 2023

Choose a reason for hiding this comment

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

Update: Having spoken to Jimmy on Slack he's happy to take the approach of merging develop into his branch once this one's merged, and updating this component along with the others.

Copy link
Collaborator

@aaemnnosttv aaemnnosttv left a comment

Choose a reason for hiding this comment

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

Thanks @techanvil – this looks good, however I'm seeing some strange results in my testing. I think you'll see what I mean

Last 28 days
image

Last 7 days
image

Looking at the report data, the metric values for the rows are always 1, but the totals show something a bit more variable and realistic. Should we be using totals instead for the percentages?

@techanvil
Copy link
Collaborator Author

techanvil commented Jul 10, 2023

Thanks @techanvil – this looks good, however I'm seeing some strange results in my testing. I think you'll see what I mean

Last 28 days image

Last 7 days image

Looking at the report data, the metric values for the rows are always 1, but the totals show something a bit more variable and realistic. Should we be using totals instead for the percentages?

Thanks for pointing this out @aaemnnosttv. As discussed, the values do change when selecting the 90 day date range, which suggests that they may indeed be correct; however I've not managed to come to a definitive conclusion about the total values.

image

Referring to the example reports below, note the total value for date_range_0 is 0.98451566438602811 for both the limit: 1 and no-limit 28 day reports - indicating the totals don't reflect the sum or the average of the values returned in rows.

One further note - as far as I can see we don't have access to metrics that would allows us to manually calculate these totals - there is no session dimension that would allow us to break down conversion by session that I can see although there could of course be something I am missing here.

As implied above, the report does provide a different value for top channel group in the 90 day report, where the date_range_0 value is 0.99552572706935127 and date_range_1 is 0.084192439862542962.

My feeling here is that we should probably trust the value of the top channel group, seeing as it does differ across date ranges and the total value (that we're not using anyway) is slightly unclear and not changing across differing sets of rows in the reports.

However it does leave me a little unsettled not knowing why these totals are behaving as they are. It might be worth looping Mariya into the conversation to see if she could provide a bit more clarity. What do you think?

Previous 28 days, limit 1

Request:

{
  "dateRanges": [
    {
      "endDate": "2023-07-09",
      "startDate": "2023-06-12"
    },
    {
      "endDate": "2023-06-11",
      "startDate": "2023-05-15"
    }
  ],
  "dimensions": [
    {
      "name": "sessionDefaultChannelGroup"
    }
  ],
  "keepEmptyRows": true,
  "limit": 1,
  "metricAggregations": [
    "TOTAL",
    "MINIMUM",
    "MAXIMUM"
  ],
  "metrics": [
    {
      "name": "sessionConversionRate"
    }
  ],
  "property": "properties/285794360"
}

Response:

{
  "dimensionHeaders": [
    {
      "name": "sessionDefaultChannelGroup"
    },
    {
      "name": "dateRange"
    }
  ],
  "metricHeaders": [
    {
      "name": "sessionConversionRate",
      "type": "TYPE_FLOAT"
    }
  ],
  "rows": [
    {
      "dimensionValues": [
        {
          "value": "Organic Social"
        },
        {
          "value": "date_range_0"
        }
      ],
      "metricValues": [
        {
          "value": "1"
        }
      ]
    },
    {
      "dimensionValues": [
        {
          "value": "Organic Social"
        },
        {
          "value": "date_range_1"
        }
      ],
      "metricValues": [
        {
          "value": "1"
        }
      ]
    }
  ],
  "totals": [
    {
      "dimensionValues": [
        {
          "value": "RESERVED_TOTAL"
        },
        {
          "value": "date_range_0"
        }
      ],
      "metricValues": [
        {
          "value": "0.98451566438602811"
        }
      ]
    },
    {
      "dimensionValues": [
        {
          "value": "RESERVED_TOTAL"
        },
        {
          "value": "date_range_1"
        }
      ],
      "metricValues": [
        {
          "value": "0.9842903575297941"
        }
      ]
    }
  ],
  "maximums": [
    {
      "dimensionValues": [
        {
          "value": "RESERVED_MAX"
        },
        {
          "value": "date_range_0"
        }
      ],
      "metricValues": [
        {
          "value": "1"
        }
      ]
    },
    {
      "dimensionValues": [
        {
          "value": "RESERVED_MAX"
        },
        {
          "value": "date_range_1"
        }
      ],
      "metricValues": [
        {
          "value": "1"
        }
      ]
    }
  ],
  "minimums": [
    {
      "dimensionValues": [
        {
          "value": "RESERVED_MIN"
        },
        {
          "value": "date_range_0"
        }
      ],
      "metricValues": [
        {
          "value": "0.3625"
        }
      ]
    },
    {
      "dimensionValues": [
        {
          "value": "RESERVED_MIN"
        },
        {
          "value": "date_range_1"
        }
      ],
      "metricValues": [
        {
          "value": "0.076923076923076927"
        }
      ]
    }
  ],
  "rowCount": 6,
  "metadata": {
    "currencyCode": "USD",
    "timeZone": "America/Los_Angeles"
  },
  "kind": "analyticsData#runReport"
}
Previous 28 days, no limit

Request:

  {
  "dateRanges": [
    {
      "endDate": "2023-07-09",
      "startDate": "2023-06-12"
    },
    {
      "endDate": "2023-06-11",
      "startDate": "2023-05-15"
    }
  ],
  "dimensions": [
    {
      "name": "sessionDefaultChannelGroup"
    }
  ],
  "keepEmptyRows": true,
  "metricAggregations": [
    "TOTAL",
    "MINIMUM",
    "MAXIMUM"
  ],
  "metrics": [
    {
      "name": "sessionConversionRate"
    }
  ],
  "property": "properties/285794360"
}

Response:

{
  "dimensionHeaders": [
    {
      "name": "sessionDefaultChannelGroup"
    },
    {
      "name": "dateRange"
    }
  ],
  "metricHeaders": [
    {
      "name": "sessionConversionRate",
      "type": "TYPE_FLOAT"
    }
  ],
  "rows": [
    {
      "dimensionValues": [
        {
          "value": "Organic Search"
        },
        {
          "value": "date_range_1"
        }
      ],
      "metricValues": [
        {
          "value": "1"
        }
      ]
    },
    {
      "dimensionValues": [
        {
          "value": "Organic Social"
        },
        {
          "value": "date_range_0"
        }
      ],
      "metricValues": [
        {
          "value": "1"
        }
      ]
    },
    {
      "dimensionValues": [
        {
          "value": "Organic Social"
        },
        {
          "value": "date_range_1"
        }
      ],
      "metricValues": [
        {
          "value": "1"
        }
      ]
    },
    {
      "dimensionValues": [
        {
          "value": "Organic Video"
        },
        {
          "value": "date_range_0"
        }
      ],
      "metricValues": [
        {
          "value": "1"
        }
      ]
    },
    {
      "dimensionValues": [
        {
          "value": "Organic Video"
        },
        {
          "value": "date_range_1"
        }
      ],
      "metricValues": [
        {
          "value": "1"
        }
      ]
    },
    {
      "dimensionValues": [
        {
          "value": "Referral"
        },
        {
          "value": "date_range_0"
        }
      ],
      "metricValues": [
        {
          "value": "1"
        }
      ]
    },
    {
      "dimensionValues": [
        {
          "value": "Referral"
        },
        {
          "value": "date_range_1"
        }
      ],
      "metricValues": [
        {
          "value": "1"
        }
      ]
    },
    {
      "dimensionValues": [
        {
          "value": "Organic Search"
        },
        {
          "value": "date_range_0"
        }
      ],
      "metricValues": [
        {
          "value": "0.99953639313861842"
        }
      ]
    },
    {
      "dimensionValues": [
        {
          "value": "Direct"
        },
        {
          "value": "date_range_0"
        }
      ],
      "metricValues": [
        {
          "value": "0.9981308411214953"
        }
      ]
    },
    {
      "dimensionValues": [
        {
          "value": "Direct"
        },
        {
          "value": "date_range_1"
        }
      ],
      "metricValues": [
        {
          "value": "0.98655913978494625"
        }
      ]
    },
    {
      "dimensionValues": [
        {
          "value": "Unassigned"
        },
        {
          "value": "date_range_0"
        }
      ],
      "metricValues": [
        {
          "value": "0.3625"
        }
      ]
    },
    {
      "dimensionValues": [
        {
          "value": "Unassigned"
        },
        {
          "value": "date_range_1"
        }
      ],
      "metricValues": [
        {
          "value": "0.076923076923076927"
        }
      ]
    }
  ],
  "totals": [
    {
      "dimensionValues": [
        {
          "value": "RESERVED_TOTAL"
        },
        {
          "value": "date_range_0"
        }
      ],
      "metricValues": [
        {
          "value": "0.98451566438602811"
        }
      ]
    },
    {
      "dimensionValues": [
        {
          "value": "RESERVED_TOTAL"
        },
        {
          "value": "date_range_1"
        }
      ],
      "metricValues": [
        {
          "value": "0.9842903575297941"
        }
      ]
    }
  ],
  "maximums": [
    {
      "dimensionValues": [
        {
          "value": "RESERVED_MAX"
        },
        {
          "value": "date_range_0"
        }
      ],
      "metricValues": [
        {
          "value": "1"
        }
      ]
    },
    {
      "dimensionValues": [
        {
          "value": "RESERVED_MAX"
        },
        {
          "value": "date_range_1"
        }
      ],
      "metricValues": [
        {
          "value": "1"
        }
      ]
    }
  ],
  "minimums": [
    {
      "dimensionValues": [
        {
          "value": "RESERVED_MIN"
        },
        {
          "value": "date_range_0"
        }
      ],
      "metricValues": [
        {
          "value": "0.3625"
        }
      ]
    },
    {
      "dimensionValues": [
        {
          "value": "RESERVED_MIN"
        },
        {
          "value": "date_range_1"
        }
      ],
      "metricValues": [
        {
          "value": "0.076923076923076927"
        }
      ]
    }
  ],
  "rowCount": 6,
  "metadata": {
    "currencyCode": "USD",
    "timeZone": "America/Los_Angeles"
  },
  "kind": "analyticsData#runReport"
}
Previous 90 days, limit 1

Request:

  {
  "dateRanges": [
    {
      "endDate": "2023-07-09",
      "startDate": "2023-04-11"
    },
    {
      "endDate": "2023-04-10",
      "startDate": "2023-01-11"
    }
  ],
  "dimensions": [
    {
      "name": "sessionDefaultChannelGroup"
    }
  ],
  "keepEmptyRows": true,
  "limit": 1,
  "metricAggregations": [
    "TOTAL",
    "MINIMUM",
    "MAXIMUM"
  ],
  "metrics": [
    {
      "name": "sessionConversionRate"
    }
  ],
  "property": "properties/285794360"
}

Response:

{
  "dimensionHeaders": [
    {
      "name": "sessionDefaultChannelGroup"
    },
    {
      "name": "dateRange"
    }
  ],
  "metricHeaders": [
    {
      "name": "sessionConversionRate",
      "type": "TYPE_FLOAT"
    }
  ],
  "rows": [
    {
      "dimensionValues": [
        {
          "value": "Direct"
        },
        {
          "value": "date_range_0"
        }
      ],
      "metricValues": [
        {
          "value": "0.99552572706935127"
        }
      ]
    },
    {
      "dimensionValues": [
        {
          "value": "Direct"
        },
        {
          "value": "date_range_1"
        }
      ],
      "metricValues": [
        {
          "value": "0.084192439862542962"
        }
      ]
    }
  ],
  "totals": [
    {
      "dimensionValues": [
        {
          "value": "RESERVED_TOTAL"
        },
        {
          "value": "date_range_0"
        }
      ],
      "metricValues": [
        {
          "value": "0.98747865680136593"
        }
      ]
    },
    {
      "dimensionValues": [
        {
          "value": "RESERVED_TOTAL"
        },
        {
          "value": "date_range_1"
        }
      ],
      "metricValues": [
        {
          "value": "0.060317460317460318"
        }
      ]
    }
  ],
  "maximums": [
    {
      "dimensionValues": [
        {
          "value": "RESERVED_MAX"
        },
        {
          "value": "date_range_0"
        }
      ],
      "metricValues": [
        {
          "value": "1"
        }
      ]
    },
    {
      "dimensionValues": [
        {
          "value": "RESERVED_MAX"
        },
        {
          "value": "date_range_1"
        }
      ],
      "metricValues": [
        {
          "value": "0.084192439862542962"
        }
      ]
    }
  ],
  "minimums": [
    {
      "dimensionValues": [
        {
          "value": "RESERVED_MIN"
        },
        {
          "value": "date_range_0"
        }
      ],
      "metricValues": [
        {
          "value": "0.27272727272727271"
        }
      ]
    },
    {
      "dimensionValues": [
        {
          "value": "RESERVED_MIN"
        },
        {
          "value": "date_range_1"
        }
      ],
      "metricValues": [
        {
          "value": "0"
        }
      ]
    }
  ],
  "rowCount": 6,
  "metadata": {
    "currencyCode": "USD",
    "timeZone": "America/Los_Angeles"
  },
  "kind": "analyticsData#runReport"
}
Previous 90 days, no limit

Including this one for the sake of completion...

Request:

  {
  "dateRanges": [
    {
      "endDate": "2023-07-09",
      "startDate": "2023-04-11"
    },
    {
      "endDate": "2023-04-10",
      "startDate": "2023-01-11"
    }
  ],
  "dimensions": [
    {
      "name": "sessionDefaultChannelGroup"
    }
  ],
  "keepEmptyRows": true,
  "metricAggregations": [
    "TOTAL",
    "MINIMUM",
    "MAXIMUM"
  ],
  "metrics": [
    {
      "name": "sessionConversionRate"
    }
  ],
  "property": "properties/285794360"
}

Response:

{
  "dimensionHeaders": [
    {
      "name": "sessionDefaultChannelGroup"
    },
    {
      "name": "dateRange"
    }
  ],
  "metricHeaders": [
    {
      "name": "sessionConversionRate",
      "type": "TYPE_FLOAT"
    }
  ],
  "rows": [
    {
      "dimensionValues": [
        {
          "value": "Organic Social"
        },
        {
          "value": "date_range_0"
        }
      ],
      "metricValues": [
        {
          "value": "1"
        }
      ]
    },
    {
      "dimensionValues": [
        {
          "value": "Organic Video"
        },
        {
          "value": "date_range_0"
        }
      ],
      "metricValues": [
        {
          "value": "1"
        }
      ]
    },
    {
      "dimensionValues": [
        {
          "value": "Referral"
        },
        {
          "value": "date_range_0"
        }
      ],
      "metricValues": [
        {
          "value": "1"
        }
      ]
    },
    {
      "dimensionValues": [
        {
          "value": "Organic Search"
        },
        {
          "value": "date_range_0"
        }
      ],
      "metricValues": [
        {
          "value": "0.99981634527089069"
        }
      ]
    },
    {
      "dimensionValues": [
        {
          "value": "Direct"
        },
        {
          "value": "date_range_0"
        }
      ],
      "metricValues": [
        {
          "value": "0.99552572706935127"
        }
      ]
    },
    {
      "dimensionValues": [
        {
          "value": "Unassigned"
        },
        {
          "value": "date_range_0"
        }
      ],
      "metricValues": [
        {
          "value": "0.27272727272727271"
        }
      ]
    },
    {
      "dimensionValues": [
        {
          "value": "Direct"
        },
        {
          "value": "date_range_1"
        }
      ],
      "metricValues": [
        {
          "value": "0.084192439862542962"
        }
      ]
    },
    {
      "dimensionValues": [
        {
          "value": "Organic Search"
        },
        {
          "value": "date_range_1"
        }
      ],
      "metricValues": [
        {
          "value": "0.056869471023650475"
        }
      ]
    },
    {
      "dimensionValues": [
        {
          "value": "Unassigned"
        },
        {
          "value": "date_range_1"
        }
      ],
      "metricValues": [
        {
          "value": "0.0375"
        }
      ]
    },
    {
      "dimensionValues": [
        {
          "value": "Referral"
        },
        {
          "value": "date_range_1"
        }
      ],
      "metricValues": [
        {
          "value": "0.010526315789473684"
        }
      ]
    },
    {
      "dimensionValues": [
        {
          "value": "Organic Social"
        },
        {
          "value": "date_range_1"
        }
      ],
      "metricValues": [
        {
          "value": "0"
        }
      ]
    },
    {
      "dimensionValues": [
        {
          "value": "Organic Video"
        },
        {
          "value": "date_range_1"
        }
      ],
      "metricValues": [
        {
          "value": "0"
        }
      ]
    }
  ],
  "totals": [
    {
      "dimensionValues": [
        {
          "value": "RESERVED_TOTAL"
        },
        {
          "value": "date_range_0"
        }
      ],
      "metricValues": [
        {
          "value": "0.98747865680136593"
        }
      ]
    },
    {
      "dimensionValues": [
        {
          "value": "RESERVED_TOTAL"
        },
        {
          "value": "date_range_1"
        }
      ],
      "metricValues": [
        {
          "value": "0.060317460317460318"
        }
      ]
    }
  ],
  "maximums": [
    {
      "dimensionValues": [
        {
          "value": "RESERVED_MAX"
        },
        {
          "value": "date_range_0"
        }
      ],
      "metricValues": [
        {
          "value": "1"
        }
      ]
    },
    {
      "dimensionValues": [
        {
          "value": "RESERVED_MAX"
        },
        {
          "value": "date_range_1"
        }
      ],
      "metricValues": [
        {
          "value": "0.084192439862542962"
        }
      ]
    }
  ],
  "minimums": [
    {
      "dimensionValues": [
        {
          "value": "RESERVED_MIN"
        },
        {
          "value": "date_range_0"
        }
      ],
      "metricValues": [
        {
          "value": "0.27272727272727271"
        }
      ]
    },
    {
      "dimensionValues": [
        {
          "value": "RESERVED_MIN"
        },
        {
          "value": "date_range_1"
        }
      ],
      "metricValues": [
        {
          "value": "0"
        }
      ]
    }
  ],
  "rowCount": 6,
  "metadata": {
    "currencyCode": "USD",
    "timeZone": "America/Los_Angeles"
  },
  "kind": "analyticsData#runReport"
}

@aaemnnosttv
Copy link
Collaborator

Thanks @techanvil – I think this is good for now. We can follow-up with updates to the accuracy of the numbers if needed, but it doesn't need to block us here.

@aaemnnosttv aaemnnosttv merged commit ce5a6cf into develop Jul 10, 2023
@aaemnnosttv aaemnnosttv deleted the enhancement/6255-top-converting-traffic-source branch July 10, 2023 19:43
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.

2 participants