Google Server-Side Tagging with PixelYourSite

Send WordPress data to a Google Tag Manager Server Container

Google Server-Side Tagging Advantages

First-Party Cookies Tracking

By hosting the server container on a subdomain of your site, you'll create a first-party tracking environment with fewer browser restrictions.

Less load on your server

The server container handles all the heavy lifting by sending data to various destinations. This reduces the load on your server and increases your site's speed. However, remember that you'll need to pay for the server hosting your container, whether it's Google Cloud or another provider.

Still in beta

Sending data to a server container - DONE!

PixelYourSite GA4 tags can send data to a server container, so the basic stuff works. Native Google Cloud containers along with third party providers like Stape.io are supported.

Deduplication - Not Done Yet!

A server container can send data to APIs like Meta CAPI, Pinterest API, and TikTok API. We're updating PixelYourSite to let you send tag events and API events via a server container. For this to work properly, we need deduplication, which will be possible once we update our event ID generation process.

Additional options for server providers - Not Done Yet!

We're planning to add support for extra features from providers like Stape.io.

How to Set Up Server-Side Tagging with PixelYourSite and Google Analytics 4

In our latest tutorial video, we guide you through the process of setting up server-side tagging for your website using Google Analytics 4 (GA4) and the PixelYourSite plugin. Here’s what you’ll learn:

  • Creating a Server Container: Follow along as we demonstrate how to set up a server container on Google Cloud. We provide clear, step-by-step instructions to ensure you get it right the first time.
  • Configuring Google Analytics: Learn how to configure a GA4 tag within the server container. This crucial step will enable your website data to be sent seamlessly from your site, through the server container, and into your GA4 property.
  • Utilizing PixelYourSite Plugin: Discover how our PixelYourSite plugin simplifies the entire process. You won’t need to configure all tags in a web container, as our plugin handles the data transfer efficiently.
  • Setting Up Custom Triggers: We show you how to create custom triggers to ensure that data is correctly processed and sent to the right GA4 property, making your tracking more accurate and reliable.
  • Testing Your Setup: We walk you through the testing phase, where you’ll learn how to verify that your setup is working perfectly by checking real-time data reports in Google Analytics.
  •  

How to Host a Server Container on Your Website with PixelYourSite

In this video, we walk you through the process of hosting a Google Tag Manager server container on your website using a subdomain. This approach enables first-party cookies, enhancing your tracking capabilities. Here’s what the video covers:

  • Introduction to Server Container Hosting: Learn why hosting a server container on your website’s subdomain is crucial for utilizing first-party cookies, which improve tracking accuracy and data privacy.

  • Setting Up the Subdomain: We demonstrate how to create a subdomain on your website (e.g., analytics.yourwebsite.com) and map it to the Google Tag Manager server container, ensuring that all data tracking is managed under your domain.

  • Using PixelYourSite Plugin: The video highlights how PixelYourSite integrates seamlessly with Google Analytics 4 (GA4) to send data from your website to the server container. This integration simplifies server-side tagging, making it accessible and efficient.

  • Detailed Configuration Steps: Follow along as we guide you through each step, from creating the subdomain to mapping it correctly and setting up the necessary DNS records. We also cover how to update your server container URL and configure the Google Cloud settings.

  • Testing and Verification: Finally, we show you how to test the setup to ensure everything is working correctly. By browsing your website and triggering events, you can verify that the data flows from your website through the server container to your GA4 property.

Google Consent Mode V2

How to enable Google Consent Mode V2