Store connections

Set up ROASaurus on Shoporama

Updated

Yes. Paste a Shoporama API key in ROASaurus and paid orders are fetched every 5 minutes; an order webhook in the Shoporama admin makes them arrive within seconds. Add the script to every page and the snippet to the order confirmation page.

Before you start

  • Shoporama admin access to the API access page and webhooks.

Steps

  1. Add the store

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

    You should see: Connect Shoporama, 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 every page of the shop through the shop's header code field.

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

  3. Paste the API key

    In the Shoporama admin, create an API key with access to orders and customers on the API access page. Paste it in API key; fill in Shop domain only when it differs from the store's domain. Save and click Test connection.

    You should see: "Connected to Shoporama."

  4. Optional: create the order webhook

    In the Shoporama admin, create a webhook for the event order with Your webhook URL, and paste the secret it shows in Webhook secret. Save.

  5. Add the thank-you page snippet

    The connection page shows a snippet that fires the browser purchase with the order id. Fill in the order id, total and currency on the order confirmation page. 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 Shoporama 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 by their last change every 5 minutes, and reads the customer's email for each. With the webhook, each order arrives at once and its signature is checked with the secret.

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.
"A webhook from … arrived with a wrong token or signature."
The webhook in your shop does not use the URL or secret ROASaurus expects. Copy Your webhook URL again from the connection page, and paste the same secret in both places.

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.