Connect Google Analytics (GA4)
Abitlink forwards every page view and every block click to your GA4 property server-side, from the Cloudflare Worker. That means:
- No extra JavaScript on your bio page. Load time stays under 50 ms.
- Ad blockers can’t strip the events — they never touch the browser.
- You get accurate click counts on each block, not just page views.
Prerequisites
Section titled “Prerequisites”- A Pro (or Early Bird) Abitlink account. Server-side analytics is Pro-only.
- A Google Analytics 4 account with at least one property. Free at analytics.google.com.
1. Create a GA4 property (skip if you already have one)
Section titled “1. Create a GA4 property (skip if you already have one)”-
Sign in to Google Analytics and click Admin (gear icon, bottom-left).
-
Under the Account column pick (or create) an account, then under Property click + Create property.
-
Name it (e.g. “Abitlink — maya”), pick your time zone (Bangkok) and currency (THB), and click Next until the property is created.
-
On the data stream screen, pick Web, enter
https://abitlink.coas the URL and a stream name, and click Create stream.
2. Get your Measurement ID
Section titled “2. Get your Measurement ID”On the data stream detail page (right after you created it, or via Admin → Data Streams), copy the Measurement ID. It looks like:
G-XXXXXXXXXX3. Get your Measurement Protocol API Secret
Section titled “3. Get your Measurement Protocol API Secret”-
Stay on the data stream detail page.
-
Scroll down and click Measurement Protocol API secrets (under Events or Additional settings depending on the UI version).
-
Click Create. Give it a nickname like “Abitlink” and hit Create again.
-
Copy the Secret value — this shows exactly once. If you miss it, delete and recreate.
4. Paste into Abitlink
Section titled “4. Paste into Abitlink”-
Log in to abitlink.co and open your dashboard.
-
Go to Settings → Analytics (or the analytics tab inside the editor).
-
Paste your Measurement ID into the GA4 ID field.
-
Paste your API Secret into the GA4 API Secret field.
-
Click Save.
5. Verify events are flowing
Section titled “5. Verify events are flowing”-
Open your bio page in a fresh incognito window:
abitlink.co/yourname. -
Click any block on the page.
-
In GA4, go to Reports → Realtime. Within 10–30 seconds you should see:
- A page_view event (from your visit).
- A click event with the block title as a parameter (from your click).
Troubleshooting
Section titled “Troubleshooting”Realtime shows nothing after two minutes.
Double-check the Measurement ID has no typos (common mistake: 0 vs O). Remove any
leading/trailing whitespace from both the ID and API Secret — paste in a plain editor
first to spot it.
I see page_view but no click events. Click events only fire for the block types with interactive elements (link, product, LINE, Shopee, PromptPay, social icons, etc.). Decorative blocks like text notes and section headers don’t emit click events by design.
I’m using Google Ads and want conversions. GA4 events can be marked as conversions in Admin → Events → toggle Mark as conversion. Abitlink doesn’t need extra setup for this — once the event arrives in GA4, mark it there.
I want to test with a throwaway property first. Create a second GA4 property, paste those credentials into Abitlink, and swap back when you’re happy. Abitlink only stores one GA4 property per bio at a time.