Skip to content

Commit 8890942

Browse files
zhu-xiaoweizxkane
authored andcommitted
feat: support preset events
1 parent efd683c commit 8890942

31 files changed

+1775
-146
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
# production
77
/dist
8+
/lib
9+
/lib-esm
810

911
# misc
1012
.DS_Store
@@ -15,5 +17,6 @@ yarn-error.log
1517
.idea
1618
yarn.lock
1719
*.tsbuildinfo
20+
*.tgz
1821

1922
build

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ reported the issue. Please try to include as much information as you can. Detail
2424

2525
This is mostly the same as [GitHub's guide on creating a pull request](https://help.github.com/articles/creating-a-pull-request/).
2626

27-
First, create a _fork_ of `clickstream-js`. Clone it, and make changes to this _fork_.
27+
First, create a _fork_ of `clickstream-web`. Clone it, and make changes to this _fork_.
2828

2929
```shell
30-
git clone git@github.com:your_username/clickstream-js.git
30+
git clone git@github.com:your_username/clickstream-web.git
3131
```
3232

3333
After you have tested your feature/fix, by adding sufficient test coverage, and
@@ -42,7 +42,7 @@ etc. All links must be publicly accessible.
4242
```console
4343
feat: add new preset event for screen view.
4444

45-
Resolves: https://github.com/awslabs/clickstream-js/issues/222
45+
Resolves: https://github.com/awslabs/clickstream-web/issues/222
4646
See also: https://stackoverflow.com/a/58662077/695787
4747
```
4848

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ The SDK relies on the Amplify for JS SDK Core Library and is developed according
1010

1111
**1.Include SDK**
1212
```bash
13-
npm install @aws-soluton/clickstream-js
13+
npm install @awslabs/clickstream-web
1414
```
1515

1616
**2.Initialize the SDK**
1717
You need to configure the SDK with default information before using it. Copy your configuration code from your clickstream solution control plane, the config code will as follows:
1818

1919
```typescript
20-
import { ClickstreamAnalytics } from '@aws-soluton/clickstream-js';
20+
import { ClickstreamAnalytics } from '@awslabs/clickstream-web';
2121

2222
ClickstreamAnalytics.configure({
2323
appId: "your appId",
@@ -52,7 +52,7 @@ You can refer this [guide]("https://awslabs.github.io/clickstream-analytics-on-a
5252
Add the following code where you need to report event.
5353
5454
```typescript
55-
import { ClickstreamAnalytics } from '@aws-soluton/clickstream-js';
55+
import { ClickstreamAnalytics } from 'clickstream-web';
5656

5757
ClickstreamAnalytics.record({ name: 'albumVisit' });
5858
ClickstreamAnalytics.record({

0 commit comments

Comments
 (0)