Primeiros passos com o Gerenciador de Tags do Google

Última atualização: novembro de 2024

Google Tag Manager is a tag management system that allows you to quickly add measurement codes and related code fragments collectively known as tags on your website. There are two methods to set up TikTok Pixel with Google Tag Manager:

  • Install TikTok Pixel in TikTok Events Manager (Recommended)

  • Install TikTok Pixel in your Google Tag Manager account

Learn about Events API and how to install both Pixel and Events API with Google Tag Manager.

Before you begin

Before you install TikTok Pixel in Events Manager for Google Tag Manager, you need to:

  • Set up a Google Tag Manager account and install it on your website.

  • Create a Google Tag Manager web container for the website. Your Container permissions must have Publish, Approve, Edit, and Read permissions.

  • Familiarize yourself with Google Tag Manager concepts like tags, triggers, and variables.

  • Create a TikTok Pixel or integrate an existing TikTok Pixel

Learn how to create an account and container and install a web container from Google's Help Center.

How to set up TikTok Pixel with Google Tag Manager in TikTok Events Manager

To install TikTok Pixel in TikTok Events Manager:

  1. Go to TikTok Events Manager.

  2. Click Data sources.

  3. Choose the TikTok Pixel you want to connect.

  4. Click Settings.

  5. Go to Partner Platform and click Choose Partner.

  6. Click Google Tag Manager and click Next.

    Click Google Tag Manager and click Next
  7. Click Client-side tagging.

    Click Client-side tagging
  8. Click Get started to log in to your Google account that is linked to your Google Tag Manager workspace.

  9. Name your pixel if you created a new one.

  10. Select the Google Tag Manager account, Container and Workspace that you want to install the TikTok tags.

If you want to use a new Container, create one in your Google Tag Manager account, then return to this screen and click Refresh.


10. Select the Google Tag Manager account, Container and Workspace that you want to install the TikTok tags

11. Select the method to set up events and parameters:

  • Set up with TikTok Event Builder (Recommended): You can create events and parameters directly from your website without requiring changes to website code. Learn how to set up events and parameters in Event Builder.

  • Use Google Tag Manager data layer APIs: A data layer is a JavaScript object that is used to pass information from your website to your Tag Manager container. This method installs TikTok tags and variables to automatically convert data layer events to TikTok Pixel events, and is best fit for websites already using a Google Tag Manager data layer to send custom event data. Learn more about setting up TikTok events with Google Tag Manager data layer APIs.

Select the method to set up events and parameters:

12. Review the pending changes to your Google Tag Manager account and confirm the account information is correct. Note: You won't be able to modify changes after you publish them.

13. When you're finished, click Publish.

The TikTok Pixel tag will be installed on your website. Refresh your website for the changes to take effect.

Considerations

When you set up Google Tag Manager, consider:

  • If your GTM workspace already has tags, variables, or triggers with the same names as the changes being published, those will be skipped to preserve your existing production GTM settings.

  • If you want to make any modifications to the published version or reset TikTok tags, variables, or triggers, see our Developer Help Center for instructions on reinstallation.

  • Click Publish to automatically install the tags, triggers, and variables necessary for TikTok Pixel to work properly on your website. Learn more about changes made to your GTM account.

  • If you get an error during set up, troubleshoot Google Tag Manager.