# How to edit a GTM service: variables and webhook

> Install the web container on your site, change container variables and set up the webhook of a Wascer Store GTM service.

Each GTM service created by an integration has its own page. There you get the install code, change the containers' variables and, for some integrations, set up the webhook.

## Open the service

1. In the sidebar, click **Wascer Store**, pick the **Integration** category and click **Open** on the integration.
2. In the **GTM Services** list, click the service row.

The **GTM Service** page shows the status (**Active**, **Provisioning**, **Error**, **Suspended**, **Deleting** or **Deleted**) and refreshes on its own.

## Install the web container on your site

1. On the **WEB** card, click **Install code**.
2. In the **Install Google Tag Manager** window, copy both snippets with **Copy**.
3. Paste the snippets on every page of your site: the first one as high as possible in the head section, the second one right after the opening body tag.

The **SERVER** card shows the server container ID and a link to the GTM server address. Both cards have a button to copy the ID.

## Change variables

You can only edit variables while the service is **Active**.

1. Under **Variables**, open the container's tab. Some integrations have a single tab, and the variables apply to all of the service's containers.
2. Hover over the variable and click the pencil icon.
3. Type the new value and press Enter to save. Esc cancels.

A message confirms when the variable is updated. If you see **Timeout syncing**, try again. A variable with no value shows as **empty**.

## Set up the webhook

Some integrations have a **Webhook** tab next to the variables.

1. Open the **Webhook** tab. If the webhook is already set up, click **Edit**.
2. Fill in **Webhook URL** and **External ID**, the user's identifier on the external platform. It's sent in the events delivered to the webhook.
3. If needed, fill in **Custom headers (optional)** in JSON. When editing, leave the field empty to keep the current headers.
4. Click **Save**.

Example headers:

```json
{"x-api-key": "your-key"}
```

The dashboard only saves when the URL and ID are filled in and the headers are valid JSON.

## Delete the service

When the service is **Active** or in **Error**, click **Delete** and confirm. This can't be undone and removes all of the service's containers.

Source: https://wascer.com/helpdesk/wascer-store/editar-servico-gtm
