> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gocertify.me/llms.txt
> Use this file to discover all available pages before exploring further.

# Inline On Site Messaging

> Start building loyal communities with targeted, gated offers.

Inline placements are a powerful way to drive conversions by surfacing offers directly on product/checkout pages, maximising conversion of high intent shoppers.

<CardGroup cols={1}>
  <Card title="In-line" href="/section/promoteOffers/on-site-placements" img="https://mintcdn.com/gocertify-db9cc6b8/XUb6vbj2nTBva5Hn/images/osm/inlinePlacementOSM.png?fit=max&auto=format&n=XUb6vbj2nTBva5Hn&q=85&s=5c8bb38869596255a852023c6bfec9c8" width="1020" height="504" data-path="images/osm/inlinePlacementOSM.png">
    Display rewards directly on product/checkout pages, maximising conversion of high intent shoppers.
  </Card>
</CardGroup>

## How to enable inline placements

You can one click enable inline placements on any page where you have already installed the Gocertify head script (see [integrate on site](/section/gettingStarted/integrateOnSite)) without the need for a developer.
Simply log into your [Gocertify dashboard](https://secure.gocertify.me/dashboard) and click on the On-Site Messaging tab.

<img className="block dark:hidden" src="https://mintcdn.com/gocertify-db9cc6b8/XUb6vbj2nTBva5Hn/images/osm/osm-inline-dashboard.png?fit=max&auto=format&n=XUb6vbj2nTBva5Hn&q=85&s=ec3615b3a1bd8fa13735c050e4723bbe" alt="Inline On-Site Messaging Dashboard" style={{ borderRadius: '0.5rem' }} width="3360" height="1972" data-path="images/osm/osm-inline-dashboard.png" />

<img className="hidden dark:block" src="https://mintcdn.com/gocertify-db9cc6b8/XUb6vbj2nTBva5Hn/images/osm/osm-inline-dashboard.png?fit=max&auto=format&n=XUb6vbj2nTBva5Hn&q=85&s=ec3615b3a1bd8fa13735c050e4723bbe" alt="Inline On-Site Messaging Dashboard" style={{ borderRadius: '0.5rem' }} width="3360" height="1972" data-path="images/osm/osm-inline-dashboard.png" />

## How to position your inline placement

To decide where to position your inline placement you can either add a snippet of code on-site or use a CSS anchor

### Using a CSS anchor

To position an inline placement without a developer you can use a CSS anchor. Gocertify will automatically position the placement at the bottom of the element with the matching CSS selector.

<Info>
  **Important:** CSS anchor injection only occurs if no `<gocertify-placement />` element already exists on the page. If you have manually added a placement code snippet to the page, the CSS selector-based injection will be skipped to avoid duplicate placements.
</Info>

<Tip>
  You can set a different CSS anchor for mobile vs. desktop (breakpoint is 768px) to ensure the placement is always visible.
</Tip>

<img className="block" src="https://mintcdn.com/gocertify-db9cc6b8/aRAj38jCiZUKrqMw/images/other/cssAnchor.png?fit=max&auto=format&n=aRAj38jCiZUKrqMw&q=85&s=06cd76aa472a7716d3f6c932e885f1df" alt="CSS Anchor" style={{ borderRadius: '0.5rem' }} width="1207" height="941" data-path="images/other/cssAnchor.png" />

#### 1. Selector

The css selector that is used to attach the placement to. This can be a css class (eg. `.test`), ID (eg. `#test`) or any other [valid CSS selector](https://www.w3schools.com/cssref/css_selectors.php).

#### 2. Position

<img className="block" src="https://mintcdn.com/gocertify-db9cc6b8/aRAj38jCiZUKrqMw/images/other/pdpPlacementPositionBox.png?fit=max&auto=format&n=aRAj38jCiZUKrqMw&q=85&s=8f469c27c5b59b229107d6691d927d8e" alt="Position box model" style={{ borderRadius: '0.5rem' }} width="1440" height="939" data-path="images/other/pdpPlacementPositionBox.png" />

In the above example, the red box demonstrates an example element which would be targetted with a selector. The position property controls where the placement goes in realation to that box:

* **Before**: the placement is placed **outside** and **above** of the target element
* **Inside start**: the placement is placed **inside** and at the **start** of the target element
* **Inside end**: the placement is placed **inside** and at the **end** of the target element
* **After**: the placement is placed **outside** and **after** the target element

### Using a snippet of code

If you want to explicitly position your inline placement on-site you can add a snippet of code to the page where you want to display the placement. Within your dashboard, click on `this placement code` text and paste it into the page where you want to display the placement.

```html theme={null}
<gocertify-placement id="..." data-locale="en-GB" data-purchase-amount="" ></gocertify-placement>
```

<img className="block dark:hidden" src="https://mintcdn.com/gocertify-db9cc6b8/XUb6vbj2nTBva5Hn/images/osm/osm-inline-copy-code.png?fit=max&auto=format&n=XUb6vbj2nTBva5Hn&q=85&s=c539c20a3c7a1ba8727d9d80714b83a9" alt="Inline On-Site Messaging Copy Code" style={{ borderRadius: '0.5rem' }} width="3366" height="1974" data-path="images/osm/osm-inline-copy-code.png" />

<img className="hidden dark:block" src="https://mintcdn.com/gocertify-db9cc6b8/XUb6vbj2nTBva5Hn/images/osm/osm-inline-copy-code.png?fit=max&auto=format&n=XUb6vbj2nTBva5Hn&q=85&s=c539c20a3c7a1ba8727d9d80714b83a9" alt="Inline On-Site Messaging Copy Code" style={{ borderRadius: '0.5rem' }} width="3366" height="1974" data-path="images/osm/osm-inline-copy-code.png" />
