Installation Guide
Follow these steps to set up server-side GA4 tracking on your WordPress + WooCommerce website.
๐ Free โ GA4 Server-Side Tracking
1
Create a separate GA4 property for S2S
Keep your existing tracking intact โ add a dedicated S2S property
We create a new, separate GA4 property for server tracking. Your existing property and all historical data remain untouched.
๐ Create a new GA4 property
1
Go to Google Analytics and sign in.
2
Click the gear icon (Admin) in the bottom left.
3
Under Account, click Create Property.
4
Name it [Website name] โ S2S (e.g. "TJDA - S2S").
5
Select your country, currency and timezone. Click Next โ Create.
6
Under Data collection, choose Web โ enter your domain โ click Create stream.
7
Note the Measurement ID (G-XXXXXXXXXX) โ you'll need it in step 4.
โ New GA4 S2S property created
2
Duplicate GTM web tracking for the new property
Send web events to both your existing and new S2S property
Do not modify your existing GA4 tag. Duplicate it so both properties receive web data.
๐ Duplicate your GA4 tag in GTM
1
Open Google Tag Manager and select your container.
2
Go to Tags and find your existing GA4 Configuration tag.
3
Click the three dots โ Copy.
4
Open the copied tag and replace the Measurement ID with your new S2S property ID (G-XXXXXXXXXX).
5
Rename it to GA4 โ [Website name] S2S so it's easy to recognise.
6
Also duplicate all GA4 Event tags (purchase, form events) and update them to use the new Configuration tag.
7
Click Submit to publish the changes.
After publishing, check GA4 DebugView on the new property to confirm events are coming in from the browser.
โ GTM tracking duplicated for S2S property
3
Install the S2S Conversions plugin
Free version available on WordPress.org
๐ Install via WordPress Admin
1
Go to WordPress Admin โ Plugins โ Add New.
2
Search for "S2S Conversions".
3
Click Install Now โ Activate.
4
Go to Settings โ S2S Conversions to configure the plugin.
โ Plugin installed and activated
4
Get your GA4 API Secret
Required for the Measurement Protocol
๐ Create an API Secret in GA4
1
Open your new S2S GA4 property โ Admin โ Data Streams.
2
Click on your web stream.
3
Scroll down to Measurement Protocol API Secrets โ click Create.
4
Give it a name (e.g. "S2S Plugin") and copy the secret value.
5
In WordPress: go to Settings โ S2S Conversions โ enter the Measurement ID and API Secret โ Save.
โ GA4 API Secret configured
5
Create GA4 Custom Definitions
Make server tracking parameters visible in your reports
๐ Add custom dimensions in GA4
1
Go to your S2S GA4 property โ Admin โ Data display โ Custom definitions.
2
Click Create custom dimension and add the following:
| Dimension name | Scope | Event parameter |
|---|---|---|
| csc_source | Event | csc_source |
| csc_consent | Event | csc_consent |
| form_name | Event | form_name |
| form_id | Event | form_id |
3
Save each dimension. Note: dimensions are only applied to new data from this point onwards.
Use
csc_source = server in Looker Studio to filter and show only server tracking events โ this is how you separate S2S from browser tracking.
โ Custom definitions created
6
Create GA4 Explorations
Build custom reports for purchases and form submissions
๐ Purchase exploration
1
Go to Explore โ Blank exploration.
2
Name it S2S Purchases.
3
Add Dimensions: Date, csc_source, csc_consent, Transaction ID.
4
Add Metrics: Transactions, Purchase revenue.
5
Add Filter: Event name =
purchase.๐ Form submission exploration
1
Create a new blank exploration named S2S Form Leads.
2
Add Dimensions: Date, form_name, form_id, csc_source, csc_consent.
3
Add Metrics: Event count.
4
Add Filter: Event name =
generate_lead.โ GA4 Explorations ready
7
Looker Studio dashboard
Copy the template and connect your own data source
๐ Copy the S2S dashboard template
2
Click the copy icon (top right) โ Make a copy.
3
Under New Data Source, click Create data source โ choose Google Analytics.
4
Select your S2S GA4 property โ click Connect โ Add to report.
5
Click Copy report โ the dashboard is now in your own Looker Studio with your live data.
The dashboard includes a
csc_source = server filter so you only see server tracking events โ no duplicate browser events.
โ Looker Studio dashboard ready โ GA4 setup complete! ๐
Need help?
Contact us at thijs.joosten@tj-da.com and we'll help you get set up.