> ## Documentation Index
> Fetch the complete documentation index at: https://docs.paysight.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Shopify COGs

> How paysight handles Shopify COGs (Cost of Goods Sold)

<Info>
  COGS (Cost of Goods Sold) reflects the actual cost of products sold, not the selling price. When connected to Shopify, Paysight automatically includes COGS in reporting so you can measure profitability and ROI accurately.
</Info>

## Availability

<Callout type="info">
  COGS is available only when your Paysight account is integrated with Shopify (or others) are completed via the hosted Shopify checkout. Paysight identifies purchased products and matches them to product costs stored in Shopify.
</Callout>

## Requirements

<CardGroup cols={3}>
  <Card title="Shopify Store Onboarding" icon="plug" href="/guides/shopify-store-onboarding">
    Connect your Shopify store to Paysight.
  </Card>

  <Card title="Product Costs in Shopify" icon="tag">
    Ensure each product has an up-to-date <em>Cost per item</em> value.
  </Card>

  <Card title="Hosted Checkout Path" icon="cart-shopping">
    Orders must complete through Shopify’s checkout so products can be mapped.
  </Card>
</CardGroup>

## How it works

<Steps>
  <Step title="Identify purchased products">
    During checkout, Paysight receives line items for the order from Shopify.
  </Step>

  <Step title="Match to product cost">
    Each line item is matched to the product’s <em>Cost per item</em> configured in Shopify.
  </Step>

  <Step title="Store with the transaction">
    The calculated COGS is attached to the transaction so it’s visible in your reports.
  </Step>
</Steps>

## Reporting & ROI

<Note>
  COGS appears in the <strong>Costs</strong> tab across relevant reports in Paysight. Values are tied to each transaction and aggregated at report level.
</Note>

<Note>
  <strong>ROI formula</strong><br />
  ROI = (Revenue – COGS) ÷ COGS
</Note>

<Tip>
  Keep product cost data current in Shopify to ensure accurate profitability analytics.
</Tip>

## FAQ

<AccordionGroup>
  <Accordion title="What does the COGS field represent?" icon="circle-info">
    COGS reflects the actual cost of the products sold. It’s used for profitability and ROI calculations rather than pricing.
  </Accordion>

  <Accordion title="When is COGS active in Paysight?" icon="power-off">
    Only when a Shopify integration is active and customers check out via Shopify’s hosted checkout. Paysight automatically pulls the cost from Shopify for the purchased products.
  </Accordion>

  <Accordion title="How do I configure or use COGS?" icon="sliders">
    * In Shopify: Ensure each product has an accurate <em>Cost per item</em>.
    * In Paysight: No manual setup. Once Shopify is connected, COGS is tracked automatically at the order level and shown in reporting.
  </Accordion>

  <Accordion title="Can I set a fixed cost per product in Paysight?" icon="ban">
    Not directly in Paysight. Set costs in Shopify at the product level. If you need a non-Shopify fixed cost workflow, export reports and layer costs externally as a workaround.
  </Accordion>

  <Accordion title="How does COGS improve ROI tracking?" icon="chart-line">
    Accurate product costs enable precise profitability calculations. With correct COGS, ROI insights for campaigns are more reliable.
  </Accordion>
</AccordionGroup>

## SOP: Update COGS in Shopify

<Steps>
  <Step title="Open Shopify Admin">
    Log in to your Shopify admin dashboard.
  </Step>

  <Step title="Select a product">
    Go to <strong>Products</strong> and open the product you want to update.
  </Step>

  <Step title="Edit cost per item">
    Scroll to <strong>Cost per item</strong> and enter the accurate product cost (exclude taxes, shipping, overhead).
  </Step>

  <Step title="Save changes">
    Save the product. Repeat for all products to keep costs up to date.
  </Step>

  <Step title="Automatic sync to Paysight">
    When customers check out via Shopify, Paysight will automatically use the configured costs in reporting.
  </Step>
</Steps>

## Next steps

<CardGroup cols={3}>
  <Card title="Connect Shopify" icon="plug" href="/guides/shopify-store-onboarding">
    Onboard a Shopify store in Paysight.
  </Card>

  <Card title="Analyze Reports" icon="chart-line" href="/guides/reports">
    See where COGS appears and how to use cost insights.
  </Card>

  <Card title="Get Support" icon="life-ring" href="/support">
    Need help? Contact our support team.
  </Card>
</CardGroup>
