See the way the TikTok Pixel for Magento 2 extension works.
Connect to TikTok Ads Manager either via Pixel or Events API to effectively measure TikTok ad performance. Gain a better understanding of website visitor actions to optimize advertising campaigns, find or re-engage new customers, and maximize conversions.
Before adding new pixels, please attentively configure the general extension settings.
Go to Stores → Configuration → Amasty Extensions → TikTok Pixel → General.
Enable TikTok Pixel - Set to Yes to enable the extension and make the Log All Events Data and Enable Delayed Dispatch of Server Events settings visible.
Log All Events Data - If enabled, you can access a record of all frontend events sent to TikTok Ads Manager, stored in the var/log/tiktok_pixel.log file.
Enable Delayed Dispatch of Server Events - Select Yes to allow the delayed dispatch of server events. The server events will be sent via the MessageQueue consumer amasty_pixel_tiktok.track, reducing the TTFB parameter.
Create and oversee TikTok Pixel IDs in one place.
Navigate to Marketing → TikTok Pixel → Manage Pixel IDs to access the grid with Pixel ID recordings. Click the Add New Pixel button to add a new connection with your TikTok Ads Manager account or select Edit in the Action column to make adjustments to existing Pixel IDs.
When needed, you can set up multiple TikTok Pixel IDs to gather event data independently for various store views.
Is Enabled - Toggle to Yes if you want to activate this Pixel ID.
Pixel ID - Provide here the TikTok Pixel ID taken from your TikTok Ads Manager account.
To copy the needed Pixel ID, navigate to Events Manager in your TikTok Ads Manager account. For this, go to Tools → Events → Events Manager → Web Events and click the Manage button to open all earlier created pixels.
Store View - Select the store view(s) for which this Pixel will collect the data.
Decide which user actions on your website will be tracked using the Pixel method and enable them in a few clicks.
It is the list of available events:
Access Token - place here the Access Token generated on your TikTok Ads Manager account side.
For this, in the top menu, go to Tools → Events → Events Manager → Web Events → click Manage button → open the needed pixel → Settings tab → Events API → Generate Access Token.
Test Event Code - specify the test code copied from the Test Events tab of the Pixel in your TikTok Ads Manager account. Leave empty, if you don’t want to send the Test Events.
This feature helps to make sure that your events are received correctly by TikTok.
Please save the changes and flush the Magento Cache after the Pixel ID adding or editing is complete.
Find out how to install TikTok Pixel for Magento 2 via Composer.