# Advertorial and Partner Shop

> Cross-domain tracking across two AnyTrack accounts, from your advertorial to a partner shop, with the steps for each account, the host rule, and the expected results.

You run ads to an advertorial on your domain. The advertorial sends visitors to a shop that a partner owns and tracks in another AnyTrack account. This guide sends the shop purchases back to your advertorial property, so your ad platform receives them with your ad click.

<Prerequisites
  title="Before you begin"
  items={[
    { label: "Your account is on the Personal plan or higher.", done: false },
    { label: "Your advertorial property has the Tracking Tag in the head section of every page.", done: false },
    { label: "The partner has a property for the shop, with its Tracking Tag and its integration, for example Shopify.", done: false },
    { label: "The partner account is on the Personal or Advance plan. These plans have Webhooks (outgoing).", done: false },
    { label: "You and the partner agree on the events to share, for example Purchase.", done: false },
  ]}
/>

## How the Data Travels

**Advertorial and Shop in Two Accounts**

Across accounts, the outgoing webhook of the partner property sends the purchase to the AnyTrack integration of your property.

1. **Visitor clicks your ad**. Tools: Facebook Ads. Your account. The visitor lands on your advertorial. Your property records the session with the ad click ID.
2. **Link carries `atrefid`**. The Tracking Tag adds `atrefid` to the link that points to the shop. Data: atrefid (present). Passes on: ?atrefid=<Click ID>.
3. **Shop records the purchase**. Partner account. The Tracking Tag and the integration of the partner property track the visit and the `Purchase`.
4. **Partner webhook sends the purchase**. Partner account. The outgoing webhook of the shop property sends the `Purchase` to your webhook URL.
5. **Your integration matches the purchase**. Your account. The AnyTrack integration of your property reads `atrefid` and matches the `Purchase` to your visitor. Data: atrefid (present).
6. **Your property sends the purchase**. Tools: Facebook Ads. Your property attributes the `Purchase` to the original ad click and sends it through the Conversion API.

Result: **Both accounts see the purchase**. You see the purchase on your ad. Your partner sees it as a referral from your advertorial.

The partner property records each purchase first, as in one account. The outgoing webhook of the partner property then sends the purchase to the AnyTrack integration of your advertorial property. Your property reads the `atrefid` value, matches the purchase to your visitor, and sends the purchase to your ad platform.

## Who Does What

<Table variant="specs">

| Task | You (advertorial account) | Partner (shop account) |
| --- | --- | --- |
| Tracking Tag | On every advertorial page | On every shop page |
| Integration | Your ad platform, and the **AnyTrack** integration from the Integration Catalog | The shop integration, for example Shopify |
| Cross-Domain Settings | Domains, Sync Conversions, and Event Names | None |
| Outgoing webhook | None. You give the webhook URL of the AnyTrack integration to the partner. | One webhook on the shop property, with your webhook URL and the events to share |

</Table>

## Step 1: The Partner Sets Up the Shop Property

The partner does these steps in the shop account:

1. Install the Tracking Tag on every page of the shop. For a Shopify store, follow [Shopify](/docs/shopify).
2. Set up the shop integration.
3. Make a test order and verify that the `Purchase` shows in the [Conversions Report](/docs/conversions-report) of the shop property.

## Step 2: Find the Exact Host of the Shop

1. Open a product page of the shop in your browser.
2. Read the host in the address bar, for example `www.partnershop.com`.
3. Open a second shop page, for example the cart page. Note the host if it is different.

<Callout icon="🚧" theme="warn">
**The exact host decides across accounts**

Across accounts, `partnershop.com` does not match `www.partnershop.com`. If the host of the shop page is not in your list, the purchase stays in the partner account.
</Callout>

## Step 3: Configure Your Advertorial Property

1. Open your advertorial property.
2. Open the **Settings** tab, then find **Cross-Domain Settings**.
3. In **Additional Domains**, enter the root domain of the shop, for example `partnershop.com`. Press Enter.
4. Enter each exact host from Step 2, for example `www.partnershop.com`. Press Enter after each host.
5. Turn on **Enable to sync Conversions triggered on cross-domain properties with this property.**
6. In **Event Names**, keep only the events that you agreed on, for example `Purchase`. The list needs at least one event: with an empty list, the links carry `atclid`, not `atrefid`.
7. Optional: turn on **AutoTag UTM parameters for cross-domain properties.** The partner then sees your source, medium, and campaign in the UTM parameters of each visit.
8. Click **Save**.

<Callout icon="📘" theme="info">
**Link to shop pages**

This guide covers links that open a shop page with the partner Tracking Tag. Cross-Domain Tracking does not support a Shopify permalink. Do not use a Shopify permalink in a Cross-Domain Tracking setup. A Shopify permalink is a link that goes straight to the Shopify cart or checkout. On your advertorial, link to the shop pages.
</Callout>

## Step 4: Install the AnyTrack Integration in Your Account

