Skip to main content

Google Analytics

Gerai Digital linked to Google Analytics

Connect a store to your own Google Analytics to see how many people visit it, which pages they view and where they come from. Each store connects its own, so different stores can report to different Google Analytics properties.

You only need your measurement ID. Gerai Digital adds Google's tag to your store for you.

What you need​

A Google Analytics property with a web data stream for your store's address, for example https://yourstore.gerai.digital. Don't have one yet? Sign in to Google Analytics and follow its steps to create an account, a property and a web stream.

Find your measurement ID​

  1. Sign in to Google Analytics and pick your store's property at the top.

  2. Choose Admin at the bottom of the menu.

    The Google Analytics menu, with Admin at the bottom

  3. Under Data collection and modification, choose Data streams, then your store's web stream.

    The Data streams list, with the store's web stream and its address

  4. Copy the Measurement ID, which starts with G-. Use the copy icon next to it.

    Web stream details: the Measurement ID on the right, with a copy icon

You don't need Google's code

Google also offers a code snippet (the Google tag) to paste into your website. Skip it. Gerai Digital writes it into your store for you, using your measurement ID.

Connect it to your store​

  1. In your Gerai Digital dashboard, open the store and choose the Settings tab.
  2. Choose Analytics & Ads.
  3. Paste your measurement ID into Measurement ID and choose Save.

The store's Analytics settings: a cookie warning, the Measurement ID field and Save

Cookies and your shoppers​

Google Analytics tracks your shoppers with cookies

Once connected, Google Analytics sets cookies in your shoppers' browsers to track their visits. Your store asks shoppers to Accept or Decline cookies at the bottom of the page, in English or Bahasa Melayu. Google Analytics only starts after they accept, so shoppers who decline aren't counted.

You are responsible for telling your shoppers how you use their data. We recommend mentioning Google Analytics on your store's own privacy page.

Check it's working​

Visit your store, then in Google Analytics open Reports › Realtime. Your visit shows up within a minute or so.

The Google Analytics Home page can say No data received from your website yet for up to 48 hours after you connect. That's normal.

Google Analytics Home before any visits: No data received from your website yet

Visits from the template editor's preview aren't counted, so editing your store doesn't add to your numbers.

Shopping events​

Besides page views, Gerai Digital tells Google Analytics when a shopper:

What the shopper doesGoogle Analytics event
Opens a productview_item
Adds to cartadd_to_cart
Starts checkoutbegin_checkout
Places an orderpurchase, with the order total in ringgit

An order counts as a purchase once it's paid. Orders paid by bank transfer or cash on delivery count when they're placed. Each order counts once, even if the shopper opens its page again.

You don't need to set anything up. In Google Analytics, open Reports › Monetization to see your revenue, purchases and best-selling products. Google marks purchase as a key event on its own. The reports can take 24 to 48 hours to show new events; Reports › Realtime shows them within a minute.

See reports in Gerai Digital​

You can also see this store's Google Analytics in its Analytics tab in Gerai Digital, next to Settings. It shows people on your store in the last 30 minutes, users, sessions, page views and engagement time against the period before, users per day, and your top pages, traffic sources, countries and devices, for the last 7, 28 or 90 days.

The store's Analytics tab: people on the store now, totals, users per day and top lists

To turn it on, give Gerai Digital permission to read your Google Analytics property, then tell us which property it is.

Give Gerai Digital read access​

  1. In Gerai Digital, open the store, choose Settings › Analytics & Ads, and under Show reports in Gerai Digital, choose Copy next to the email.

    Show reports in Gerai Digital: Gerai Digital's email with a Copy button, the property ID field and Save and check

  2. In Google Analytics, choose Admin, then Property access management under Property.

    Google Analytics Admin, with Property access management under Property

  3. Choose the blue + at the top right, then Add users.

  4. Paste the email into Email addresses, pick the Viewer role and choose Add. You can untick Notify new users by email, since nobody reads that inbox.

    Add roles and data restrictions: Gerai Digital's email pasted, with the Viewer role picked

  5. Gerai Digital's email now shows in the list with the Viewer role.

    Property access management: Gerai Digital's email listed as Viewer

Viewer can only read reports. Gerai Digital can't change your Google Analytics.

Add your property ID​

  1. In Google Analytics, still in Admin, open Property details and copy the Property ID. It's only numbers, such as 123456789, and isn't the G- measurement ID.

  2. Back in Gerai Digital, paste it into the property ID field under Show reports in Gerai Digital and choose Save and check.

  3. When you see Reports connected, open the store's Analytics tab.

    The Reports connected message

If the check says Gerai Digital can't read the property, make sure you added the email to the same property whose ID you pasted, with the Viewer role.

When the numbers show up​

People on your store show up within a minute or two. The other numbers update every hour. Choose Refresh at the top of the tab to get the latest now. Google can take 24 to 48 hours to finish counting a day. Right after you connect, the totals, chart and lists can stay at zero for a while, even though tracking works.

To stop Gerai Digital reading your property, clear the property ID and choose Save and check, or remove the email in Property access management.

Stop tracking​

Go back to Settings › Analytics & Ads, clear Measurement ID and choose Save. Google's tag is removed from your store.