Skip to main content

Advanced targeting with real-time behavioral data

Claspo offers advanced targeting methods that let you trigger widgets based on user behavior, site data, or stored values

Updated this week

Note

Claspo does not collect user data on its own. All advanced targeting methods rely entirely on the data you or your developers provide through your site — via cookies, local storage, JavaScript variables, or Data Layer.

When timing and context matter, showing the same widget to everyone just won’t cut it. Claspo’s advanced targeting options let you tailor messages based on what your visitors do, know, or carry with them — like referral info, purchase intent, etc.

These methods are especially useful for:

  • Showing widgets based on user actions (like watching a video or adding to cart).

  • Triggering based on known user data (like loyalty status or quiz completion).

  • Avoiding repeat promotions for users who already converted.

Let’s break down each method briefly so you can choose what fits best.

1. Data Layer events

If your site uses a Data Layer — or you're planning to set one up — you can trigger widgets based on specific actions or variables passed through it. This includes things like completed purchases, sign-ups, or other interactions pushed via Google Tag Manager.

2. Local Storage key

Local Storage is browser-based and retains data even after page reloads. If your website already stores useful information there — or if you plan to do so — you can use that data in Claspo to control widget visibility.

This could include things like interest categories, user actions, or answers from custom quizzes. Just note: Claspo doesn’t create this data — it simply lets you use what’s already there when the widget loads.

3. Cookie values

If you store any useful data in cookies — like referral info, preferences, or user actions — you can use it to control when and how widgets appear. Claspo lets you create display rules based on cookie values, making it easier to tailor experiences to what’s already known about the visitor.

4. JavaScript variables

With the JS API you can send context from your site directly to Claspo. JavaScript variables allow you to pass information explicitly about a specific visitor.

This makes the method especially powerful for personalization.

You can pass in details like whether a basket is empty or full, whether the visitor is logged in or browsing as a guest, or what kind of customer they are — for example, a first-time buyer, a returning customer, or a high-value customer.

The data you pass in depends on your marketing goals, but the value of JS variables is that they give you access to context that’s not available anywhere else.

Did this answer your question?