Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-tey committed Oct 1, 2024
1 parent 73ad680 commit add17a9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions sdks/client-side/installation-guides/react.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ You can pass the following props to the `<Analytics />` component to customize t
The base URL for the Dub API. This is useful for setting up reverse proxies to
avoid adblockers.
</ParamField>

<ParamField body="apiKey" type="string">
The publishable API key to use for client-side click tracking. Get your
publishable API key from your [Dub workspace's token settings
Expand Down Expand Up @@ -63,6 +64,17 @@ You can pass the following props to the `<Analytics />` component to customize t
</Expandable>
</ParamField>

<ParamField body="queryParam" type="string" default="ref">
The query parameter to listen to for client-side click-tracking (e.g.
`?ref=abc123`).
</ParamField>

<ParamField body="scriptProps" type="HTMLScriptElement Object">
Custom properties to pass to the script tag. Refer to
[MDN](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement) for
all available options.
</ParamField>

## Examples

We also have some advanced examples on GitHub:
Expand Down

0 comments on commit add17a9

Please sign in to comment.