Google Analytics (GA) allows you to perform detailed data analysis of customer behavior in your store and store traffic. With the launch of Google Analytics 4, it is possible to track cross-domain websites more accurately and identify website visitors, which helps you to perform subsequent trial lead conversion analysis, analyze unfamiliar customers and operate CRM management.
Due to Google's discontinuation of Universal Analytics on July 1, 2023, based on SHOPLINE's internal data transmission and reception recommendations, it is advised to avoid using Universal Analytics and GA4 simultaneously. If you need to continue observing data with Universal Analytics, please embed it through Google Tag Manager (GTM).
⚠️ Note: The Basic plan does not support the "Google Analytics 4 Event Tracker" feature.
This article will cover the following:
- Steps to set up Google Analytics (GA)
- Recommended settings to be completed once connected and notes
- Overview of the differences between Universal Analytics and GA4P
1. Steps to set up Google Analytics (GA)
Step 1. Create a GA account
If you haven't created a GA account using your Gmail, please enter Google Analytics to log in to your Gmail account and click Start measuring to proceed.
Step 2. Set up an account
i. Account creation
Account name: In the "Account details" section, enter a recognizable name in the "Account name" blank or enter the business/ personal name. And then click on Next.
ii. Property creation
Enter your online store name under "Property name" and confirm the reporting time zone. Upon completion, click the Next button.
iii. Business details
Select your industry category and check the business size according to the operational status of your business. After completion, click Next.
iv. Business objectives
Select your business objective(s). Note that there can be multiple choices. Once you've confirmed the objective(s), click Create to continue.
Accept the Google Analytics Terms of Service Agreement
- Set the country/ region to your location.
- Upon confirming the terms of service and additional terms, check the box "I also accept the Data Processing Terms as required by the GDPR." and "I accept the "Measurement Controller-Controller Data Protection Terms for the data I share with Google."
- Click I Accept to create the account.
v. Data collection
Choose Web to set up data collection.
Enter your storefront's URL (Website URL) and Stream name, then click Create stream upon completion.
On the right side of the screen, you will see "Web stream details." Please copy the "MEASUREMENT ID" tracking code.
⚠️ Note: The tracking code of the new GA4 starts with "G," not "UA."
*Tip: What's the difference between stream ID and
- The stream ID is the unique identifier for the data stream
from which user activity originates.
You can add stream IDs to your events to send data
to certain data streams. Please refer to this article for more reference.
- A Measurement ID is an identifier (e.g., G-12345)
for a web data stream.
You can use the Measurement ID to send data
to a specific web data stream.
Please refer to this article for more reference.
Upon copying the Measurement ID, return to Admin > [Marketing & Tracker] > [Tracker Settings] and click Google Analytics 4.
Fill in the copied Measurement ID in the blank and click Save to complete the setup.
After the GA4 tracking code has been stored, a green tick will appear in the GA4 box on the "Tracker Settings" page.
To edit or delete the GA4 tracking code, please scroll down to the bottom of the "Tracking Settings" page and click Edit or the bin icon.
*Note: Google Analytics starts collecting data after the setup is completed, and the data will not be updated immediately. It is conservatively estimated that it will take about 24-48 hours for the data to be shown in Google Analytics.
vi. Setup completed
After completing the setup, click Next on the "Start collecting data" page and it will show that you have successfully created your account and property. Note that data collection may take up to 48 hours to get started.
2. Recommended settings to be completed once connected and notes
i. Proceed to your GA4 account to confirm the following related settings are complete:
- Property Settings: Click the Property Settings tab, and check whether the "Industry category," "Reporting time zone," and "Currency displayed as" options are correct.
- Data Settings: Click the Data Settings > Data Collection tab, and enable "Google signals data collection."
- Data Retention: Click [Data Settings] > [Data Retention] tab, and adjust the "Event data retention" to "14 months".
- Enhanced measurement: Click the Data Streams tab, click into your data stream and enter "Web stream details." Please make sure to switch on the "Enhanced Measurement" toggle in the "Events" section.
ii. Set up a list of unwanted referrals
Step 1. Click the Data Streams tab, and click into your data stream to open the "Web stream details" page.
Step 2. In the "Google tag" section, click Configure tag settings.
Step 3. First click the Show all button on the right of "Settings," then click List unwanted referrals.
Step 4. Add the URLs you want to exclude in the "Domain" field.
The list of URLs to exclude is attached below:
a. If there is an integrated store pickup service, please exclude the following URLs according to the service you use:
- 7-11: emap.pcsc.com.tw
- FamilyMart: map.com.tw
b. If you use an integrated payment service provider, please exclude the following URLs according to the services you use:
- Taishin Bank: taishinbank.com.tw、prod-redirect.tappaysdk.com
- Bank SinoPac: acs.nccc.com.tw、epos.sinopac.com、prod-redirect.tappaysdk.com
- LINE Pay: web-pay.line.me
- EcPay: payment.ecpay.com.tw
- Stripe: hooks.stripe.com
- Razer Merchant Services: merchant.razer.com
- JKOPay: onlinepay.jkopay.com
c. If the store is integrated into SHOPLINE Payments, to ensure the security of customer information, each bank's payment service provider URL will be directly based on the credit card bank used by the customer. Please exclude the following URLs and the store's free default URL:
- Cathay United Bank: 3ds.cathaybk.com.tw
- Taipei Fubon Bank: emv3ds-acs.taipeifubon.com.tw
- CTBC Bank: family.ctbcbank.com
- Citibank: secureauthentication.citibank.com 、secureauthentication2.citibank.com
- National Credit Card Center (Taishin, SinoPac, E.SUN): emv3ds-acs.nccc.com.tw
- Financial Information System Corporation: acs3d.fisc.com.tw
- Visa card verification: secure5.arcot.tw
- Proceed to SHOPLINE Admin > [Settings] > [Domain Settings] to get your free domain.
d. If your store has connected to LINE quick login, customers will go through the LINE account authorization page. Please exclude the following URLs:
- LINE Login: access.line.me
iii. If you haven't created a Google Analytics account, you can only apply for a GA4 account from now on (the page will automatically redirect).
iv. Universal Analytics will no longer process new data in standard properties beginning July 1, 2023. Universal Analytics reports will continue to be available for viewing for a period after July 1, 2023. However, new data will only flow to Google Analytics 4 resources. Please refer to this article for details.
*Note: Please disconnect your Universal Analytics and retain only GA4 to prevent data loss or duplicate event tracking.
v. Please set up GA4 as the primary configuration and avoid simultaneous use of Universal Analytics and GA4 in the SHOPLINE Admin to prevent data loss or duplicate event tracking.
3. Overview of the differences between Universal Analytics and GA4P
|Follow the web page information and user behavior.
|Integrate tracking web pages and apps and user behavior
|Focus on the session (measuring unit: users | session | Views)
|Focus on users and behaviors (session).
*Note: Many commonly used reports and measuring units need to set additional sessions manually to complete the tracking
|The measuring unit is mainly based on page view.
|Mainly page views/ screen views*Note: Enhanced configuration
|Interactive tracking unit
*Note: Default reports are not subject to sampling. Ad-hoc queries of your data are subject to the following general thresholds for sampling:
Analytics Standard: 500k sessions at the property level for the date range you are using
Analytics 360: 100M sessions at the view level for the date range you are using
|None, but the queries are stricter
*Note: Because the measurement method is different, the data of the new version of GA will be relatively small.
|14 months by default
（You can choose 14, 26, 38, or 50 months）and set it "Do not automatically expire."
|Data retention period
|2 months by default, you can be set to a maximum of 14 months. The two-month retention period is always applied to age, gender, and interest data regardless of your settings. You can use BigQuery to save indefinitely.
|Gtag.js / UA ID（Ending with the serial number of the property）
|Gtag.js / G ID（No more serial number）
*Note: In the past, you could use Tag Assistant to find the website's tracking code and copy it directly on the GA background to find resources, but it's not applicable on GA4.
|Change to new features: audience (automatic screening of recent active users and non-shoppers)
|Event category/ Event action/ Campaign level/ Event value
|Replaced to fixed event structures, there are only two levels: Event name/ Event parameters
|A new feature, the system will add some events by itself:
|Yes, 20 metrics for free. If the metric is set, you cannot delete it but only replace it.
|No. The metrics are replaced by events. There are quantities limits (50 text parameters and 50 numeric parameters, but numbers have been changing)
|Yes, 20 dimensions for free. If the metric is set, you cannot delete it but only replace it.
|Removed and replaced by user properties
|Yes, but the feature is yet to be optimized
|Not by default, but can be set up manually
|Only available on GA360
|Open for all
|Only available on GA360
|Segment overlap report
|Open for all
|Path analysis report
|Advanced: offer backward pathing report
Export BigQuery every day automatically
New GA4P Trigger point
Browse product list
view_item_list: When entering the product list page for browsing
Click product list
select_item: When clicking on the button to view the product list on the homepage
view_item: When entering a single product page for browsing
Add product to wishlist
add_to_wishlist: When adding a product to the wishlist (click the "heart" icon)
Add to cart
add_to_cart: When adding a product to the cart (click the "cart" icon)
Browse shopping cart page
view_cart: When loading the cart page
begin_checkout: When moving from the shopping cart page to the checkout page
Add delivery details when checkout
add_shipping_info: When adding a delivery address on the checkout page
Add payment details when checkout
add_payment_info: When adding a payment option on the checkout page
purchase: When the checkout is successful, and the customer enters the order confirmation page
search: When entering the product name in the "Search field" and click to search for the product
lead/complete_registration: When clicking "Register" and going to the registration completion page
Remove a product from the cart
remove_from_cart: When removing a product from the shopping cart
Enhanced event measurement
*Note: The events below will be triggered by Google automatically