askvity

How do I add a script in Google Tag Manager?

Published in GTM Clients 2 mins read

When users typically ask about adding a "script" in Google Tag Manager (GTM), they are often referring to adding a tag (like a Custom HTML tag containing JavaScript or a tag template like Google Analytics) within a standard GTM web container to run on a website.

However, the provided reference describes a different, specific process related to server-side tagging. It details how to add a particular type of configuration element called a client within your GTM server container. This client is designed to receive and process data coming into the server container, often from a web container or other data sources.

Based on the provided reference, here are the steps for adding a Google Tag Manager: Web Container client in your server container:

Adding a Google Tag Manager: Web Container Client in Your Server Container

Adding a Google Tag Manager: Web Container client is a key step in setting up server-side tagging if you plan to send data from a web container to your server container. Follow these steps exactly as outlined in the reference:

  1. Open Google Tag Manager.
  2. In your server container, click on Clients.
  3. Click New.
  4. Select the Google Tag Manager: Web Container client type from the list.
  5. In the Client Configuration section, adjust any settings as required for your setup. (The reference is brief on specific configuration, but this area is where you might define path rules, security settings, etc.)
  6. Give the client a descriptive name (e.g., "Web Container Data Receiver") and click Save.
  7. Finally, **Publish** the workspace to make the changes live in your server container.

Note: These steps are specifically for adding a client in a server container, which handles incoming data, and is distinct from adding a tag (or script) to track data or modify a webpage in a web container.

Related Articles