# How to Add Anchor Links

## How to Add Anchor Links

By using the URL configured in a campaign, you can easily achieve moving to a specific location within a page by adding anchor links using the Experience editor. Below, we will explain the specific setup steps.

## **Setup Steps**

**Creating a Campaign** Open the Experience editor and create a new campaign.

**Identifying the Destination Element** Identify the element that will be the link destination within the page and edit its HTML.

**Assigning a Unique ID for Identification** Assign a unique identification ID to the identified element. If a unique ID is already set, this step is not necessary. Also, when entering tags: Don't forget to add a single-byte space immediately before it.

```
Be sure to set a unique ID that can identify the destination element.

The ID must not overlap with other elements.
```

Example of assigning an identification ID: `id="customized unique ID value"`

**Setting the Link** Edit the campaign's creative and set the link destination for the relevant button. Select "relative path" as the link format and enter the unique ID of the destination element in the input field. The input format should be "#id".

**Testing and Publishing** Use the preview function to verify that the link works correctly. If there are no issues, save the campaign and publish it.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://helps.ptengine.com/en/faq/experience-edit/anchor-link.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
