Find out more about Managed Components here for inspiration and motivation details.
- Make sure you're running node version >=17.
- Install dependencies with
npm i
- Run unit test watcher with
npm run test:dev
Settings are used to configure the tool in a Component Manager config file
pixelCode
is a long number that identifies your Facebook Ads account.
accessToken
is a string used to authenticate when sending server side events in your name. You can obtain it following the information here.
testKey
is used to test your app or web browser events using test events tool Learn more
Fields are properties that can/must be sent with certain events
ev
can be "ContentView", "PlaceAnOrder", "Add to Cart" one of the standard Tiktok events.
cev
can be any custom event name. Do not use sensitive words in the name of Custom Events. Learn more.
email
user email. Automatically hashed.
phone
The phone number of the customer. Normalize the phone number to E.164 format (for example, '+12133734253'). Country code must be included and prefixed with the '+' sign, without any parentheses or leading '0's. No spaces, letters or symbols except the '+' for the country code are included. Zaraz will SHA-256 hash the phone number automatically. Learn more.
ldu
can be true
or false
. If set to 'true', TikTok will recognize this parameter as a request for limited data processing, and will limit its processing activities accordingly if the event shared occurred in an eligible location. Learn more.
external_id
IDs that represent any unique identifier on the advertiser's side, such as loyalty membership IDs, user IDs, and external cookie IDs. Automatically hashed.
ttp
can be _ttp
Cookie value. If you also use Pixel SDK and have enabled cookies, Pixel SDK automatically saves a unique identifier in the _ttp cookie. The value of _ttp is used to match website visitor events with TikTok ads. You can extract the value of _ttp and attach the value here. Learn more.