Skip to content

Fixed table that wasn't rendering properly #5653

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/_sass/components/_markdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,12 @@
}
}

table.horizontal-scroll {
display: block;
overflow-x: auto;
white-space: nowrap;
}

table.settings {
width: 100%;
table-layout: fixed;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,56 @@ When `disableClientPersistence` is set to `true`, Analytics.js won't store any p

To access or assign a value to a cookie outside of the standard Segment methods (track/identify/page/group), you can use the following methods. To access the cookie's value, pass an empty `()` at the end of the method. To assign the value, include the string value inside those parenthesis, for example, `('123-abc')`. To clear or remove the value for a specific field, pass in an empty value of its type. For example, for string `('')`, or for object `({})`.

| Field | Cookie Name | Analytics.js Method | Local Storage Method | Set Example | Clear Example |
| ----- | ----------- | ------------------- | -------------------- | --------------- | ------------- |
| `userId` | `ajs_user_id` | `analytics.user().id();` | `window.localStorage.ajs_user_id` | `analytics.user().id('123-abc');` | `analytics.user().id('');` |
| `anonymousId` | `ajs_anonymous_id` | `analytics.user().anonymousId();` | `window.localStorage.ajs_anonymous_id` | `analytics.user().anonymousId('333-abc-456-dfg');` | `analytics.user().anonymousId('');` |
| `user traits` | `ajs_user_traits` | `analytics.user().traits();` | `window.localStorage.ajs_user_traits` | `analytics.user().traits({firstName:'Jane'});` | `analytics.user().traits({});` |
| `groupId` | `ajs_group_id` | `analytics.group().id();` | `window.localStorage.ajs_group_id` | `analytics.group().id('777-qwe-098');` | `analytics.group().id('');` |
| `group traits` | `ajs_group_properties` | `analytics.group().traits()` | `window.localStorage.ajs_group_properties` | `analytics.group().traits({name:'Segment'})` | `analytics.group().traits({})` |
<table class="horizontal-scroll">
<tr style="background-color: #fafbff; font-size: 10px;">
<th>FIELD</th>
<th>COOKIE NAME</th>
<th>ANALYTICS.JS METHOD</th>
<th>LOCAL STORAGE METHOD</th>
<th>SET EXAMPLE</th>
<th>CLEAR EXAMPLE</th>
</tr>
<tr>
<td>`userId`</td>
<td>`ajs_user_id`</td>
<td>`analytics.user().id();`</td>
<td>`window.localStorage.ajs_user_id`</td>
<td>`analytics.user().id('123-abc');`</td>
<td>`analytics.user().id('');` </td>
</tr>
<tr>
<td>`anonymousId`</td>
<td>`ajs_anonymous_id`</td>
<td>`analytics.user().anonymousId();`</td>
<td>`window.localStorage.ajs_anonymous_id`</td>
<td>`analytics.user().anonymousId('333-abc-456-dfg');`</td>
<td>`analytics.user().anonymousId('');`</td>
</tr>
<tr>
<td>`user traits`</td>
<td>`ajs_user_traits`</td>
<td>`analytics.user().traits();`</td>
<td>`window.localStorage.ajs_user_traits`</td>
<td>`analytics.user().traits({firstName:'Jane'});`</td>
<td>`analytics.user().traits({});`</td>
</tr>
<tr>
<td>`groupId`</td>
<td>`ajs_group_id`</td>
<td>`analytics.group().id();`</td>
<td>`window.localStorage.ajs_group_id`</td>
<td>`analytics.group().id('777-qwe-098');`</td>
<td>`analytics.group().id('');`</td>
</tr>
<tr>
<td>`group traits`</td>
<td>`ajs_group_properties`</td>
<td>`analytics.group().traits()`</td>
<td>`window.localStorage.ajs_group_properties`</td>
<td>`analytics.group().traits({name:'Segment'})`</td>
<td>`analytics.group().traits({})`</td>
</tr>
</table>

## Storage Priority

Expand Down