Skip to content

Commit 68daac4

Browse files
authored
Update src/connections/sources/catalog/libraries/website/javascript/cookie-validity-update.md
1 parent 7cf726b commit 68daac4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/connections/sources/catalog/libraries/website/javascript/cookie-validity-update.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,11 @@ To access or assign a value to a cookie outside of the standard Segment methods
187187
</tr>
188188
</table>
189189

190-
To retrieve a specific user trait using the analytics.js get method, you can access the trait by invoking `analytics.user().traits().firstName`. This will return the firstName trait of the user.
190+
To retrieve a specific user trait using the Analytics.js Get method, you can access the trait by invoking `analytics.user().traits().firstName`. This returns the firstName trait of the user.
191191

192-
Similarly, to retrieve a specific group trait, you can use the method `analytics.group().traits().companyName`. This will return the companyName trait of the group.
192+
To retrieve a specific group trait, you can use the method `analytics.group().traits().companyName`. This returns the companyName trait of the group.
193193

194-
When accessing specific traits stored in the browser's localStorage, you'll need to utilize the [JSON.parse()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse) method due to the fact that the stored data is typically in string format.
194+
When you access specific traits stored in the browser's localStorage, you need to utilize the [JSON.parse()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse){:target="_blank"} method because the stored data is typically in string format.
195195

196196
## Storage Priority
197197

0 commit comments

Comments
 (0)