[go: nahoru, domu]

Skip to content

Commit

Permalink
Use delta for value in all GA examples
Browse files Browse the repository at this point in the history
  • Loading branch information
philipwalton committed Mar 13, 2021
1 parent 3776378 commit be64be4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -349,10 +349,11 @@ function sendToGoogleAnalytics({name, delta, value, id}) {
// https://developers.google.com/analytics/devguides/collection/ga4
gtag('event', name, {
// Built-in params:
value: value,
value: delta, // Use `delta` so the value can be summed.
// Custom params:
metric_id: id, // Needed to aggregate events.
metric_delta: delta, // Optional
metric_value: value, // Optional.
metric_delta: delta, // Optional.
// Any additional params or metadata (e.g. debug information) can be
// set here as well, within the following limitations:
// https://support.google.com/analytics/answer/9267744
Expand Down

0 comments on commit be64be4

Please sign in to comment.