Skip to content
This repository has been archived by the owner on Sep 22, 2023. It is now read-only.

[Improvement]: Typo in Initializing SDK example code #138

Closed
FQ400 opened this issue Jul 7, 2022 · 0 comments · Fixed by #139
Closed

[Improvement]: Typo in Initializing SDK example code #138

FQ400 opened this issue Jul 7, 2022 · 0 comments · Fixed by #139
Assignees

Comments

@FQ400
Copy link

FQ400 commented Jul 7, 2022

Contact Details

clamm@dev-coach.me

What can we improve?

Typo in the comment of this page: https://www.docs.developers.amplitude.com/data/sdks/typescript-browser/?h=typescript+sdk#initializing-sdk

It should be Option 1, Option 2 and Option 3:

import { init } from '@amplitude/analytics-browser';

// Option 1, initialize with API_KEY only
init(API_KEY);

// Option 2, initialize including user ID if it's already known
init(API_KEY, 'user@amplitude.com');

// Option 2, initialize including configuration
init(API_KEY, 'user@amplitude.com', {
  disableCookies: true, // Disables the use of browser cookies
});

Which page needs an update?

https://www.docs.developers.amplitude.com/data/sdks/typescript-browser/?h=typescript+sdk#initializing-sdk

caseyamp added a commit that referenced this issue Jul 11, 2022
@caseyamp caseyamp mentioned this issue Jul 11, 2022
5 tasks
caseyamp added a commit that referenced this issue Jul 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants