Personyze Wiki Personyze Wiki docs
Open Personyze
Actions & Content

Content Placements (Embedding Content in Pages)

Placeholders are named slots on your site where Personyze renders content. How to create one with the visual picker, a CSS selector, or an HTML snippet, and how competing campaigns…

Updated 21 hours ago 12 min read
A
by Admin

What Are Content Placements?

UI path: Settings → Content Placement (or from inside an individual action).

Placeholders are named slots on your website where Personyze content appears — a banner in your header, recommendations on a product page, a message above the category grid, anything in between. You create a placeholder once, and from then on any campaign can target it.

That’s the whole point: a placeholder is a named anchor Personyze renders into the page, rather than floating over it as a popup or overlay. Set the slot once, then swap different content through it for different audiences without touching your site again.

Prefer to click through it? Use the interactive walkthrough below, then scroll down for the detailed reference.

Create a placeholder
Open Content Placement

Open Content Placement

Go to Settings → Content Placement. Every placeholder is listed with its selector and what it’s connected to. Click + Add new placeholder.

💡 The Connected column tells you how many actions and audiences rely on a placeholder before you touch it.
Choose a method

Choose a method

Three ways to tell Personyze where content goes: Find on pages (click it on your site), I know the selector (paste CSS), or Code to place in page HTML (a div for your developer). Same result — this walkthrough follows the picker.

Open the picker

Open the picker

Choose Find on pages, enter the URL of a page on your site, and click Open picker. Personyze loads that page in the QA simulator with the placeholder panel alongside it.

Point and click the element

Point and click the element

Under Select the placeholder element, click any element on the live page to anchor to it. Placement uses a CSS selector — use Select parents to move up the hierarchy, or Reselect to start over.

💡 Landed on something with a dynamic ID like #cart-SS4443? Use Select parents to climb to a stabler element.
Describe it (and let AI name it)

Describe it (and let AI name it)

Type what the placeholder is for — “free-shipping bar shown to first-time visitors.” Suggest with AI proposes a clear name, the element to target, and the recommended placement. Apply suggestion fills it all in.

💡 The description sticks with the placeholder, so teammates know what a slot is for months later.
Place it and test the look

Place it and test the look

Put personalized content to sets injection relative to your element: Inside, Before, After, or Replace. Then Test the look renders something in the spot — preview a real action from your account, or drop in a blank ad size (336×280, 300×250, 728×90) to check it fits.

💡 Test before saving. A slot that fits a 300×250 may break the layout with a 728×90.
Use it in an action

Use it in an action

Save the placeholder, then in the builder’s Placement, Trigger & Frequency step choose Inline element → Click to set placeholder. If another content item already uses that slot, set priority — lowest number displays first.

💡 Priority only matters when two items can fire at once. Non-overlapping audiences never compete.

Open Content Placement

Open Content Placement

Go to Settings → Content Placement. Every placeholder is listed with its selector and what it’s connected to. Click + Add new placeholder.

💡 The Connected column tells you how many actions and audiences rely on a placeholder before you touch it.
Choose a method

Choose a method

Three ways to tell Personyze where content goes: Find on pages (click it on your site), I know the selector (paste CSS), or Code to place in page HTML (a div for your developer). Same result — this walkthrough follows the picker.

Open the picker

Open the picker

Choose Find on pages, enter the URL of a page on your site, and click Open picker. Personyze loads that page in the QA simulator with the placeholder panel alongside it.

Point and click the element

Point and click the element

Under Select the placeholder element, click any element on the live page to anchor to it. Placement uses a CSS selector — use Select parents to move up the hierarchy, or Reselect to start over.

💡 Landed on something with a dynamic ID like #cart-SS4443? Use Select parents to climb to a stabler element.
Describe it (and let AI name it)

Describe it (and let AI name it)

Type what the placeholder is for — “free-shipping bar shown to first-time visitors.” Suggest with AI proposes a clear name, the element to target, and the recommended placement. Apply suggestion fills it all in.

💡 The description sticks with the placeholder, so teammates know what a slot is for months later.
Place it and test the look

Place it and test the look

Put personalized content to sets injection relative to your element: Inside, Before, After, or Replace. Then Test the look renders something in the spot — preview a real action from your account, or drop in a blank ad size (336×280, 300×250, 728×90) to check it fits.

💡 Test before saving. A slot that fits a 300×250 may break the layout with a 728×90.
Use it in an action

Use it in an action

Save the placeholder, then in the builder’s Placement, Trigger & Frequency step choose Inline element → Click to set placeholder. If another content item already uses that slot, set priority — lowest number displays first.

💡 Priority only matters when two items can fire at once. Non-overlapping audiences never compete.

The Content Placement List

Every placeholder in the account is listed with the method and selector it uses (for example CSS · banner.hero), what it’s connected to — how many actions and audiences currently rely on it — when it was created, and an Active toggle. Search by name, or filter to All / Active / Inactive. The pencil edits a placeholder; the menu holds the rest.

The Personyze Content Placement page listing placeholders with their method, selector, connected actions and audiences, and active toggle
The Content Placement list. The Connected column is the one to watch — it shows how many actions and audiences depend on a placeholder, so you know what breaks if you change or deactivate it.

Click + Add new placeholder to create one. Give it a name you’ll recognize later — you’ll be picking it from a dropdown when you build campaigns.

Choose a Method

Personyze needs to know where on the page to place your content. There are three ways to tell it, and the result is identical — pick whichever suits how much you know about the page’s markup and whether you can edit it.

The Add new placeholder panel showing the three methods: Find on pages, I know the selector, and Code to place in page HTML
The three methods. Find on pages if you’d rather click than read markup; I know the selector if you already have one; Code to place in page HTML if you want an anchor that doesn’t depend on the page’s existing structure.

Find on Pages

The visual picker, and the option to reach for when you don’t know the markup — or don’t want to go digging for it. Enter the URL of a page on your site and click Open picker: Personyze loads that page in the QA simulator with a placeholder panel docked beside it, so you’re choosing the spot on the real page rather than guessing at a selector.

The Find on pages method with the page URL field and Open picker button for choosing a spot visually
Find on pages: enter any page URL and open the picker. If the simulator can’t load that page, fall back to entering the selector manually.

Point and Click the Element

Under Select the placeholder element, click any element on the page to anchor to it. Personyze works out the CSS selector for you — for a page title, for instance, it’ll pick H1. Two controls matter here:

  • Select parents — walks up the DOM hierarchy from what you clicked. This is your escape hatch when you land on an element with a dynamic ID (see the warning below).
  • Reselect — starts the pick over.
The Personyze content placeholder picker open on a live page, prompting you to point and click an element to use as the placeholder
The picker docked beside your live page. Click any element to use it as the placeholder anchor; Select parents climbs the hierarchy if the element you clicked isn’t stable enough.

Describe It — and Let AI Name It

Describe this placement is where you say what the slot is for in plain language: “free-shipping bar shown to first-time visitors”. Click Suggest with AI and Personyze proposes a clear placeholder name, the element to target, and a recommended placement relative to it. Apply suggestion fills those in.

This is worth doing even when you already know the answer. The description stays attached to the placeholder, so six months later your team can tell what H3.main-title-heading was actually meant for.

The Describe this placement panel with an AI suggestion proposing a placeholder name, element, and recommended placement
Describe this placement: say what the slot is for, and AI suggests a name, the element, and where to place content relative to it. Apply suggestion fills them in.

Place It and Test the Look

Put personalized content to is the picker’s version of Place actions — it defines where content is injected relative to the element you selected: Inside (appended within, at the end), Before, After, or Replace.

Test the look is the part worth not skipping. It renders something into the spot so you can see how content will actually sit there before you commit:

  • Preview an action from your account — pick a real action and click Preview in this location to see the genuine content in place.
  • Or test a blank ad size — drop in a placeholder block at 336×280, 300×250, or 728×90 to check the slot can take those dimensions without breaking the layout.
The picker panel showing where to inject content relative to the selected element, and the Test the look preview options
Put personalized content to sets the injection point; Test the look renders a real action or a blank ad size in the slot so you can see it fit before saving.

Click Save placeholder when the spot looks right.

I Know the Selector

Paste a CSS selector that already identifies the element — .hero-banner, #product-grid, [data-slot='recommendations'].

The I know the selector method with the CSS selector field and best-practice guidance about dynamic IDs
I know the selector: paste any CSS selector. The best-practice note is the important part — see the warning about dynamic IDs below.

Watch out for dynamic IDs. Many sites generate selectors containing an ID that changes per visitor or per product — #cart-SS4443. A placeholder built on one of those works for you and nobody else, because that exact selector doesn’t exist on anyone else’s page. Use a generic parent instead (#cart or .cart-wrap) so the placeholder survives as those IDs change. In the visual picker, the select parents option walks you up to a stabler element.

