Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Co-authored-by: Barry Pollard <barrypollard@google.com>
  • Loading branch information
philipwalton and tunetheweb committed Jul 14, 2022
1 parent bdfb20f commit be593e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -428,7 +428,7 @@ For full installation and usage instructions, see Simo's post: [Track Core Web V

When using the [attribution build](#attribution-build), you can send additional data to help you debug _why_ the metric values are they way they are.

This example sends an additional `debug_target` param to Google Analytics, corresponding to the element most associated with each metric.
This example sends an additional `debug_target` param to Google Analytics, corresponding to the element most associated with each metric. Note this example is for GA4. For Google Analytics prior to GA4 the attribution data should be set in a custom dimension rather in `debug_target` as shown above.

```js
import {onCLS, onFID, onLCP} from 'web-vitals/attribution';
Expand Down

0 comments on commit be593e2

Please sign in to comment.