Analytics GA4Google AnalyticsTracking

The Complete Guide to Google Analytics 4 Setup for Malaysian Businesses

JLK
Jeremy Lee K.L.
Google Analytics 4 dashboard with data visualization charts showing metrics and insights

Google Analytics 4 (GA4) is the latest version of Google’s analytics platform, and it’s essential for any business that wants to understand their online performance. In this guide, I’ll walk you through the complete setup process specifically tailored for Malaysian businesses.

Why GA4 Matters

Unlike the previous Universal Analytics, GA4 uses an event-based data model that provides more flexibility and better cross-platform tracking. This means you can track user interactions across your website and mobile apps in a single property.

Key benefits include:

  • Better cross-device tracking
  • Machine learning-powered insights
  • Enhanced privacy controls
  • Free BigQuery integration

Step 1: Creating Your GA4 Property

  1. Go to Google Analytics and sign in
  2. Click “Admin” (gear icon) in the bottom left
  3. In the Account column, select “Create Account” or use an existing one
  4. In the Property column, click “Create Property”
  5. Enter your property name (usually your business name)
  6. Select “Malaysia” as your reporting time zone
  7. Choose “Malaysian Ringgit (MYR)” as your currency
  8. Click “Next” and complete the business information

Step 2: Setting Up Data Streams

For websites:

  1. Choose “Web” as your platform
  2. Enter your website URL
  3. Give your stream a name
  4. Click “Create stream”

You’ll receive a Measurement ID (starts with “G-”). This is what you’ll use to connect your website to GA4.

Step 3: Installing the Tracking Code

If you’re using Google Tag Manager:

  1. Create a new tag
  2. Choose “Google Analytics: GA4 Configuration”
  3. Enter your Measurement ID
  4. Set the trigger to “All Pages”
  5. Save and publish

Option B: Direct Installation

Add this code to the <head> section of every page:

<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());
  gtag('config', 'G-XXXXXXXXXX');
</script>

Replace G-XXXXXXXXXX with your actual Measurement ID.

Step 4: Configuring Enhanced Measurement

GA4 comes with enhanced measurement that automatically tracks:

  • Page views
  • Scrolls
  • Outbound clicks
  • Site search
  • Video engagement
  • File downloads

To enable:

  1. Go to Admin > Data Streams
  2. Click your web stream
  3. Toggle on “Enhanced measurement”
  4. Click the gear icon to customize which events to track

Step 5: Setting Up Conversion Events

In GA4, goals are replaced by “conversion events.” Here’s how to set them up:

  1. Go to Admin > Events
  2. Toggle “Mark as conversion” for important events like:
    • purchase (for e-commerce)
    • generate_lead (for lead generation)
    • contact (for contact form submissions)

Step 6: Configuring E-commerce Tracking

For e-commerce businesses, proper tracking is crucial. You’ll need to send specific events:

  • view_item - When a product is viewed
  • add_to_cart - When items are added to cart
  • begin_checkout - When checkout starts
  • purchase - When a purchase is completed

If you’re using Shopify, WooCommerce, or other platforms, there are plugins available to automate this.

Common Mistakes to Avoid

  1. Not filtering internal traffic: Exclude your own office IP addresses
  2. Ignoring data retention settings: Configure how long you want to keep data
  3. Not setting up user properties: Track important attributes like customer type
  4. Forgetting cross-domain tracking: If you have multiple domains

Next Steps

Once your basic setup is complete:

  1. Create custom dashboards for your KPIs
  2. Set up automated reports
  3. Link Google Ads for better attribution
  4. Connect BigQuery for advanced analysis

Need help with your GA4 setup? Contact us for professional assistance.


This guide was last updated in February 2025. GA4 features and interface may change over time.