Finding a Selector Yourself

Right-click the element on your page and choose Inspect to open your browser’s dev tools with that element highlighted. Right-click the highlighted element in the inspector and copy the selector path. If your browser words it differently, search “how to find HTML selector in [your browser]”. Trim whatever you get back to the shortest stable form — long auto-generated paths break the moment the page’s structure shifts.

Code to Place in Page HTML

Personyze generates an empty anchor div — <div id="placeholder-5rf9"></div> — and you (or your developer) paste it wherever the content should appear: inside a template, a CMS block, a React component, wherever.

This is the most robust of the three, because the anchor is yours and doesn’t depend on the page’s existing structure — no selector to break when the site is redesigned. The trade-off is that it needs a code change on your side.

The Code to place in page HTML method showing the generated div snippet to hand to a developer
Code to place in page HTML: copy the generated div and hand it to a developer. Because the div is the anchor itself, this method has no Place actions setting — content simply renders inside it.

Where Should Content Appear?

For the selector-based methods, Place actions controls the position relative to the element you chose:

  • Inside the selected element — content is appended inside it (the default).
  • Before the selected element — content is inserted just above it.
  • After the selected element — content is inserted just below it.
  • Replace the selected element — the original element is swapped out for your content.
The Place actions dropdown open, showing Inside, Before, After, and Replace the selected element
Place actions. Inside appends within the element; Before and After leave it intact and sit around it; Replace swaps it out entirely — useful for taking over an existing banner slot.

Handling Multiple Campaigns

Several campaigns can compete for the same placeholder. Three settings decide what happens:

  • Maximum actions to display — how many actions may render here at once. If you allow more than one, content is arranged by campaign priority — lowest number first.
  • Cycle content — rotate through all competing contents one at a time, instead of hiding the overflow. Use it when you’d rather show everything in turn than drop the losers.
  • Multiple elements can match the selector — render at every matching element instead of only the first. This is what you want for a selector like .product-card that legitimately matches many elements; leave it off when the selector should resolve to exactly one spot.

Click Save new container when you’re done.

Choosing a Placeholder Inside an Action

You don’t have to create placeholders up front. When you build an action — in the Popup, Banner & HTML Builder, at step 3, Placement, Trigger & Frequency — you choose Where on the page the content goes:

  • Inline element — renders inside a section of your page. Native and non-intrusive: it stacks with your other content. This is the option that uses a placeholder — click Click to set placeholder to pick one.
  • Floating popup — overlays the page with an optional dimmed backdrop. No placeholder needed; you set a screen position instead.

The picker lets you attach an existing placeholder or create one on the spot with + New. Each placeholder shows how it’s being used — for example used in 1 actions, 0 active — so you can tell whether you’re about to share a slot before you commit to it.

Sharing a Placeholder Across Campaigns

A placeholder isn’t owned by one campaign. Any number of actions can point at the same slot, which is exactly what makes it useful: the same spot on the page shows a different message to each audience.

When you pick a placeholder that another content item already uses, Personyze warns you and shows the list of all content items using this placeholder. If two of them can fire at the same time, you decide the order with priority — lowest number first. Drag the items, or use the Position arrows, to move the action you’re editing up or down the queue.

The Select placeholder panel inside a Personyze action, showing the placeholder chip, the list of content items using it, and their priority order
Selecting a placeholder from inside an action. The panel lists every content item already using this slot and lets you drag them into the order they should display — the action you’re editing is highlighted so you can see where it lands.

Two things worth keeping straight here:

  • Priority only matters when items compete. If the audiences never overlap, only one action can ever match a given visitor and the ordering is moot. It’s the simultaneous-match case that priority resolves.
  • Priority orders; it doesn’t multiply. By default the placeholder shows one item — the highest-priority match — and the rest are dropped. To show several at once when the layout allows, the placeholder itself has to permit more than one item; that’s the Maximum actions to display setting covered above (the panel refers to it as show multiple items).

To see which campaigns are actually competing for a slot on live traffic, the QA Campaigns tab lists placeholder overlaps and shows your priority against theirs before you launch.

Using a Placement in a Campaign

Once saved, the placeholder is available to any action that renders visually — banners, recommendations, forms. It won’t appear for JavaScript or email actions, which don’t render into the page this way.

Because the slot is decoupled from the content, you can point several campaigns at the same placeholder and show each audience something different in the same spot on the page.