Stape
Search
Try for free

File Proxy for higher data control

Published
Sep 17, 2024

The introduction of server-side tagging in Google Tag Manager has expanded the possibilities for your server-side proxy. One of them is eliminating third-party downloads in the browser by routing them through the server-side container.

At Stape, we have a power-up that serves this goal: File Proxy. In this article, we discover its use cases, how it works, and how to set it up.

Use cases of File Proxy and its benefits

Serve files through server-side GTM using own subdomain. By proxying files through your own subdomain (the subdomain you created when setting up server-side tracking), you get higher control over file hosting than when using a third-party domain. The higher the control, the higher the security of the files.

Besides, the power-up has the feature to cache the files you need to proxy, so they won’t load whenever required.

How does File Proxy work

In Stape’s admin, you can connect the File Proxy power-up and define the file's URL as well as the desired path for proxying. 

For instance, if your tagging server's URL is ss.example.com and the path is /load.js, the file will be loaded from ss.example.com/load.js. Once set up, the server-side GTM container will process requests for specific files and deliver them as if they were coming from your own domain.

Set up File Proxy in Stape admin

Please note: To use this power-up you need to register or log in to the Stape account.

1. Go to Stape admin → Power-ups → click “Use” next to File Proxy.

File Proxy in Stape admin

2. Add the required settings:

  • Original file URL
  • sGTM path
  • Cache max age

See the example of the configuration below:

File Proxy configuration example

To sum up

Proxying files through subdomain on the server side provides higher control over files as you don’t use third-party domains for proxying.

Stape has a File Proxy power-up that serves this purpose and is extremely easy to configure. If you have any problems with the power-up, feel free to contact our support team.

Try Stape for all things server-sideright now!