You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/fragments/lib-v1/analytics/js/personalize.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ To record event data, you need the following:
7
7
8
8
For more information, see [Record Events](https://docs.aws.amazon.com/personalize/latest/dg/recording-events.html).
9
9
10
-
###Installation and Configuration
10
+
## Installation and Configuration
11
11
12
12
Register the *AmazonPersonalizeProvider* with the Analytics category:
13
13
You need the tracking ID of your event tracker. For more information, see [Get a Tracking ID](https://docs.aws.amazon.com/personalize/latest/dg/recording-events.html#event-get-tracker).
@@ -38,7 +38,7 @@ Analytics.configure({
38
38
}
39
39
});
40
40
```
41
-
###Working with the API
41
+
## Working with the API
42
42
43
43
You can use the `Identify` event type to track a user identity. This lets you connect a user to their actions and record traits about them. To identify a user, specify a unique identifier for the userId property.
44
44
Consider the following user interactions when choosing when and how often to call record with the Identify eventType:
Copy file name to clipboardExpand all lines: src/fragments/lib-v1/graphqlapi/js/delta-sync.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,17 +33,17 @@ subscription.unsubscribe();
33
33
-`query`: A `DocumentNode` for the base data (e.g. as returned by [`gql`](https://github.com/apollographql/graphql-tag#gql))
34
34
-`variables`[optional]: An object with the query variables, if any.
35
35
-`baseRefreshIntervalInSeconds`[optional]: Number of seconds after which the base query will be run again. Default value: `86400` (24 hrs)
36
-
-`update`[optional]: A function to update the cache, see: [Apollo's `update` function](https://www.apollographql.com/docs/react/api/react-apollo.html#graphql-mutation-options-update)
36
+
-`update`[optional]: A function to update the cache, see: [Apollo's `update` function](https://www.apollographql.com/docs/react/data/mutations#the-update-function)
37
37
38
38
**subscriptionQuery**
39
39
-`query`: A `DocumentNode` for the subscription (e.g. as returned by [`gql`](https://github.com/apollographql/graphql-tag#gql))
40
40
-`variables`[optional]: An object with the query variables, if any.
41
-
-`update`[optional]: A function to update the cache, see: [Apollo's `update` function](https://www.apollographql.com/docs/react/api/react-apollo.html#graphql-mutation-options-update)
41
+
-`update`[optional]: A function to update the cache, see: [Apollo's `update` function](https://www.apollographql.com/docs/react/data/mutations#the-update-function)
42
42
43
43
**deltaQuery**
44
44
-`query`: A `DocumentNode` for the deltas (e.g. as returned by [`gql`](https://github.com/apollographql/graphql-tag#gql))
45
45
-`variables`[optional]: An object with the query variables, if any.
46
-
-`update`[optional]: A function to update the cache, see: [Apollo's `update` function](https://www.apollographql.com/docs/react/api/react-apollo.html#graphql-mutation-options-update)
46
+
-`update`[optional]: A function to update the cache, see: [Apollo's `update` function](https://www.apollographql.com/docs/react/data/mutations#the-update-function)
Amplify UI provides a Higher-Order Component for ease of integrating the In-App Messaging UI with your application. Simply wrap your application root component in, for example, `App.js`.
0 commit comments