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

Javascriptsdk #7

Merged
merged 15 commits into from
Mar 24, 2022
Merged

Javascriptsdk #7

merged 15 commits into from
Mar 24, 2022

Conversation

caseyamp
Copy link
Contributor

No description provided.

docs/analytics/sdks/javascript-sdk.md Outdated Show resolved Hide resolved
docs/analytics/sdks/javascript-sdk.md Outdated Show resolved Hide resolved
docs/analytics/sdks/javascript-sdk.md Outdated Show resolved Hide resolved
docs/analytics/sdks/javascript-sdk.md Show resolved Hide resolved
docs/analytics/sdks/javascript-sdk.md Outdated Show resolved Hide resolved
docs/analytics/sdks/javascript-sdk.md Outdated Show resolved Hide resolved
docs/analytics/sdks/javascript-sdk.md Outdated Show resolved Hide resolved
docs/analytics/dynamic-configuration.md Outdated Show resolved Hide resolved
docs/analytics/sdks/javascript-sdk.md Outdated Show resolved Hide resolved
docs/analytics/sdks/javascript-sdk.md Show resolved Hide resolved
docs/analytics/sdks/javascript-sdk.md Outdated Show resolved Hide resolved
docs/analytics/sdks/javascript-sdk.md Outdated Show resolved Hide resolved
includes/track-revenue-properties-table.md Show resolved Hide resolved
amplitude.getInstance().logEvent('event', null, successCallback, errorCallback);
```

### `init` callbacks
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we move this around the init function?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you be more specific @yuhao900914

You can configure Amplitude by passing an object as the third argument to the init:

```js
amplitude.getInstance().init("API_KEY", null, {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we scandalize the "" and '' ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know what you mean by "Scandalize" @yuhao900914

@caseyamp caseyamp merged commit 60dfa27 into main Mar 24, 2022
@amplitude-dev-docs amplitude-dev-docs deleted the javascriptsdk branch March 24, 2022 17:37
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 this pull request may close these issues.

3 participants