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/querystring.md
+6-7Lines changed: 6 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -15,21 +15,20 @@ Here are the *optional* query parameters to use:
15
15
|`ajs_prop_<property>`| A property to pass to the Track call. | This won't implicitly trigger an event and is dependent on you also passing `ajs_event`. This property is included in the resulting Track call. |
16
16
|`ajs_trait_<trait>`| A trait to pass to the Identify call. | This won't implicitly trigger any call and is dependent on you also passing `ajs_uid`. This trait is included in the resulting Identify call. |
17
17
18
-
For example, this URL:
18
+
For example, this URL would create the following events on the page:
Each trigger parameter is optional. You can pass up to **one of each trigger parameter** as shown in the example above.
31
+
33
32
34
33
35
34
## How can I control query string processing?
@@ -47,13 +46,13 @@ You can also keep query string processing on, but enforce validation rules. For
47
46
```js
48
47
analytics.load('<WRITE_KEY>', {
49
48
useQueryString: {
50
-
// set a pattern for anonymous id
49
+
// set a pattern for anonymousId
51
50
aid:/([A-Z]{10})/,
52
-
// set a pattern for user id
51
+
// set a pattern for userId
53
52
uid:/([A-Z]{6})/
54
53
}
55
54
})
56
55
```
57
56
58
57
> info ""
59
-
> The `useQueryString` option is **only** available when you load analytics.js through the [NPM package](https://www.npmjs.com/package/@segment/analytics-next){:target="_blank"}.
58
+
> The `useQueryString` option is **only** available when you load Analytics.js through the [npm package](https://www.npmjs.com/package/@segment/analytics-next){:target="_blank"}.
0 commit comments