Google Tag Manager Set up for TikTok Campaigns

After you have created a separate TikTok Pixel for experiments on SplitMetrics platform it’s time to connect TikTok Pixel with GTM and start running tests via TikTok source.

  1. In your TikTok Ads Manager account choose Assets -> Event
Google Tag Manager Set up for TikTok Campaigns

2. In the Website Pixel section click the Manage button

Google Tag Manager Set up for TikTok Campaigns

3. Select the needed Pixel and click on its name. The Overview Pixel page will open.

Below on the page click the Install Pixel Code button

Google Tag Manager Set up for TikTok Campaigns

4. A window will open with installation options. We’ll describe “Install pixel code by 3rd party tool” and “Manually install pixel code” separately.

Google Tag Manager Set up for TikTok Campaigns

Start with an “Install pixel code by 3rd party tool”.

5. Install pixel code by 3rd party tool

Log in to your GTM account by clicking on Connect to a Google account

Google Tag Manager Set up for TikTok Campaigns

And select your Account, Container, and Workspace.

Google Tag Manager Set up for TikTok Campaigns

6. Go to the Tags section in your GTM account

Google Tag Manager Set up for TikTok Campaigns

7. Here you will see the Pixel that you have recently created. It needs to be set up. Click on the name.

Google Tag Manager Set up for TikTok Campaigns

8. In Tag Configuration under Advanced Settings you should set Tag firing options – Unlimited

Google Tag Manager Set up for TikTok Campaigns
Google Tag Manager Set up for TikTok Campaigns

9. The Triggering section will have an automatically created element

Google Tag Manager Set up for TikTok Campaigns

You need to delete this trigger and create two new ones

Google Tag Manager Set up for TikTok Campaigns

The 1st trigger that has to be created:

  • Clicks – All Elements (preferable): this Trigger Type fires when the user clicks the “Install” button.

Select Some Clicks >> Choose Built-In Variable >> Click Element, matches CSS selector, .sm-install-button. Then, select “Page URL”, “starts with”, and paste the URL for traffic – a unique link that SplitMetrics generates for each experiment.

Google Tag Manager Set up for TikTok Campaigns

The 2nd trigger that has to be created:

  • Page View: this Trigger Type fires when the experiment is fully loaded on a user’s mobile web browser. It tracks the number of page views/sessions each experiment received.

Select “Page URL”, “starts with”, and paste the URL for traffic – a unique link that SplitMetrics generates for each experiment.

Google Tag Manager Set up for TikTok Campaigns

10. Once everything is set up, you can Save the Tag

11. Submit the tag after the tag creation

Google Tag Manager Set up for TikTok Campaigns

12. On the Google Tag Manager dashboard, find and copy the GTM ID that starts with GTM-

Google Tag Manager Set up for TikTok Campaigns

Jump to step 23 to see how to paste GTM code into the SplitMetrics platform and launch an ad campaign!

13. Manually install pixel code

In the installation method window (p.4) select Manually install pixel code and click Next

Google Tag Manager Set up for TikTok Campaigns

14. In the open window you can copy the Pixel by clicking on the top right button of the highlighted window, or saving it (“Download pixel code” button)

Google Tag Manager Set up for TikTok Campaigns

15. Go back to your GTM account

To create a new tag, click Add a new tag

Google Tag Manager Set up for TikTok Campaigns

16. In the Tag Configuration section choose Custom HTML

Google Tag Manager Set up for TikTok Campaigns

17. Insert the TikTok Pixel code

Google Tag Manager Set up for TikTok Campaigns

18. In the Advanced Settings you should set Tag firing options – Unlimited

Google Tag Manager Set up for TikTok Campaigns
Google Tag Manager Set up for TikTok Campaigns

19. In the Triggering sectioncreate two new triggers

Google Tag Manager Set up for TikTok Campaigns

The 1st trigger that has to be created:

  • Clicks – All Elements (preferable): this Trigger Type fires when the user clicks the “Install” button.

Select Some Clicks >> Choose Built-In Variable >> Click Element, matches CSS selector, .sm-install-button. Then, select “Page URL”, “starts with”, and paste the URL for traffic – a unique link that SplitMetrics generates for each experiment.

Google Tag Manager Set up for TikTok Campaigns

The 2nd trigger that has to be created:

  • Page View: this Trigger Type fires when the experiment is fully loaded on a user’s mobile web browser. It tracks the number of page views/sessions each experiment received.

Select “Page URL”, “starts with”, and paste the URL for traffic – a unique link that SplitMetrics generates for each experiment.

Google Tag Manager Set up for TikTok Campaigns

20. Once everything is set up, you can Save the Tag

21. Submit the tag after the tag creation

Google Tag Manager Set up for TikTok Campaigns

22. On the Google Tag Manager dashboard, find and copy the GTM ID that starts with GTM-

Google Tag Manager Set up for TikTok Campaigns

GTM integration on the SplitMetrics platform.

23. Go to your experiment dashboard, click Integration -> Google Conversion Tag

Google Tag Manager Set up for TikTok Campaigns

24. Insert GTM ID, check the box (Enable Integration), and click Save

Google Tag Manager Set up for TikTok Campaigns

Well done!

Have a successful experiment via the TikTok source.