1. Open the [Integration Catalog](https://dashboard.anytrack.io/catalog/) and search for **AnyTrack**.
2. Open the AnyTrack card and click **Install Integration**.
3. Copy the webhook URL of the integration.
4. Send the webhook URL and the Property ID of your advertorial property to the partner. The Property ID is the 12-character ID in your Tracking Tag code.

See [AnyTrack Multiaccount](/docs/anytrack-multiaccount) for the details of the integration.

## Step 5: The Partner Adds an Outgoing Webhook

The partner does these steps in the shop account:

1. Open the shop property.
2. Click **Webhooks (outgoing)** in the left sidebar.
3. Click **New Webhook**.
4. Enter a name in **Webhook Name**.
5. Paste your webhook URL in **Webhook URL**.
6. In **Event Names**, select the events that you agreed on, for example `Purchase`. Use the same events as in the Event Names list of Step 3.
7. Under **Additional filters**, enter your Property ID in **Cross domain property source**. The webhook then sends only the events that carry an `atrefid` value of your property.
8. Keep **Payload Version** on **V1 (latest)**. The filter of step 7 needs this version.
9. Click **Create**.

See [Webhooks (Outgoing)](/docs/webhooks-outgoing) for each option.

## Step 6: Verify the Setup

1. Open the advertorial in a new incognito window.
2. Hover over a link to a shop page. The link URL must contain `?atrefid=`.
3. Click the link and complete a test order on the shop.
4. Ask the partner to verify that the `Purchase` shows in the shop property as a referral from your domain.
5. Open the [Events Log](/docs/integration-event-log) of the AnyTrack integration in your account. The `Purchase` from the partner shows there.
6. Open the Conversions Report of your advertorial property. The same `Purchase` shows with the traffic source of your visit.

## What to Expect

<Table variant="specs">

| Where | What you see |
| --- | --- |
| Your advertorial property | The `Purchase` with the order value of the shop, attributed to your ad click and campaign |
| Your ad platform | The `Purchase`, sent through the Conversion API by your advertorial property |
| The partner shop property | The same `Purchase`, as a referral from your domain |
| The partner ad platforms | Only what the partner property sends, as for any other purchase |

</Table>

<Callout icon="📘" theme="info">
**Order value, not commission**

The copy carries the order value that the shop records. If the partner pays you a commission, your ROAS in AnyTrack uses the order value, not the commission.
</Callout>

## Related Articles

- [Cross-Domain Tracking](/docs/cross-domain-tracking): when you need it and how it works
- [Cross-Domain Settings](/docs/cross-domain-settings): each field and the host rule
- [Review Site and Partner Funnel](/docs/cross-domain-accounts-review-clickfunnels): the same setup with a ClickFunnels funnel
- [AnyTrack Multiaccount](/docs/anytrack-multiaccount): the AnyTrack integration and its webhook URL
- [Webhooks (Outgoing)](/docs/webhooks-outgoing): each option of the webhook form
- [Advertorial and Shopify](/docs/cross-domain-advertorial-shopify): the same flow in one account

<FaqAccordion
  title="Frequently Asked Questions"
  icon="fa-duotone fa-circle-question"
  items={[
    {
      question: "The purchase shows in the partner account but not in mine. What do I check?",
      answer: "Check five points. 1. The link carries <code>atrefid</code>. 2. The exact host of the shop page, for example www.partnershop.com, is in your Additional Domains list. 3. The outgoing webhook of the partner is enabled, has your webhook URL, and has the event selected. 4. The Events Log of your AnyTrack integration shows the event. 5. The visitor reached the shop through the tagged link on your advertorial."
    },
    {
      question: "Does the partner need cross-domain settings or a Personal plan for this setup?",
      answer: "The partner needs no cross-domain settings. In this setup, the partner property has the Tracking Tag, the shop integration, and one outgoing webhook. Webhooks (outgoing) are on the Personal and Advance plans, so the partner account needs one of these plans. All the cross-domain settings live on your advertorial property, which is on the Personal plan or higher."
    },
    {
      question: "Does this setup use the AnyTrack integration and an outgoing webhook?",
      answer: "Yes. The setup across two AnyTrack accounts uses both. You install the AnyTrack integration in your account and give its webhook URL to the partner. The partner adds an outgoing webhook to the shop property, with your webhook URL and the events to share. See Step 4 and Step 5."
    },
    {
      question: "Which events do I receive from the partner shop?",
      answer: "The events that you and the partner agreed on, for example <code>Purchase</code>. Two lists hold these events: the Event Names list of your advertorial property (Step 3), and the Event Names list of the outgoing webhook of the partner (Step 5). Keep the same events in the two lists. To stop an event, remove it from both lists."
    },
    {
      question: "Does the partner see my ad data?",
      answer: "The partner property records the visit as a referral from your domain. If you turn on AutoTag UTM parameters for cross-domain properties, the partner also sees your source, medium, and campaign names in the UTM parameters."
    }
  ]}
/>
