Skip to content

Commit

Permalink
fix: review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
rpapani committed Sep 20, 2024
1 parent 2d232aa commit fb070a8
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ function convertToOpportunity(traffic) {
screenshot: '',
trackedPageKPIName: 'Bounce Rate',
trackedPageKPIValue: bounceRate,
trackedKPISiteAverage: '',
pageViews: total,
samples: total, // todo: get the actual number of samples
metrics: [{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ function convertToOpportunity(traffic) {
screenshot: '',
trackedPageKPIName: 'Click Through Rate',
trackedPageKPIValue: ctr,
trackedKPISiteAverage: siteAvgCTR,
pageViews: total,
samples: total, // todo: get the actual number of samples
siteAverageCTR: siteAvgCTR,
metrics: [{
type: 'traffic',
vendor: '*',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ function getRageClickOpportunities(rageClickInstances) {
screenshot: '',
trackedPageKPIName: OPPORTUNITY_DESCRIPTION,
trackedPageKPIValue: '',
trackedKPISiteAverage: '',
pageViews: rageClickInstances[url].pageViews,
samples: rageClickInstances[url].samples,
metrics: [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"screenshot": "",
"trackedPageKPIName": "Bounce Rate",
"trackedPageKPIValue": 0.6507592190889371,
"trackedKPISiteAverage": "",
"pageViews": 46100,
"samples": 46100,
"metrics": [
Expand All @@ -25,6 +26,7 @@
"screenshot": "",
"trackedPageKPIName": "Bounce Rate",
"trackedPageKPIValue": 0.8723897911832946,
"trackedKPISiteAverage": "",
"pageViews": 43100,
"samples": 43100,
"metrics": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"trackedPageKPIValue": 0.14316702819956617,
"pageViews": 46100,
"samples": 46100,
"siteAverageCTR": 0.40828402366863903,
"trackedKPISiteAverage": 0.40828402366863903,
"metrics": [
{
"type": "traffic",
Expand Down

0 comments on commit fb070a8

Please sign in to comment.