How to Test TikTok Events API Integration for Shopify Stores

Before going live, see how to test your server events in TikTok Events Manager.

Step 1: Get Server Test Code

Head over to TikTok Events Manager.

Under Website Pixel, select Manage

Select the Pixel you're setting up Events API for

Select Test Events > Copy the test code located under Test Server Events.

Step 2: Enter your Test Code into your Elevar App

Head back to your Elevar App > navigate to Server-Side > Select TikTok

On the Overview step, select Enter Test Mode > enter the Test Code you copied during Step 1 > select _Enter Test _Mode

Step 3: Navigate Your Website like a Shopper

Then proceed to navigate your website and place a test order. You should see your server events displayed in TikTok similar to this:

It can take a few minutes before your test events appear here.

If you see the successful purchase event and the data is accurate then you are good to go!

📘

Note: You may see "issues" in TikTok's Test Events. Some of these are expected, (I.e. missing customer phone number and email address on non-checkout events.); others are false positives.

GTM Server-Side Container

Step 1: Get Server Test Code

Head over to TikTok Events Manager.

Under Website Pixel, select Manage

Select the Pixel you're setting up Events API for

Select Test Events > Copy the test code located under Test Server Events.

Step 2: Enter your Test Code into your Google Tag Manager Server Container

Head to your Google Tag Manager Server Container > Update the value of the variable titled Update After Import TikTok Test Code to your TikTok Test Code

Ensure the TikTok Test Code variable is added to both your Shopify Events - TikTok and Shopify Notifications - TikTok tags like the below examples:

Step 3: Put Server Container Into Preview Mode

Inside your server side container click "Preview" in the top right. This should open a new window that looks similar to a preview mode in web containers.

Step 4: Navigate Your Website like a Shopper

Then proceed to navigate your website and place a test order. You should see your server events displayed in TikTok similar to this:

It can take a few minutes before your test events appear here.

If you see the successful purchase event and the data is accurate then you are good to go!

📘

Note: You may see "issues" in TikTok's Test Events. Some of these are expected, (I.e. missing customer phone number and email address on non-checkout events.); others are false positives.