Configure TikTok Pixel Events in Magento 2


TikTok Pixel configuration in the Magento 2 TikTok extension
TikTok Pixel configuration in the Magento 2 TikTok extension
The Pixel configuration in the Magmodules TikTok for Magento 2 extension controls how your TikTok Pixel is loaded and which events are sent from your shop. On this page you connect your TikTok Pixel ID and choose the events that should be tracked.
Who is this for and why it matters
- Merchants who run TikTok ads and want accurate conversion tracking.
- Agencies that manage TikTok campaigns for multiple Magento 2 stores.
- Developers who need a clean, configurable way to fire TikTok events without custom code.
With a correctly configured TikTok Pixel you can:
- Measure which campaigns drive product views, adds to cart and purchases.
- Build remarketing audiences based on real on site behavior.
- Optimize TikTok campaigns for conversions instead of just clicks.
Pixel configuration fields explained
Enable
Use this setting to enable or disable the TikTok Pixel for the selected store view.
Pixel ID
Enter your TikTok Pixel ID here as found in TikTok Ads Manager under Assets > Events > Web Events.
Events
Select which events you want to send to TikTok. Hold Ctrl or Cmd to select multiple.
- PageView
- ViewContent
- Search
- AddToCart
- AddToWishlist
- InitiateCheckout
- Purchase
- CompleteRegistration
- ViewCart
Step by step: how to configure the TikTok Pixel
- Go to Stores > Configuration > Magmodules > TikTok > Pixel.
- Select the correct Store View.
- Set Enable to Yes.
- Paste your Pixel ID.
- Select the events you want to track.
- Click Save Config.
- Flush the Magento cache.
- Verify events using the TikTok Pixel Helper.
Use cases and implementation tips
Performance campaigns
Enable all commerce related events so TikTok can optimise towards purchases.
Remarketing audiences
Use ViewContent, AddToCart and ViewCart to create strong remarketing audiences.
Lead or registration campaigns
Focus on the CompleteRegistration event if registrations are your primary KPI.
FAQ and troubleshooting
No events appear in the TikTok Pixel Helper
- Check that the module is enabled for this store view.
- Verify your Pixel ID.
- Clear caches.
- Temporarily disable conflicting scripts.
Some events are missing
- Confirm the event is selected.
- Trigger the expected action on the frontend.
- Verify in the Pixel Helper.
Different Pixel IDs per store view
Yes, you can configure a different TikTok Pixel ID per store view.
Need help
If you need assistance or have custom tracking requirements, contact our support team. You can also check the TikTok plugin page on our website for more details.