---
title: Website data
slug: website-data
description: Learn how to leverage website data for targeting and personalization during a visitor's session on your site. This document covers various methods, such as `ply.setData` and Parsers, for setting important data like cart size/value, site category, and arti
docTags: 
createdAt: 2023-03-07T14:11:10.000Z
---

Website data is an ephemeral store that can hold data you might need to use for targetting and personalization for the duration of a visitor's session. Examples of such data can be:

1. Cart size/value
2. Site category
3. Article name
4. Any other data which relates to the site rather than to a customer

Website data can be set in several ways:

1. Using the `ply.setData` [client SDK](docId\:g9CXYw_quWfrTCHrMhAl8) method
2. By using the [data parser engine](docId\:jnnibmarMLnCnTvhER4Df)
3. By setting the `window.plyData` object

How to set the website data using the `plyData` variable:

```javascript
window.plyData = {
    cartSize: 10,
    cartValue: 150
}
```

