Register Now: Use Visual Dev + AI to Ship 10x Faster on July 24

Announcing Visual Copilot - Figma to production in half the time

Builder.io logo
Contact Sales
Platform
Developers
Contact Sales

Blog

Home

Resources

Blog

Forum

Github

Login

Signup

×

Visual CMS

Drag-and-drop visual editor and headless CMS for any tech stack

Theme Studio for Shopify

Build and optimize your Shopify-hosted storefront, no coding required

Resources

Blog

Get StartedLogin

growth plans

Creating your own custom targeting attributes can help you target specific segments of your site visitors. While you can create a wide variety of attributes, this document features a list of common attributes and shows how to create and use them.

The video below shows how to create a custom targeting attribute and use that attribute for targeting in a content entry.

  1. In Account Settings, click on the pencil next to Custom Targeting Attributes.
  2. Click the + New Target Attribute button.
  3. Name your attribute and choose a Type.
  4. Click the Save button.
  1. Open a content entry.
  2. Click the targeting icon at the top of the UI.
  3. Select your custom targeting attribute under Where and select the value.

When you create custom targeting attributes, you can specify the attribute you need as well as specify the type. The following list includes some common examples.

In Settings, create isLoggedIn with a type of Boolean:

In the content entry's Targeting dialogue, choose Is logged in and set the toggle on for true or off for false:

In your code, use:

In Settings, create isNewVisitor with a type of Boolean:

In the content entry's Targeting dialogue, choose Is new visitor and set the toggle on for true or off for false:

In your code, use:

In Settings, create audience with a type of String, toggle on the enum switch, and add Enum Values:

In the content entry's Targeting dialogue, choose Audience and select the value(s):

In your code, use:

In Settings, create locale with a type of String, toggle on the enum switch, and add Enum Values:

In the content entry's Targeting dialogue, choose Locale and select the value(s):

In your code, use:

The above list features examples to show the potential of creating your own custom targeting attributes. You can create many types of attributes for targeting the right users for your content.

For more information on targeting and custom attributes, see the following documentation:

Was this article helpful?

Product

Visual CMS

Theme Studio for Shopify

Sign up

Login

Featured Integrations

React

Angular

Next.js

Gatsby

Get In Touch

Chat With Us

Twitter

Linkedin

Careers

© 2020 Builder.io, Inc.

Security

Privacy Policy

Terms of Service

Newsletter

Get the latest from Builder.io

By submitting, you agree to our Privacy Policy

Product

Visual Copilot

Visual Headless CMS

Integrations

What's New

Open Source

Builder

Builder

Mitosis

Mitosis

Qwik

Qwik

Partytown

Partytown

Popular Guides

From Design to Code Ebook

SaaS Marketing Site Ebook

Composable Commerce Ebook

Headless CMS Guide

Headless Commerce Guide

Design to Code

Resources

Blog

Knowledge Base

Community Forum

Partners

Performance Insights

Templates

Success Stories

Showcase

Resource Center

Frameworks

React

React

Next

Next.js

Qwik

Qwik

Gatsby

Gatsby

Angular

Angular

Vue

Vue

Svelte

Svelte

Remix logo

Remix

Nuxt

Nuxt

Hydrogen

Hydrogen

Builder.io logo

Visually build and optimize digital experiences on any tech stack. No coding required, and developer approved.

Get StartedLog In
© 2024 Builder.io, Inc.

Security

Privacy Policy

SaaS Terms

Security & Compliance

Cookie Preferences