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
-
Sign in to Google Analytics and pick your store's property at the top.
-
Choose Admin at the bottom of the menu.

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

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

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
- In your Gerai Digital dashboard, open the store and choose the Settings tab.
- Choose Analytics & Ads.
- Paste your measurement ID into Measurement ID and choose Save.

Cookies and your shoppers
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.

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 does | Google Analytics event |
|---|---|
| Opens a product | view_item |
| Adds to cart | add_to_cart |
| Starts checkout | begin_checkout |
| Places an order | purchase, 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.

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
-
In Gerai Digital, open the store, choose Settings › Analytics & Ads, and under Show reports in Gerai Digital, choose Copy next to the email.

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

-
Choose the blue + at the top right, then Add users.
-
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.

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

Viewer can only read reports. Gerai Digital can't change your Google Analytics.
Add your property ID
-
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.
-
Back in Gerai Digital, paste it into the property ID field under Show reports in Gerai Digital and choose Save and check.
-
When you see Reports connected, open the store's Analytics tab.
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.