import { jsx, jsxs, Fragment } from "react/jsx-runtime";
import { f as createLucideIcon, P as ProcessSteps, L as Link, T as TrendingUp } from "./index.js";
import "react";
import { I as InfoCard } from "./index2.js";
/**
 * @license lucide-react v0.464.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */
const Database = createLucideIcon("Database", [
  ["ellipse", { cx: "12", cy: "5", rx: "9", ry: "3", key: "msslwz" }],
  ["path", { d: "M3 5V19A9 3 0 0 0 21 19V5", key: "1wlel7" }],
  ["path", { d: "M3 12A9 3 0 0 0 21 12", key: "mv7ke4" }]
]);
function _createMdxContent(props) {
  return jsxs(Fragment, {
    children: [jsx(InfoCard, {
      title: "Two things we connect, not one",
      description: "Connecting Meta requires both your ad account and a Meta Dataset",
      icon: Database,
      variant: "highlighted",
      items: [{
        title: "Your Meta Ads account",
        description: "This gives us access to your campaign spend, impressions, and click data — the same numbers you see inside Meta Ads Manager."
      }, {
        title: "A Meta Dataset (formerly called a Pixel)",
        description: "This is how we send your offline conversion data back to Meta. When a tracked visitor makes a purchase on your site, we report that conversion to Meta through the Dataset so Meta can accurately attribute it to the right campaign and use it to optimize your ads."
      }]
    }), "\n", jsx(ProcessSteps, {
      title: "How to Connect Your Meta Ads Account",
      icon: Link,
      steps: [{
        number: 1,
        title: "Open your dashboard settings",
        description: "Click the settings icon in the top right of your dashboard to open the account settings panel."
      }, {
        number: 2,
        title: "Select Meta Ads",
        description: 'Find the Ad Accounts section and click "Connect" next to Meta (Facebook/Instagram) Ads.'
      }, {
        number: 3,
        title: "Sign in with Facebook",
        description: "You will be redirected to Facebook's login page. Sign in with the account that has Admin access to your Business Manager. Admin access is required — advertiser-only roles cannot complete the connection."
      }, {
        number: 4,
        title: "Grant permissions",
        description: "Review and approve the requested permissions. We need access to your ad account spend, campaign data, click events, and your Meta Dataset so we can send conversion data back to Meta."
      }, {
        number: 5,
        title: "Select your Business Manager and ad account",
        description: "Choose the Business Manager and the specific ad account you want to connect. If you manage multiple accounts, select the one running the ads you want to track."
      }, {
        number: 6,
        title: "Select or create a Meta Dataset",
        description: "If your ad account already has a Dataset (formerly called a Pixel), select it from the list. If none exists, we will automatically create one for you in the next step. The Dataset is what allows Meta to receive your conversion data and attribute purchases back to the correct campaigns."
      }, {
        number: 7,
        title: "Wait for data to sync",
        description: "After connecting, your Meta campaign and spend data will begin appearing in the dashboard. Initial sync may take a few hours. Conversion data sent via the Dataset may reflect a 24-hour delay in Meta Ads Manager."
      }]
    }), "\n", jsx(InfoCard, {
      title: "Common connection issues",
      description: "What to do if the connection fails or data is not showing up",
      icon: TrendingUp,
      variant: "warning",
      items: [{
        title: "You do not see the right Business Manager",
        description: "Make sure you are logged into the Facebook account that is an Admin of the Business Manager you want to connect, not just a personal ad account.",
        dotColor: "amber"
      }, {
        title: "Permission denied error",
        description: "Your Facebook account must have Admin role on the Business Manager. Advertiser access is not sufficient. Check your role in Business Manager settings and ask an Admin to complete the connection if needed.",
        dotColor: "amber"
      }, {
        title: "No Dataset found and automatic creation failed",
        description: "If we cannot create a Dataset automatically, you can create one manually in Meta Events Manager (business.facebook.com) and then reconnect. Make sure the Dataset is owned by or shared with the same Business Manager you are connecting.",
        dotColor: "amber"
      }, {
        title: "Data appears but is incomplete",
        description: "Meta data is typically available with a 24-hour delay. If data from the past day is missing, this is normal — check back the following day.",
        dotColor: "amber"
      }]
    })]
  });
}
function MDXContent(props = {}) {
  const { wrapper: MDXLayout } = props.components || {};
  return MDXLayout ? jsx(MDXLayout, {
    ...props,
    children: jsx(_createMdxContent, {
      ...props
    })
  }) : _createMdxContent();
}
export {
  MDXContent as default
};
