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/connections/sources/catalog/libraries/website/javascript/index.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,7 +76,7 @@ Field | | Type | Description
76
76
`userId` | optional | String | The database ID for the user. If you don't know who the user is yet, you can omit the `userId` and just record `traits`. You can read more about identities in the [identify reference](/docs/connections/spec/identify).
77
77
`traits` | optional | Object | A dictionary of traits you know about the user, like `email` or `name`. You can read more about traits in the [identify reference](/docs/connections/spec/identify/).
78
78
`options` | optional | Object | A dictionary of options. For example, [enable or disable specific destinations](#managing-data-flow-with-the-integrations-object) for the call. _Note: If you do not pass a `traits` object, pass an empty object (as an '{}') before `options`._
79
-
`callback` | optional | Function | A function executed after a short timeout (300 ms), giving the browser time to make outbound requests first.
79
+
`callback` | optional | Function | A function executed after a timeout of 300 ms, giving the browser time to make outbound requests first.
80
80
81
81
By default, Analytics.js caches traits in the browser's `localStorage` and attaches them to each Identify call.
82
82
@@ -126,7 +126,7 @@ Field | | Type | Description
126
126
`event`| | String | The name of the event you're tracking. You can read more about the [track method](/docs/connections/spec/track) and recommended event names.
127
127
`properties` | optional | Object | A dictionary of [properties](/docs/connections/spec/track#properties) for the event. If the event was `'Added to Cart'`, it might have properties like `price` and `productType`.
128
128
`options` | optional | Object | A dictionary of options. For example, [enable or disable specific destinations](#managing-data-flow-with-the-integrations-object) for the call. _Note: If you do not pass a `properties` object, pass an empty object (like '{}') before `options`_.
129
-
`callback` | optional | Function | A function that runs after a short timeout (300 ms), giving the browser time to make outbound requests first.
129
+
`callback` | optional | Function | A function that runs after a timeout of 300 ms, giving the browser time to make outbound requests first.
130
130
131
131
The only required argument in Analytics.js is an _event name string_. You can read more about [how Segment recommends you name events](/docs/connections/spec/track#event).
132
132
@@ -147,7 +147,7 @@ The only required argument on Track calls in Analytics.js is an `event` name str
147
147
#### Track Link
148
148
149
149
`trackLink` is a helper method that attaches the `track` call as a handler to a link.
150
-
With `trackLink`, Analytics.js inserts a short timeout (300 ms) to give the `track` call more time. This is useful when a page would redirect before the `track` method could complete all requests.
150
+
With `trackLink`, Analytics.js inserts a timeout of 300 ms to give the `track` call more time. This is useful when a page would redirect before the `track` method could complete all requests.
`trackForm` is a helper method that binds a `track` call to a form submission.
177
-
The `trackForm` method inserts a short timeout (300 ms) to give the `track` call more time to complete. This is useful to prevent a page from redirecting before the `track` method could complete all requests.
177
+
The `trackForm` method inserts a timeout of 300 ms to give the `track` call more time to complete. This is useful to prevent a page from redirecting before the `track` method could complete all requests.
178
178
179
179
The `trackForm` method follows the format below.
180
180
@@ -222,7 +222,7 @@ Field | | Type | Description
222
222
`name` | optional | String | The name of the page.
223
223
`properties` | optional | Object | A dictionary of properties of the page. Note: Analytics.js collects `url`, `title`, `referrer` and `path` are automatically. This defaults to a `canonical url`, if available, and falls back to `document.location.href`.
224
224
`options` | optional | Object | A dictionary of options. For example, [enable or disable specific destinations](#managing-data-flow-with-the-integrations-object) for the call. _Note: If you do not pass a `properties` object, pass an empty object (like '{}') before `options`_.
225
-
`callback` | optional | Function | A function that runs after a short timeout (300 ms), giving the browser time to make outbound requests first.
225
+
`callback` | optional | Function | A function that runs after a timeout of 300 ms, giving the browser time to make outbound requests first.
226
226
227
227
#### Default Page Properties
228
228
@@ -281,7 +281,7 @@ Field | | Type | Description
281
281
`groupId` | | String | The Group ID to associate with the current user.
282
282
`traits` | optional | Object | A dictionary of [traits](/docs/connections/spec/group#traits) for the group. Example traits for a group include `address`, `website`, and `employees`.
283
283
`options` | optional | Object | A dictionary of options. For example, [enable or disable specific destinations](#managing-data-flow-with-the-integrations-object) for the call. _Note: If you do not pass a `properties` object, pass an empty object (like '{}') before `options`_.
284
-
`callback` | optional | Function | A function that runs after a short timeout (300 ms), giving the browser time to make outbound requests first.
284
+
`callback` | optional | Function | A function that runs after a timeout of 300 ms, giving the browser time to make outbound requests first.
285
285
286
286
Example `group` call:
287
287
@@ -317,7 +317,7 @@ Field | | Type | Description
317
317
`userId` | | String | The new user ID you want to associate with the user.
318
318
`previousId` | optional | String | The previous ID that the user was recognized by. This defaults to the currently identified user's ID.
319
319
`options` | optional | Object | A dictionary of options. For example, [enable or disable specific destinations](#managing-data-flow-with-the-integrations-object) for the call.
320
-
`callback` | optional | Function | A function that is executed after a short timeout (300 ms), giving the browser time to make outbound requests first.
320
+
`callback` | optional | Function | A function that is executed after a timeout of 300 ms, giving the browser time to make outbound requests first.
321
321
322
322
For more details about Alias, including the **`alias` call payload**, check out the [Segment Spec](/docs/connections/spec/alias/).
0 commit comments