# Drift Detection

Alerts you when page content was changed outside Smart Pages (e.g., in Shopify theme editor).

## What causes drift

* Someone edits the page in the Shopify theme editor
* A theme update modifies templates
* Another app changes page content

## Resolving drift

The drift banner offers three options:

### Keep Smart Pages version

Overwrites theme with Smart Pages' saved version. Use when the theme edit was accidental.

### Import changes

Pulls theme changes into Smart Pages. Use when the theme edit was intentional.

### View diff

Side-by-side comparison to decide which version to keep.

{% hint style="warning" %}
Use **View diff** first if unsure which version is correct.
{% endhint %}


---

# 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://help.pagefly.io/smart-pages/preview-and-publish/drift-detection.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.
