On this page
Connect an ad platform, web-analytics, search-console, email or page account so its performance data syncs into Marketing performance ("Hiệu quả Marketing") on a schedule.
Who can do this: an owner or admin.
Before you start#
- You can create or grant a key on the provider's side.
- The organization has at least one brand; a marketing connection is refused without one.
- Google Analytics 4, Search Console and Sheets share one service account. Create it in Google Cloud Console and download its JSON key. Invite its email as Viewer on the GA4 property, Restricted on the Search Console property, and Viewer on a spreadsheet.
Steps#
- On the provider's side create the credential in the matrix: a service account for GA4 and Search Console, a long-lived or OAuth refresh token plus the account id for the others.
- Open Connectors ("Kết nối"), select Add connector ("Thêm kết nối") and pick the source under Marketing.
- Enter a display label and choose the brand.
- Paste the credential: Service Account JSON plus Property ID or Site URL, or the token plus the account id. It is stored encrypted and never shown again.
- Select Test; a green result means the credential reads.
- Set the sync frequency and select Create. Each sync re-pulls the matrix's trailing window, as platforms restate recent days.
- Check the card shows a last-sync time, and Marketing performance shows the brand's views. TikTok Ads and Shopee Ads live verification: status.
Facebook Page and Instagram#
The plugin ships off; enable it for the org before the source appears under Marketing. Paste a Page access token (Graph API v27.0) carrying pages_read_engagement, read_insights, instagram_basic and instagram_manage_insights, and the numeric Page ID. Leave Instagram Account ID empty to use the account linked to the Page. The Page ID is plain connection config, not a secret; the Instagram Account ID is stored encrypted with the token. Each Page is its own connection, so a brand can connect several Pages.
- Page daily: views, unique viewers, page visits, post engagements and followers go to
social_pageasfacebook; Instagram reach, views and interactions asinstagram. Days follow Meta's reporting day (Pacific), not ICT. - Posts and Reels from the last 30 days refresh each sync as lifetime rows keyed on the ICT publish day. Instagram refreshes the 50 newest.
- Link clicks stay empty at page level: Meta has no current page-level link-click metric.
- If Instagram is refused (missing permission), Facebook still syncs and the worker logs the Instagram error.
If it fails#
| Symptom | Cause | Fix |
|---|---|---|
| Test fails on GA4 or Search Console | Service account not invited, or Site URL mismatch | Invite the email, or match sc- versus https:/. |
| A currency error names a non-VND account | The ads account runs another currency | Only VND accounts sync; there is no exchange-rate path. |
| Meta reports a permanent error | The system-user token was revoked | Generate a new token and use Re-authorize, never retype it. |
| TikTok Ads shows a dash for conversion value | The platform reports a count, not a value | Expected; ROAS stays blank for that connector. |
| Test is green but no spend arrives | Wrong account id, or an account outside the key's scope | Check the id format: act_ prefix for Meta, 10 digits for Google Ads. |