# Leadpages Server-side Tracking - Setting up landing pages server side

Set up Server-side Tracking for your Leadpages landing pages in less than 20 minutes with our complete guide.

![Leadpages Server-side Tracking: set up Leadpages Server-side Tracking in under 20 minutes, beside the TAGGRS template gallery and both logos](https://taggrs.io/_astro/hero.4GOhWaMM_1JHzMV.webp)

Source: https://taggrs.io/leadpages-server-side-tracking/
Author: Ate Keurentjes, Head of Marketing · [LinkedIn](https://www.linkedin.com/in/online-marketeer-ate-keurentjes/) · [YouTube](https://www.youtube.com/@AteKeurentjes) · [Website](https://atekeurentjes.com)
Published: 2024-11-01 · Updated: 2025-08-05

---

You want to measure server side user data from your [Leadpages](https://www.leadpages.com/) landing page. In this blog, we'll take you step by step through setting up [Server-side Tracking](/server-side-tracking/) for Leadpages.

[Tracking Session #9 Leadpages Server-side Tracking](https://www.youtube.com/watch?v=KZ3JgR5_VOs)

## What is Leadpages?

Leadpages is a popular tool for landing page creation and conversion optimization. It allows users to easily create professional, responsive landing pages without the need for technical knowledge. With Leadpages, you can quickly and efficiently generate leads, acquire subscribers and increase conversion rates. Its drag-and-drop builder, extensive integrations, and customizable templates make it a versatile solution for both small businesses and large enterprises.

![Leadpages homepage with the headline Build a Landing Page That's Unforgettable and an email field to start a trial](https://taggrs.io/_astro/leadpages-home-page.CU0jFeDr_xbel1.webp)

## What are the benefits of Leadpages?

Here are 7 benefits of Leadpages:

- **Usability**: The drag-and-drop builder allows users to create professional landing pages without technical knowledge.
- **Responsive designs**: Landing pages look good on both desktop and mobile devices.
- **Fast implementation**: You can set up fully functional pages in a short time.
- **Integrations**: Leadpages integrates seamlessly with popular marketing tools such as CRM systems, email marketing software and advertising platforms.
- **A/B testing**: This feature helps optimize landing pages by testing different versions and choosing the best performing ones.
- **Conversion-oriented**: The tool provides templates and features designed to maximize conversions.
- **Analytics**: Detailed reports and analytics help measure performance and refine marketing strategies.

## What events can you measure in Leadpages?

Several events can be measured through Leadpages.

Here are 3 examples:

- Page views
- Clicking on buttons
- Form submissions.

Leadpages does not provide datalayer events when filling out a form. Therefore, it is best to work with a:

- **Thank you page trigger**
- **Element visibility**
- **Click**
- **Submit button**.

## Setting up Leadpages Server-side Tracking

Here we are going to explain to you step by step how to set up Server-side Tracking for Leadpages.

### 1. Create Google Tag Manager server

[Start TAGGRS for free](https://dashboard.taggrs.io) to begin your free account. Then create a new sGTM container in the same account as your web GTM container.

![Google Tag Manager Admin tab with the plus button next to the web container highlighted, used to create a new server container](https://taggrs.io/_astro/new-sgtm-container.CdRkw78V_Z8V9zY.webp)

Name your new server GTM container. It is useful to put Server with it so you can easily tell the difference between your web & server container later.

![Create Container screen in Google Tag Manager with the container name Leadpages | Server entered and highlighted](https://taggrs.io/_astro/name-gtm-server.BiPn4-kj_ZT6Ukp.webp)

Choose Server. Then click Create to create the container.

![Create Container screen with Server selected as target platform and the Create button highlighted in the top right](https://taggrs.io/_astro/choose-server-create.DXUT5S47_1iw3Ja.webp)

Then choose **manually provision tagging server**. This is because we are going to work with servers hosted by TAGGRS and not Google's own which makes the setup a lot easier and cheaper per month.

![Install Google Tag Manager dialog with the Manually provision tagging server option highlighted, for hosting the server container with TAGGRS](https://taggrs.io/_astro/choose-manually-server.9_lAvdFS_vJnXA.webp)

Copy the container configuration code.

![Install Google Tag Manager dialog showing the Container Config string, with the copy button highlighted](https://taggrs.io/_astro/copy-config-code.DSubNxTx_1Y0vxW.webp)

Paste the GTM container configuration code under 'Container Configuration' during your TAGGRS account setup. Also choose a subdomain on which you want to place the sGTM container. After that, click on 'Save'.

![TAGGRS Edit Container dialog with the Container Configuration code pasted in and highlighted, above the Save button](https://taggrs.io/_astro/paste-container-config.0aUFMyYy_8MbjV.webp)

Click settings and add these DNS settings to your domain.

![TAGGRS container Settings tab with the DNS Settings row highlighted: an A record for sst, marked VALIDATED](https://taggrs.io/_astro/add-dns-domain.DSKgUPjB_Zw2K6j.webp)

Now go back to your server GTM container and click Admin.

![Google Tag Manager server container with the Admin tab highlighted at the top](https://taggrs.io/_astro/back-click-admin.CB4OjQqh_wfDoH.webp)

Go to container settings.

![Google Tag Manager Admin page with Container Settings highlighted in the server container column](https://taggrs.io/_astro/go-container-settings.a3KmdNDE_9zwDP.webp)

Add the same server container URL as in the TAGGRS setup.

![GTM Container Settings for the server container, with the TAGGRS subdomain https://sst.demo1.taggrs.io entered as server container URL](https://taggrs.io/_astro/add-same-url.B4gqv4kR_Dpkxf.webp)

We have now created a container on TAGGRS and created the server container

### 3. Add the enhanced tracking script to leadpages & web client on your sGTM

Instead of the "regular" web GTM script, we are going to put the [TAGGRS enhanced tracking script](https://taggrs.io/docs/server-side-tracking/enhanced-tracking-script) here. This script ensures that the web GTM container will be loaded from our server GTM. This will allow us to measure 1 to 2% more. Any cookie banners that block full GTM scripts will now have no impact.

Now go to your web GTM container & copy your web GTM container ID

![Google Tag Manager web container workspace with the container ID GTM-KX5G96F7 highlighted in the top bar](https://taggrs.io/_astro/copy-container-id.K0W4jNiQ_w2Wzn.webp)

In your TAGGRS container, go to "Get started.

![TAGGRS container page with the Get started tab highlighted next to Settings and Access](https://taggrs.io/_astro/go-get-started.BSZqB0Mo_u2eQ4.webp)

Scroll down and click on Optimize

![TAGGRS Get started section with the Optimize tab highlighted in the menu](https://taggrs.io/_astro/scroll-click-optimize.CViVvY_B_aG3yY.webp)

Choose "Enhanced Tracking Script.

![TAGGRS Optimize tools with the Enhanced Tracking Script card highlighted, promising 1 to 2 percent extra data](https://taggrs.io/_astro/choose-enhanced-script.Cw1gyqqf_Z2jJx29.webp)

Enter your GTM web container ID

![TAGGRS Enhanced Tracking Script form with the empty GTM webcontainer ID field highlighted](https://taggrs.io/_astro/submit-webcontainer-id.CqffSsfY_Z215nhW.webp)

Scroll down and copy your HEAD code. Below is also a BODY code that you will also need.

![TAGGRS Enhanced Tracking Script head code with its Copy button highlighted, and the body code below it](https://taggrs.io/_astro/copy-head-code.Crlj2k2t_Z2focIc.webp)

Go to your Leadpage landing page and click edit.

![Leadpages Landing Pages overview with the Edit button of the Test Taggrs page highlighted](https://taggrs.io/_astro/go-leadpage-edit.DYPjRoPg_qLJVS.webp)

Go to your settings and then choose analytics.

![Leadpages editor Page Settings panel with the ANALYTICS tab highlighted](https://taggrs.io/_astro/click-analytics.DmQsMLgd_2dS7TI.webp)

Paste the head code for the Head Section Tracking Code.

![Leadpages Analytics settings with the TAGGRS head code pasted into the Head Section Tracking Code field](https://taggrs.io/_astro/paste-head-code.BKcfNDSa_hKjIj.webp)

Do the same for the BODY script from your TAGGRS container.

![Leadpages Analytics settings with the TAGGRS body code pasted into the field for right after the opening body tag](https://taggrs.io/_astro/same-for-body.-7l0j1nL_Z5z1rp.webp)

Go to your server GTM container and choose Clients.

![Google Tag Manager server container overview with Clients highlighted in the left menu](https://taggrs.io/_astro/container-choose-client.CnDfn14O_Z1WLNC6.webp)

Add a new Client.

![Clients list in the GTM server container, with only a GA4 client so far and the New button highlighted](https://taggrs.io/_astro/add-new-client-2.CD2ZKsjZ_15ccIF.webp)

Choose Web container.

![GTM Choose client type panel with Google Tag Manager: Web Container highlighted](https://taggrs.io/_astro/choose-webcontainer.BhvAuUTJ_2uR4Ia.webp)

Paste your web GTM container ID.

![GTM web container client configuration with the web container ID GTM-KX5G96F7 pasted under Allowed Container IDs](https://taggrs.io/_astro/paste-id-2.momLAuva_Z2cPUXP.webp)

Usually you can disable the Enable region-specific settings option. Click on "Save. Next, put the container live. This will cause your web GTM to load through your server GTM.

![GTM client named Web GTM with Enable region-specific settings unchecked and the Save button highlighted](https://taggrs.io/_astro/save-gtm.DkezWDg8_Z1Inicp.webp)

### Extend your Google Tag with server URL in your web GTM Container

This is how we will send data from our web GTM to our server GTM. Data collection is still done through web GTM. Through the Google Tag we can submit a server url to where we want to send this data. This data will be received by the GA4 client in the server container and the data will be displayed as event data and is thus readable/usable for further use.

Click on 'Tags' in your web GTM container

![Google Tag Manager web container overview with Tags highlighted in the left menu](https://taggrs.io/_astro/click-tags-container.Decfqzh4_1I0Jgy.webp)

Click on your Google Tag

![Tags list in the GTM web container with the Google Tag GT | G-34FZZJNNNB highlighted](https://taggrs.io/_astro/click-google-tag.CmWdL9Uh_Z8eth5.webp)

Add a server\_container\_url with your taggrs subdomain

![Google Tag configuration in GTM with server\_container\_url set to the TAGGRS subdomain https://sst.demo1.taggrs.io](https://taggrs.io/_astro/add-url-subdomain.C8keWG_p_Z1yhNa8.webp)

Now all other GA4 events in your web container, will send this event to your server container like here 'GA4 | click'.

![Tags list in the GTM web container with the GA4 | click event tag highlighted, which now sends to the server container](https://taggrs.io/_astro/event-send-server.CUjlD2C1_Z1MepYY.webp)

### Test whether events are sent from web GTM to sGTM

Go into preview mode of your server container. Check out our [comprehensive guide on Server-side Tracking testing](https://taggrs.io/docs/server-side-tracking/setup/test-configuration) if you want more information on this.

![GTM server container Clients list with the new Web - GTM-KX5G96F7 client and the Preview button highlighted](https://taggrs.io/_astro/preview-mode-container.IpGoGkLm_Z22Sx5J.webp)

At the same time, go into preview mode of your web container.

![Tag Assistant dialog to preview web container GTM-KX5G96F7 on the Leadpages test page, with the Connect button highlighted](https://taggrs.io/_astro/preview-mode-web.Dc4NKPPZ_1ApSwW.webp)

Now you see the events coming in to your server container.

![Server GTM preview showing the incoming click event highlighted, confirming events arrive from web GTM](https://taggrs.io/_astro/events-in-container.BVCjOOdS_gMCuS.webp)

### Sending data to GA4 from your server GTM container.

Now that the container is tested we are going to send the data to GA4 from the server container. Go to your server GTM container and click on 'Tags'.

Create a new GA4 tag and fill in the measurement ID. Fire this tag when 'client = GA4'. This is because we want to pass all the data we receive from our web GTM container to GA4. Since this web GTM data is received by the GA4 Client, we can say that we want to fire this sGTM GA4 tag every time the client = GA4.

![Server GTM tag GA4 | All Events with a Measurement ID and the Client = GA4 firing trigger highlighted](https://taggrs.io/_astro/fill-in-id.DKAgQD7h_1bMVHn.webp)

So now all data coming through GA4 tags will be sent from the web GTM to the server GTM and thus to GA4.

![Web GTM preview of a page\_view event with the GA4 Configuration tag marked as fired and succeeded](https://taggrs.io/_astro/data-send.bkg_Uvid_Z28fduN.webp)

## Outro

You are now fully equipped to set up Server-side Tracking for your Leadpages landing pages. This provides you with more accurate data, unhindered by limitations such as cookie banners, and helps you gain valuable insights.
