# 연동 방법

SDK초기화 이후, 아래와 같이 `setGoogleTagManagerContainerId` 함수를 사용하여, Google Tag Manager에서 발급받은 `Container Id를 설정`하는 것으로 통합 작업은 완료가 됩니다.&#x20;

{% tabs %}
{% tab title="Android" %}

```java
DOT.setGoogleTagManagerContainerId("YOUR_GTM_CONTAINER_ID"); // GoogleTagManager 연동
```

{% endtab %}

{% tab title="IOS(swift)" %}

```swift
DOT.setGoogleTagManagerContainerId("YOUR_GTM_CONTAINER_ID");
```

{% endtab %}

{% tab title="IOS(Objective-C)" %}

```objectivec
[DOT setGoogleTagManagerContainerId:@"YOUR_GTM_CONTAINER_ID"];
```

{% endtab %}
{% endtabs %}

이제 웹 페이지에 직접 코드를 적용하지 않고, `Google Tag Manager` 에서 웹 페이지에 적용하는 코드를 적용하실 수 있습니다.&#x20;

자세한 Google Tag Manager의 사용법은 아래의 링크를 참고하세요. :smile:

{% embed url="<https://support.google.com/tagmanager/answer/6103696?hl=ko>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://document.wisetracker.co.kr/v2-developer/google-tag-manager/integration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
