Bahasa Indonesia
Buat Iklan

Pengukuran Web

  1. Pengukuran /
  2. Pengukuran Web /
  3. Solusi Pengukuran Web TikTok /

How to set up a secure data connection with TikTok through Elevar

Terakhir diperbarui: Februari 2025

TikTok for Business offers many tools that let you share the actions people take on your website with TikTok. When you share these events with TikTok, you can better optimize your campaigns and measure ad performance.


This article describes how to setup a secure data connection through Elevar. Elevar supports connection via the TikTok Pixel and Events API.

For more information on these connection tools, please review the following resources:


Prerequisites

Before you can enable your TikTok Events API Destination, you will need to:


Once you've confirmed these prerequisites, setup the integration by the following steps:

  • Step 1: Generate a TikTok Access Token

  • Step 2: Add UTM & ttclid Query Parameters to your TikTok Links

  • Step 3: Navigate to the TikTok Events API Install Wizard in your Elevar App


You do not need to set up your TikTok Pixel separately as Elevar will load it on your behalf.


Step 1: Generate a TikTok Access Token

Learn where to find your TikTok Access Token in order to integrate with TikTok Events API.

Go to TikTok Ads Manager. Hover over the Tools option and click on Events to open Events Manager.

Elevar eAPI Implementation Guide - Step 1a
  • On the right side under Datasets overview, click the Pixel you want to use.

Elevar eAPI Implementation Guide - Step 1b
  • Click the Settings tab and scroll to the bottom until you see Events API.

  • Click Generate Access Token.

  • Copy the Access Token value and paste into the corresponding field on Elevar.

Elevar eAPI Implementation Guide - Step 1c

Step 2: Add UTM & ttclid Query Parameters to your TikTok Links

  1. Start by adding UTM parameters to your TikTok Ad URLs. [ How do I do this? ]

If your old links were something like this:


https://yourdomain.com


They will now be similar to this:


https://yourdomain.com?utm_source=tiktok&utm_medium=paidsocial


Add "ttclid" as a query parameter at the end of your URLs

&ttclid=__CLICKID__

Your links that you just configured to mirror the below:


https://yourdomain.com?utm_source=tiktok&utm_medium=paidsocial


Will now have the ttclid added similar to this:


https://yourdomain.com?utm_source=tiktok&utm_medium=paidsocial&ttclid=__CLICKID__


The CLICKID is TikToks "macro" and should be left exactly as it's shown above.

More info here - https://ads.tiktok.com/marketing_api/docs?rid=959icq5stjr&id=1701890980108353



Step 3: Navigate to the TikTok Events API Install Wizard in your Elevar App

1. In your Elevar App, navigate to My Tracking Select Add Destination Find and select TikTok.

Elevar eAPI Implementation Guide - Step 3a

2. You'll be taken to an Overview Page, select Get Started

Elevar eAPI Implementation Guide - Step 3b

Select your Events

By default, we've already selected the standard recommended events for you! Most likely, you won't need to adjust anything and can just select Save to continue to the next step. If you'd like to customize your events choose I want to customize events manually

Elevar eAPI Implementation Guide - Step 3c

If you are a subscription business then you have the option to also enable the "Subscribe" event. Selecting this option will trigger a "Subscribe" event to fire anytime your customers purchase a subscription (e.g. Subscription First Order). If you also sell one-time products via native Shopify checkout then this event can help you distinguish between first-time and subscription purchases inside of TikTok.


Note: recurring orders are handled separately in the Subscription settings below.

Elevar eAPI Implementation Guide - Step3D


If applicable, Enable Consent Mode

If consent is required, follow these steps to enable consent mode & select your consent categories.

If consent is not required, click Save & Continue.

Elevar eAPI Implementation Guide - Step3D


Select Content Type

Select your Content Type. Product Group is the most common and TikTok is expecting a value of Product Group or Product. What you select here depends on what value you pass in your catalog. If you are sending product ID select Product Group. If you are sending Variant ID, select Product.

Elevar eAPI Implementation Guide - Select Content Type


Select your Product Identifier

Product ID is the most common primary "content_id" in TikTok catalog integrations. You'll want to match the product identifier used in your Pixel/Events API to the product identifier you use in your Product Catalog in TikTok.

If you are migrating from the native Shopify <> TikTok Channel, then you will likely leave this as Product ID. The Shopify <> TikTok Channel uses the Product ID by default, so this will map over as you currently have it.

Elevar's pre-built tags also use Product ID by default. So if you select Product ID in this step, nothing further needs to be done. You can save & continue to the next step.

Elevar eAPI Implementation Guide - Project Identifier

If you choose a different Product Identifier for your TikTok Events API, be sure to change your TikTok tags in Google Tag Manager to match! This will need to be updated for your Product View, Add to Cart, Initiate Checkout, and Purchase TikTok Tags in Google Tag Manager.



Filter Transactions

This step allows you to control exactly what purchase events are sent to TikTok's Events API. You can block orders based on Source Channel Names, Order Tags or Order Gateways.

We recommend blocking some transactions. When you select this option we will automatically block return and exchange orders from the channels show in the selected channels block. Choose Customize to add additional channels.

Elevar eAPI Implementation Guide - Filter Transations

A common scenario where you may want to block orders is offline orders. Learn how to block these orders in this guide.

Not sure if you need to block orders? Look at what Sales Channels you have in Shopify!


Configure Subscription Settings

Do you sell subscription products? If you do, you can choose to send first-time orders only or first-time + recurring orders to your marketing destination.

Elevar eAPI Implementation Guide - Configure Subscription


Add in Your TikTok Pixel & Access Token

Elevar eAPI Implementation Guide - Pixel and Access Token

Select Save & Continue


Web Container Setup

Select Download Pre-Built Web Tags. Then import & publish these tags in Google Tag Manager. How do I do that?

Elevar eAPI Implementation Guide - Web Container Setup

Select Mark as Complete


Test the TikTok Events API Integration [Recommended]

Follow this guide on how to test the TikTok Events API.


Go Live

Select Go Live on the Overview Page to launch your new TikTok data connection.

Elevar eAPI Implementation Guide - Go Live

Be sure to remove any pre-existing TikTok setup if you haven't already done so! (if you're using native Shopify follow this guide

*Apakah informasi ini membantu?
Artikel Relevan
How to set up a pixel implementation with TikTok through TicketMaster
Tentang Pemotongan Pajak dari Saldo Akun
How to Enable Auto Event Setup