---
title: "Use Muse Code with Google Tag Manager — connector setup — AgentSky"
description: "Use Muse Code with the Google Tag Manager connector on AgentSky. Connect the correct account, run a bounded first task, and verify permissions, cost and results."
url: https://agentsky.dev/agents/muse-code/connectors/google_tag_manager
---

# Muse Code + Google Tag Manager

Muse Code runs the task; the Google Tag Manager connector supplies only the operations and resources allowed by the account you authorize. The Composer selects Muse Code, asks for Google Tag Manager access before sending, and keeps both choices in one task draft.

[Repo](https://agentsky.dev/auth/start?returnTo=%2Fagents%2Fmuse-code%2Fconnectors%2Fgoogle_tag_manager%3Fresume%3D1)

Connect Google Tag Manager using the Connectors control before sending. Authorization opens separately and your draft stays here.

How the combination works

## Muse Code plans and executes. Google Tag Manager supplies authorized app access.

Runs the task through its ACP harness in a persistent cloud workspace while the selected AgentSky model supplies reasoning and generation.

Google Tag Manager is a tool that enables you to install, store, and manage tags.

- Muse Code Owns the task loop, model calls, cloud computer, tool choices, progress and final result.
- Google Tag Manager connector Supplies the currently exposed operations for the authorized Google Tag Manager account. It does not promise every feature in the Google Tag Manager product.
- Permission boundary The connected identity, granted provider scopes, organization policy, resource sharing and the task's explicit instruction all constrain what Muse Code can do.

Setup and first task

## Connect one Google Tag Manager account and verify one known resource.

The Composer preselects Muse Code with Muse Spark 1.2. Start read-only when possible, then expand to write operations only after the account and resource boundary are clear.

01

### Open the Muse Code Composer

The Composer above carries Muse Code, Muse Spark 1.2, and Google Tag Manager. Add a precise target and expected result; the draft stays on this page during sign-in or connector authorization.

02

### Authorize the intended Google Tag Manager account

Review the Google Tag Manager account, workspace and permissions on the authorization screen. Your organization's policies or administrator approval may limit which resources the connection can access.

03

### Run and verify a bounded task

Name one Google Tag Manager resource you can already access and ask the agent to check whether a read operation is available. If it is, retrieve and summarize that resource without changing it. If it is not, ask the agent to explain the missing operation or permission. Open the same resource in Google Tag Manager and compare it with the agent's result. Check the account, resource identifier and current content before using the output for another task.

Access, cost and limits

## What to verify before scaling Muse Code + Google Tag Manager

Tasks supported by this ACP harness through AgentSky's verified platform-model path.

Establish with the first run

- Muse Code and Muse Spark 1.2 remain selected after sign-in.
- Google Tag Manager shows the intended connected account before the task is sent.
- The returned data matches one known source resource, with write actions excluded until separately authorized.

Still depends on your setup

- A catalog listing does not guarantee every Google Tag Manager website feature is available as an agent operation.
- OAuth scopes do not replace organization policy, resource sharing or a precise task instruction.
- Total task cost can include model tokens, active computer time, paid tools, connectors and the provider's own plan or quota.

Verification and recovery

## Check Google Tag Manager itself before trusting the result.

Open the same resource in Google Tag Manager and compare it with the agent's result. Check the account, resource identifier and current content before using the output for another task.

- Connection troubleshooting If Google Tag Manager access fails, check the connected identity, resource sharing and requested permissions. Reconnect an expired or revoked account in connector settings. If the connection is healthy but an operation is unavailable, changing accounts may not resolve it.
- Writes need explicit scope Name the target record and exact allowed change. A request to summarize, analyze or draft does not authorize sending, publishing or deleting.
- Re-check current state For decisions or follow-up writes, open the resource in Google Tag Manager and check its current state. A successful earlier read may already be stale.

## Muse Code + Google Tag Manager questions

## Related resources

[Muse CodeReview Muse Code's supported models, capabilities and browser Composer.](https://agentsky.dev/agents/muse-code) [Google Tag Manager connectorReview the application-specific authorization and first-task guide.](https://agentsky.dev/connectors/google_tag_manager) [Muse Code + Muse Spark 1.2Review the current default agent and model combination.](https://agentsky.dev/agents/muse-code/with/muse-spark-1.2) [PricingReview model, active-computer, tool and connector charges.](https://agentsky.dev/pricing)

## Run a bounded Google Tag Manager task with Muse Code.

[Open the Composer](https://agentsky.dev/agents/muse-code/connectors/google_tag_manager#composer)

## Frequently asked questions

### Can Muse Code use Google Tag Manager on AgentSky?

Yes. Google Tag Manager is in AgentSky's current managed connector catalog, and Muse Code can request its exposed operations after you authorize an account. The exact actions still depend on current connector operations and permissions.

### What does Muse Code do in this combination?

Muse Code runs the work loop with Muse Spark 1.2 selected by default: it interprets the task, chooses permitted operations, works in its cloud computer, and returns evidence. Google Tag Manager remains the source application and permission boundary.

### Do I need to paste a Google Tag Manager API key into the task?

No. This directory covers AgentSky's managed connector flow. Use the Connectors control and complete the provider authorization screen; never paste a password or secret into the Composer. Any provider plan or administrator approval remains separate.

### What can Muse Code do in Google Tag Manager?

The agent can use the operations that the current connector exposes for the authorized account. Availability depends on the operation, required inputs, provider scopes, resource sharing and organization policy; the catalog does not promise every Google Tag Manager feature.

### What happens if I am signed out or my balance is empty?

The shared Composer preserves the task, Muse Code, Muse Spark 1.2, and Google Tag Manager through sign-in and connector authorization. Before dispatch, AgentSky checks the account and balance; if funding is required, it shows the billing path instead of silently changing the selections.

### How much does Muse Code + Google Tag Manager cost?

There is no fixed connector-task price. AgentSky records model token usage and active cloud-computer time, plus any paid tools or connector operations. Google Tag Manager's own subscription, API quota or provider charge is separate; review both products' current limits before a large workflow.

---

Markdown copy of https://agentsky.dev/agents/muse-code/connectors/google_tag_manager. Every agentsky.dev page has one: add `.md` to its address or send `Accept: text/markdown`. Start from https://agentsky.dev/llms.txt.
