> For the complete documentation index, see [llms.txt](https://academy.vambe.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://academy.vambe.ai/vambe-ads/vambe-ads-pt-br/configuracao-de-plataformas/tiktok-como-obtener-la-atribucion-correcta.md). Agents can also search and read this documentation through its [MCP server](https://academy.vambe.ai/~gitbook/mcp).

# TikTok: como obter a atribuição correta

## Clique em WhatsApp direto do anúncio

{% stepper %}
{% step %}

#### Abrir ou editar o anúncio no TikTok Ads Manager

Acesse o Ads Manager do TikTok. Uma vez aqui, você pode criar um novo anúncio ou editar um anúncio já criado.

![image (4).png](https://content.gitbook.com/content/BeqJYnB10ImYM5stMls3/blobs/SyFPZeG5ssx61C59mnm6/9fc57caec2ee40ea85b9ca607a538f82ccf248010e7d44c18236a506918a02e4)
{% endstep %}

{% step %}

#### Verificar local de otimização do conjunto de anúncios

Certifique-se de que o local de otimização do seu conjunto de anúncios esteja definido como Website. Para verificar isso, você pode clicar à esquerda no conjunto de anúncios onde está o anúncio.

![image (5).png](https://content.gitbook.com/content/BeqJYnB10ImYM5stMls3/blobs/XsewQqHOB0MbeRTujtXR/f3b97d0ab8f24431bef0884b5d45361a76784a439fd6416b9e71337aff805f16)

![image (6).png](broken://files/4eaf33986f8395a29a2149743fce186ffd0534f1)
{% endstep %}

{% step %}

#### Seção de destino do anúncio: colar a URL do WhatsApp

Seu anúncio terá uma seção de destino. É aqui que colaremos a URL que direciona para o WhatsApp. Para obter essa URL, acesse o Vambe Ads.

![image (7).png](https://content.gitbook.com/content/BeqJYnB10ImYM5stMls3/blobs/Bq6a5StoI2NFbqArdYwf/571d9aac77934ccda7c2caffecad82e20f26e5074bdd49dda41ecc76c00c1424)
{% endstep %}

{% step %}

#### Gerar a URL do WhatsApp no Vambe Ads

No Vambe Ads, acesse a seção de Workspaces e clique em "Gerar URL de Whatsapp".

<https://performance.vambeai.com/en/workspaces>

![image (8).png](https://content.gitbook.com/content/BeqJYnB10ImYM5stMls3/blobs/hC13Ars6pY0p3GXBLo3l/bd065c42660a4b8893da09e939b92e4d0a8258998201400787d8cd7d6bc1c61a%20md.png)
{% endstep %}

{% step %}

#### Preencher número e mensagem; copiar a URL

Isso abrirá um pop-up onde você deve escrever o número de WhatsApp com o qual você quer que os leads do TikTok falem e a mensagem com a qual quer iniciar a conversa. Clique no botão à direita da URL para copiá-la.

![image (9).png](https://content.gitbook.com/content/BeqJYnB10ImYM5stMls3/blobs/NmaqdCcSnBJWvEceHRRf/fb6bf740bcc64ee5ae01a2aabc3daab2fe95a05fa3464a14bf18616a85780991)
{% endstep %}

{% step %}

#### Colar a URL no TikTok e revisar os parâmetros

Depois de colar a URL no TikTok, você poderá revisar os parâmetros de URL associados a ela. Clique em Edit e certifique-se de que os valores de auto-detect e auto-attach estejam ativados.

![image (10).png](https://content.gitbook.com/content/BeqJYnB10ImYM5stMls3/blobs/kcDjzpBgiNSwIXfPqule/78d16e87be1c4178b3b46f76d31e42b8dce1abc0586541998b4347da662c2b29)

![image (12).png](https://content.gitbook.com/content/BeqJYnB10ImYM5stMls3/blobs/TOHLD9I5A6vAiLo1RF6u/c79f8bd2d63e4a128c7eaea065a7e302822b1d424f6a42d5b1b62fd204a0c005)
{% endstep %}

{% step %}

#### Lançar anúncios

Pronto! Agora você pode lançar seus anúncios e rastrearemos no Mercur quem vem do TikTok.
{% endstep %}
{% endstepper %}

## Clique em uma página web

É necessário incluir o script universal da aba workspaces na página web de destino do anúncio. Esse script só faz o match se na página web for usado qualquer tipo de clique para falar no WhatsApp ou se em algum lugar da página web o usuário inserir seu número de telefone.

{% hint style="info" %}
Certifique-se de que o script do workspace esteja presente na página de destino para que o matching possa ser feito quando o usuário clicar para falar pelo WhatsApp ou inserir seu número.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://academy.vambe.ai/vambe-ads/vambe-ads-pt-br/configuracao-de-plataformas/tiktok-como-obtener-la-atribucion-correcta.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
