Requires the Google Analytics 4 PRO extension.
Transform your Magento 2 store's advertising capabilities with our X (Twitter) Ads Server-Side API integration. This powerful solution establishes a direct, secure connection between your e-commerce data and X's advertising platform, enabling precise conversion tracking and enhanced campaign optimization across web, mobile, and offline channels.
Designed specifically for Magento 2 merchants, this server-side implementation ensures reliable data collection and accurate conversion tracking, even in environments with strict privacy settings or ad blockers.
Bypass browser limitations and tracking prevention tools with server-side implementation, ensuring comprehensive data collection for all customer interactions and conversions on your Magento 2 store.
Meet modern privacy standards while maximizing advertising effectiveness. Our server-side integration gives you granular control over data sharing, ensuring compliance with privacy regulations while maintaining optimal campaign performance.
Stay ahead of browser changes and privacy updates with a hybrid tracking approach that combines server-side reliability with client-side flexibility, ensuring consistent performance as digital marketing evolves.
Consolidate your Magento 2 store's marketing data through a single, reliable API connection. Streamline tracking implementation while ensuring consistent measurement across all customer touchpoints and marketing channels.
Customer interacts with your Magento 2 store (purchases, cart updates, product views)
Server-side tracking captures event data with 100% reliability
Secure data transmission to X (Twitter) via the official Events API
Real-time conversion data appears in your X (Twitter) Ads dashboard
The following diagram illustrates the seamless integration between your Magento 2 store, X (Twitter) Ads server-side tracking, and the X (Twitter) Events API:
To use the X (Twitter) Ads Server-Side Addon, you'll need the following:
php bin/magento deploy:mode:set developer
Copy the extension files to your Magento 2 instance:
app/code/WeltPixel/GA4TwitterSS
Run the following commands in your Magento root directory:
php bin/magento module:enable WeltPixel_GA4TwitterSS --clear-static-content
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
If your store was in production mode, switch it back:
php bin/magento deploy:mode:set production
app/code/WeltPixel/GA4TwitterSS
before upgrading.
The extension may be refactored and old unused files may cause random issues, so it's best to only keep the latest version of the files.
Follow the normal installation instructions above.
Important Notice: To gain access to your X (Twitter) Ads API details (Consumer API, Consumer Secret, Access Token, and Access Secret), you'll need to create an X (Twitter) Developer App and request access to the Ads API. To do so, please follow X's Documentation. This is crucial as you won't have access to these details unless X (Twitter) approves your application.
Admin → WeltPixel → Google Analytics 4 Ecommerce PRO → X (Twitter) Ads Tracking Settings
When enabled, the server-side X (Twitter) Ads functionality will use the X (Twitter) Ads Javascript Tracking code configured in the client-side configuration section.
This ID can be found in your X (Twitter) Ads Manager account under Tools → Events Manager → Twitter Pixel. You can also find it in your X (Twitter) Ads Javascript Tracking code in the section above.
Input your X (Twitter) App Consumer API Key.
Input your X (Twitter) App Consumer Secret Key.
Input your X (Twitter) App Authentication Access Token.
Input your X (Twitter) App Authentication Access Secret.
Select the events you wish to send to X via the Events API. Options are Purchase / Search / Add to Cart / Add to Wishlist / Initiate Checkout / Add Payment Info / View Category / View Product
Note: Make sure you've added your Twitter Event IDs in the X (Twitter) Pixel Tracking Configuration section above. Otherwise, server-side data won't be associated with your created event in the X Ads Platform.
Set this option to Yes if you want to send events via the frontend X (Twitter) Pixel as well. X Ads Manager should have built-in functionality to avoid data duplication, and this may (in some cases) enrich your data.
Enable the creation of a log file that shows the pushed event data. The twitter-api.log file can be found in the var/log directory of Magento 2 root.
Access our comprehensive documentation in the Knowledge Base for detailed setup and configuration instructions.
Our dedicated support team is ready to assist you with any technical issues or questions you may encounter during setup and usage.
Stay current with regular updates ensuring compatibility with the latest Magento versions and X (Twitter) Ads API changes.
The X (Twitter) Ads Server-Side Addon is an extension that enables server-side tracking of conversion events from your Magento 2 store to X (Twitter) Ads, providing more accurate and reliable tracking data.
Yes, this addon requires the Google Analytics 4 PRO extension to be installed and configured on your Magento 2 store.
The addon supports tracking of various events including purchases, add to cart actions, product views, wishlist additions, checkout steps, and more.
All data is transmitted securely using X (Twitter)'s official API endpoints with authentication and encryption.
Future updates will include additional features and enhancements to the X (Twitter) Ads Server-Side Addon.