How to Add Google Analytics to an IndieMade Website

Every IndieMade shop includes the Analytics add-on at Dashboard → Analytics. It shows your visitors, where they come from, which pages and products they look at, and your sales, with no setup. For most shops that is all you need. See Analytics for a tour of every report.

Google Analytics is Google's own visitor-tracking tool. It goes deeper and has a steeper learning curve. Add it if you already use it for other sites, if you run Google Ads, or if you want custom reports. You can run both at once. Connecting Google Analytics is included on every plan. For what to watch for search traffic, see SEO on IndieMade.

Adding your Measurement ID

  1. Go to your Dashboard and click the IndieMade Settings button in the header.
  2. Click Google Analytics. It sits directly below SEO Settings.
  3. Enter your Google Analytics 4 Measurement ID. It looks like G-XXXXXXXXXX.
  4. Tick the tracking you want (see below).
  5. Click SAVE.

What you can track

  • Track customer shopping journey: when someone views a product, adds it to the cart, starts checkout and completes a purchase.
  • Track checkout steps: when someone enters shipping and payment details. This shows where shoppers leave checkout.
  • Track completed purchases: every sale, with the order total and what was bought.

A purchase is counted in Google Analytics when the order is paid. A check or money order placed with payment pending is not counted as a sale until you record the payment, so your revenue in Google matches the money you actually received.

Taking refunds and cancellations off your revenue

Google Analytics never deletes a sale on its own. Without help, a refunded order stays in your revenue forever. Give IndieMade an API secret and it tells Google Analytics every time you refund or cancel a paid order, so the money comes off.

  1. In Google Analytics, go to Admin, then Data streams, and pick your website stream.
  2. Open Measurement Protocol API secrets and click Create. Give it a name, such as IndieMade, and copy the secret value.
  3. Back in IndieMade, on the Google Analytics settings page, paste it into API secret (for refunds).
  4. Click SAVE.
The API secret (for refunds) box on the Google Analytics settings page, circled, with its help text and the SAVE button below
Settings → Google Analytics. Paste the secret from Google here.

Once it is saved, the box says Saved. Leave blank to keep it. and the secret is never shown again. To take it away, tick Remove the saved API secret and save.

From then on:

  • Refund part of an order and Google Analytics subtracts that part. Refund the rest later and it subtracts the rest.
  • Cancel a paid order and Google Analytics subtracts whatever has not already been refunded. Nothing is ever subtracted twice.
  • An order that never counted, such as an unpaid check order, sends nothing.

See Managing Orders for how to refund or cancel an order.

Good to know

  • The screen links to SEO Settings, where you verify your site with Google Search Console and find your sitemap address. See SEO on IndieMade.
  • If you use the Cookie Consent Banner, Google Analytics stays silent until a shopper accepts. A shopper who accepts on the thank-you page still has their purchase counted.
  • IndieMade works with Google Analytics 4. The older Universal Analytics stopped processing data on July 1, 2023, so an ID that starts with UA- no longer works. Google's guide to Google Analytics 4 shows how to create a new property.

Questions? Email support@indiemade.com.