Browse all guides
← All guides

Connect Google Analytics and Search Console to your store

See your store's visitors, add-to-carts and sales in your own Google Analytics, and which searches bring people in with Search Console — including the one verification step that trips most people up.

Both are free and optional, and both belong to you — Tokoo's own statistics are separate. Google Analytics shows who visits your store and what they buy; Search Console shows which Google searches bring people in. Once connected, your store reports product views, add-to-cart, checkout starts and purchases to your Google Analytics 4 property automatically. Set aside about 15 minutes, and sign in to Google with the account you want to own the data.

Part 1 — Google Analytics

  1. 1

    Create a Google Analytics 4 property

    Go to analytics.google.com and sign in with your Google account. Click the gear icon (Admin) at the bottom left, then Create → Property. Type a name for the property (your store name is fine), pick Malaysia for the reporting time zone and Malaysian Ringgit (RM) as the currency, then click Next. Google asks for your industry and business size, then which goals matter to you — choose Shopping, Small, and tick Drive sales — and click Create.

    Google Analytics' Create a property page with the property name, time zone and currency highlighted
  2. 2

    Choose Web as the platform

    After the property is created, Google asks where you want to collect data from. Click Web. (If you skipped this screen, go to Admin → Data collection and modification → Data streams → Add stream → Web.)

    Start collecting data with the Web button highlighted
  3. 3

    Enter your store address

    In Website URL type your store address without https:// — for example yourstore.tokoo.my, or your own domain such as www.yourshop.com. Give the stream any name, for example your store name, and leave Enhanced measurement switched on. Then click Create and continue.

    The Set up data stream form with the website address and stream name highlighted
  4. 4

    Copy the Measurement ID

    Google now shows the Web stream details. Copy the Measurement ID — it starts with G- (for example G-ABCDE12345) — using the copy icon next to it. You can close the Google tag installation panel if it opens: Tokoo adds the tracking code for you, so you do not paste any script anywhere.

    The Web stream details with the Measurement ID highlighted
  5. 5

    Paste the Measurement ID into Tokoo

    Open your store's admin → Settings → SEO & domain and scroll to Analytics & site verification. Paste the G- ID into Google Analytics measurement ID and click Save SEO settings at the bottom of the page. Visits and shopping events start appearing in Google Analytics within a day; Reports → Realtime shows them within minutes after you open your store in another tab.

    Settings → SEO & domain, Analytics & site verification with the Google Analytics measurement ID field filled in
  6. 6

    Check that purchase is a key event

    In Google Analytics go to Admin → Data display → Events. A new property already lists purchase under Key events, with its star switched on — there is nothing to turn on yourself, and it cannot be unmarked. It is what makes your sales count as conversions in reports. Orders paid by bank transfer, TNG or PayNow are counted when the customer places the order; online-gateway orders are counted once the payment is confirmed. (The row says No stream data detected until the first sale arrives; that is normal.)

    Admin → Data display → Events with purchase listed under Key events

Part 2 — Search Console

  1. 1

    Add a property in Search Console

    Go to search.google.com/search-console and sign in with the same Google account. Click Add a website (if you already have properties, open the property list at the top left and choose Add property). In the Select property type window you will see two boxes. Use the URL prefix box on the right. Do not use Domain on the left: it can only be verified with a DNS record on the domain itself, and a store address ending in .tokoo.my belongs to Tokoo, so you cannot add DNS records to it.

    Search Console's Select property type window with the URL prefix box highlighted
  2. 2

    Type your full store address

    In the URL prefix box type your store address starting with https:// — for example https://yourstore.tokoo.my, or https://www.yourshop.com if you use your own domain — exactly as visitors see it, then click Continue.

    The URL prefix box with a store address typed in and the Continue button highlighted
  3. 3

    Pick the HTML tag method

    Google shows Verify ownership and recommends uploading an HTML file. You cannot upload files to a Tokoo store, so scroll to Other verification methods and open HTML tag.

    The Verify ownership window with the HTML tag method highlighted
  4. 4

    Copy the meta tag

    The HTML tag section shows one line starting with <meta name="google-site-verification" content="…">. Click Copy to copy the whole line. Do not click Verify yet — Google can only confirm the tag after your store has it.

    The HTML tag method showing the meta tag and the Copy button highlighted
  5. 5

    Paste it into Tokoo, save, then Verify

    Back in your store's admin → Settings → SEO & domain → Analytics & site verification, paste the whole line into Search Console verification code. Tokoo keeps just the code inside content="…" for you. Click Save SEO settings, then go back to Search Console and press Verify. You should see Ownership verified.

    Settings → SEO & domain with the Search Console verification code field holding the pasted meta tag
  6. 6

    Submit your sitemap

    In Search Console open Sitemaps in the left menu and enter sitemap.xml (your store's sitemap is at https://yourstore.tokoo.my/sitemap.xml, or https://www.yourshop.com/sitemap.xml). Google then discovers your products on its own.

If you use your own domain (for example yourshop.com) you can add it as a Domain property and verify it with a DNS record at the place you bought the domain — but the HTML tag method above works for custom domains too and needs no DNS access.

If Google says Ownership auto verified straight after you click Continue, the Google account you are signed in with already owns that site. That is fine — skip the verification steps and go straight to the sitemap.

A brand-new store is kept out of search results for its first few days (a spam check applied to every store), so Search Console may show no data at first. Google Analytics is not affected. Google's screens are redesigned from time to time, so a button may sit in a slightly different place than in these pictures — the names stay the same.

Still stuck?

Contact us and we'll help you sort it out.

Contact us