Skip to content

Commit

Permalink
chore: adjust readme
Browse files Browse the repository at this point in the history
  • Loading branch information
reapziq authored May 2, 2023
1 parent 481f006 commit 287a355
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ export default function MyApp({ Component, pageProps }) {

#### `YandexMetricaProvider` Props

| Name | Description |
| ---------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `tagID` | Yandex.Metrica tag ID. |
| `strategy` | Script loading strategy. Defaults to `afterInteractive`. See [next/script](https://nextjs.org/docs/api-reference/next/script#strategy) for more details. |
| `initParameters` | Yandex.Metrica tag [initialization parameters](https://yandex.com/support/metrica/code/counter-initialize.html). |
| Name | Description |
| ---------------- | --------------------------------------------------------------------------------------------------------------------------- |
| `tagID` | Yandex.Metrica tag ID. |
| `strategy` | [next/script](https://nextjs.org/docs/api-reference/next/script#strategy) loading strategy. Defaults to `afterInteractive`. |
| `initParameters` | Yandex.Metrica tag [initialization parameters](https://yandex.com/support/metrica/code/counter-initialize.html). |

The Yandex.Metrica tag ID is read from the `tagID` property and the `NEXT_PUBLIC_YANDEX_METRICA_ID` environment variable. If both are set, the provider property takes priority.
Yandex.Metrica tag ID is read from the `tagID` property and the `NEXT_PUBLIC_YANDEX_METRICA_ID` environment variable. If both are set, the provider property takes priority.

### Send events

Expand Down

0 comments on commit 287a355

Please sign in to comment.