GA4 Data Import: Complete Guide for Morocco
GA4 data import allows combining web, CRM and offline conversion data for a 360° view of your performance. Step-by-step guide with Consent Mode v2, ad costs in MAD and use cases for the Moroccan market.

Ayoub Agouzil
Founder & Digital Expert

Why Import Data into GA4?#
GA4 collects web and app browsing data by default. But for a Moroccan business investing in multiple channels (Google Ads, Meta Ads, Snapchat, SEO), native GA4 data isn't enough. It's missing non-Google advertising costs, CRM revenue, offline conversions (phone calls, store visits), and product data (margins, categories).
According to official Google Analytics documentation, GA4 supports four import types:
| Import Type | What It Adds | Concrete Example in Morocco |
|---|---|---|
| Cost data | Complete multi-channel attribution | Meta Ads, Snapchat Ads costs in MAD |
| User data | Visitor profile enrichment | CRM segment (prospect/client/VIP), LTV in MAD |
| Product data | Enriched catalog for e-commerce | Margins, categories, suppliers |
| Event data | Offline conversions and enrichment | Store sales (Casablanca, Marrakech), CMI calls |
Step-by-Step Configuration#
Prerequisites#
- Editor or Admin access to the GA4 property
- Data in CSV format (UTF-8 encoding)
- Consistent identifiers between your systems (user_id, client_id)
- Consent Mode v2 properly implemented (mandatory since March 2024 for remarketing)
Step 1: Access Data Import#
In GA4, go to Admin > Data Import. Click Create data source and choose your import type.
Step 2: Configure the Data Source#
Give your source a descriptive name (e.g., "Meta Ads Costs MAD - Monthly"). For cost imports, GA4 expects these columns:
| Required Column | Format | Example |
|---|---|---|
| date | YYYYMMDD | 20260209 |
| source | Text | |
| medium | Text | cpc |
| campaign | Text | winter-sale-morocco |
| cost | Decimal | 3500.00 |
Step 3: Map Fields#
Associate each CSV column to the corresponding GA4 dimension or metric. Mapping is critical — an error here corrupts all your reports. For costs, the currency must match your GA4 property setting (MAD for Morocco).
Step 4: Upload and Validate#
Upload your CSV file. GA4 processes the import within minutes to hours. Then verify in Acquisition > Traffic acquisition reports that data appears correctly.
Step 5: Automate#
Use the Google Analytics Admin API for programmatic imports, or tools like Supermetrics, Funnel.io or Stitch for no-code automation.
Use Cases for the Moroccan Market#
Multi-Channel Ad Cost Import#
A Moroccan advertiser investing 20,000 MAD/month split between Google Ads (8,000 MAD), Meta Ads (7,000 MAD) and Snapchat Ads (5,000 MAD) only sees Google costs in GA4 by default. By importing Meta and Snapchat costs, they can compare real CPA by channel and reallocate budget to the best performer.
CRM Data Import#
For service websites (agencies, firms, consultants), the web conversion (form submission) is just the beginning. Real revenue comes after: contract signing, payment. By importing CRM data:
- Associate each web lead to its actual revenue in MAD
- Calculate true ROAS (not just cost per lead, but cost per signed client)
- Identify channels generating the most qualified leads
Offline Conversion Import#
For physical businesses in Morocco (shops in Casablanca, restaurants in Marrakech, hotels in Agadir), a significant share of conversions happens offline.
Consent Mode v2 and Compliance#
Since March 2024, Consent Mode v2 is mandatory for remarketing features. Imported data doesn't depend on cookie consent since it comes from your own systems.
| Parameter | Controls | GA4 Impact |
|---|---|---|
| analytics_storage | Analytics cookies | Data collected or modeled |
| ad_storage | Ad cookies | Remarketing enabled/disabled |
| ad_user_data | User data sent to Google | Enhanced Conversions |
To optimize your SEO strategy in parallel, enriched GA4 data helps identify your best-converting pages and prioritize content efforts.
Best Practices and Common Mistakes#
Best Practices#
- Consistent identifiers — Use the same user_id in your CRM, website, and GA4
- Regular imports — Daily for ad costs, weekly for CRM, monthly for products
- Systematic validation — After each import, verify a sample in GA4 reports
- Single currency — Use MAD everywhere to avoid erroneous conversions
Common Mistakes#
- Wrong CSV encoding — Using Latin-1 instead of UTF-8 corrupts Arabic characters and French accents
- Wrong date format — GA4 requires YYYYMMDD, not DD/MM/YYYY (common format in Morocco)
- Undetected duplicates — Importing the same file twice doubles costs in reports
- Ignoring time zones — Morocco is GMT+1, verify your GA4 property is set correctly
FAQ#
What's the data import limit in GA4?#
GA4 allows 50 data sources per property and accepts CSV files up to 1 GB per upload. For API imports, there's no explicit daily limit, but Google recommends no more than 10 uploads per day per source to avoid processing errors.
Is imported data retroactive?#
Yes for cost and user data — they apply to dates specified in the CSV. No for event data — they don't modify previously collected events but enrich matching future events. Concretely, importing last month's Meta Ads costs will show them in historical reports.
How do I automate imports without a developer?#
Use Supermetrics (from €99/month) to connect ad sources directly to GA4. Free alternative: a Google Apps Script that reads a manually updated Google Sheet and pushes data via the API. For HubSpot or Salesforce CRMs, native connectors exist.
Does data import work with Consent Mode v2?#
Yes. Imported data doesn't depend on cookie consent since it comes from your own systems (CRM, accounting). When 30-40% of users refuse cookies, your imported first-party data fills the gap without relying on browser consent.
Conclusion#
GA4 data import is an underused lever by Moroccan businesses. By combining web data, ad costs in MAD, CRM revenue, and offline conversions, you get a 360° view that transforms your marketing decisions. The key: consistent identifiers, regular imports, and systematic validation.
If you're looking to optimize your tracking and data strategy, explore our online advertising services in Morocco.

Ayoub Agouzil
Founder & Digital Expert
Founder of Web Success and digital transformation expert with 5+ years of experience helping Moroccan businesses succeed online.


