Store connections

Set up ROASaurus on Shopware 6

Updated

Create an integration in Shopware, paste its access key ID and secret in ROASaurus, and add the script to your theme. ROASaurus fetches paid orders every 5 minutes; a Flow Builder webhook makes them arrive at once.

Before you start

  • Shopware admin access to Settings › System › Integrations.
  • For instant orders: Flow Builder (Shopware Evolve and up).

Steps

  1. Add the store

    In ROASaurus, open the store menu at the top of the sidebar, choose Add a store, then Shopware 6. Enter the address your customers visit and click Continue.

    You should see: Connect Shopware 6, with Last order received: none yet, Last sync: never, the numbered setup steps and the credential fields.

  2. Add the tracking script

    Copy the script tag from step 1 of the connection page. It contains your store key. Add it to your theme (base.html.twig, block base_script_tracking) or with a tag manager plugin.

    You should see: Open your shop with ?roasaurus=connected at the end of the address: the browser says "ROASaurus is connected."

  3. Create an integration

    Settings › System › Integrations › Add integration, with read access to orders, currencies, sales channels and countries. Paste the Access key ID and Secret access key, save and click Test connection.

    You should see: "Connected to the Shopware Admin API."

  4. Optional: instant orders with Flow Builder

    Flow Builder › trigger State Enter / Order Transaction / State / Paid › action Call URL (Webhook), POST to Your webhook URL. The call tells ROASaurus to fetch new orders right away.

  5. Add the thank-you page snippet

    The connection page shows a snippet that fires the browser purchase with the order id. Add it to storefront/page/checkout/finish/index.html.twig. It links the order to the visitor and their ad click exactly; without it, ROASaurus matches by email or by IP address and browser.

  6. Fetch the first orders

    Press Fetch orders now. The first fetch reads the last 3 days of paid orders; after that ROASaurus fetches every 5 minutes by itself.

    You should see: "Fetched n paid orders, m new." and Last sync with the time. On Getting started, Connect the store turns green.

What you should see

Paid Shopware 6 orders appear under Profit › Orders with their channel, and purchases go out to the ad platforms you connected (Data quality › Deliveries). Getting started shows Connected on with the date.

How orders arrive

ROASaurus fetches paid orders every 5 minutes through the Admin API. The Flow Builder call carries no order data; it only triggers an immediate fetch. ROASaurus also reads your default currency, country and, from Shopware 6.7.13, the business time zone.

Old extensions: remove extensions of other tracking tools that send the same pixels, under Extensions › My extensions, so purchases are not counted twice.

What ROASaurus reads

Only paid orders, with their products, totals, currency, customer contact details and address. Contact details are hashed before they go to an ad platform. Refunds follow where the platform reports them. Your shop is never changed.

Common problems

"Connection failed: … Save your credentials first, then test."
Test connection, Create webhook and Fetch orders now use the saved credentials. Click Save after you change a field, then test again. The text after "Connection failed" is the platform's own answer, for example a refused key.
"Sync failed: …" or the Connect the store step turns red
The platform refused the fetch, most often because the key was removed or lacks read access to orders. Create a new key with the access listed on the connection page, save it and press Fetch orders now.

Next step

Next: connect your ad platforms and add your costs.

Continue with Getting started

Still stuck? Email us.

Every sale, traced to the ad that earned it

Server-side tracking, profit and lifetime value in one app. Free plan, no credit card.