# Script

Install and manage the AgentixSEO script, the delivery and measurement layer for a client site.

Script is shown under Client in the AgentixSEO navigation. The script is how work gets published to a client site and how results get measured. Install and verify it first, otherwise the site shows none of the approved changes and the platform collects no data.

## What the script does

It is one line of code, unique per client, pointing at the AgentixSEO endpoint with that client ID (for example serve-seo-script?clientId=...). Once it runs on a page it does four jobs.

1. Applies approved changes: page title, H1, meta description, body copy, image alt text and canonical tags.
2. Adds structured data: WebPage and Organization schema, plus FAQ and product schema where those have been approved.
3. Serves /llms.txt and helps search and AI crawlers see the enhanced version of the page.
4. Collects page data and visitor data, which feeds audits, rankings and reporting.

### What gets measured

- Traffic source and campaign.
- Device type and page load time.
- Scroll depth, time on page and bounce.
- Conversions, with Shopify and WooCommerce checkouts detected automatically.

> **Nothing goes live without it**: Approved titles, copy and schema stay unpublished until the script is installed and verified on the live site. The only exception is a CMS connection (WordPress or Shopify), which pushes changes directly.

## Visible panels

| Panel | Purpose |
| --- | --- |
| SEO Script | Copy the client-specific script tag and run Verify Installation against the live site. |
| Shopify | Adds a checkout snippet on the order status page so completed orders report back as conversions. |
| Product Carousel | Shows live inventory from the client catalog inside the page, delivered by the script. |
| Data Collection | The cookie consent banner and the data-collection controls shown to visitors. |
| DNS Proxy | Points the domain through the AgentixSEO proxy for server-side injection. |

## Installing it

1. **Copy the script**: Open Script, then the SEO Script panel, and copy the tag. It already contains the client ID, so each client has its own tag to copy.
2. **Add it to the site**: Paste it into the site template so it loads on every page, as high in the head as the platform allows.
3. **Verify**: Return to the SEO Script panel and run Verify Installation. A successful check confirms AgentixSEO can see the script running on the live domain.
4. **Confirm data arrives**: Visit the site, then check that page and visitor data begin appearing. No data after a verified install usually means the script only loads on one page.

## DNS Proxy

The proxy is the stronger option when the client site will not accept a script tag, or when changes need to be in the HTML before the browser runs any JavaScript. Traffic is routed through the AgentixSEO proxy so changes are injected server side, which enables full page rewrites and inventory rewrites rather than browser-side edits.

| Record type | Value |
| --- | --- |
| CNAME | proxy.agentixseo.com |
| A | 185.158.133.1 |

> **Pick one delivery path**: Script tag for most sites, DNS proxy when server-side injection is needed, CMS connection when the client uses WordPress or Shopify and wants changes written into the CMS itself.
