- Newest
- Most votes
- Most comments
Based on your description, it sounds like you're experiencing an issue where Facebook purchase events are being recorded in the Event Manager but not in the Ads Manager when your Next.js ecommerce app is hosted on Amazon Lightsail, despite the same code working when hosted on cPanel.
This issue is likely related to how tracking events are being fired or processed rather than being specific to AWS Lightsail itself. Since your events are appearing in Event Manager but not in Ads Manager, this suggests the events are being received by Facebook but not properly attributed to your ad campaigns.
Some potential causes and solutions to consider:
-
Tracking configuration: Ensure that your MediaTailor client-side tracking is properly configured. The tracking events need to include the correct beaconUrls for impression and click-through events.
-
Ad verification: Check if you have proper ad verification setup. The tracking response should include adVerifications elements with the correct JavaScript resources and verification parameters.
-
Event firing timing: The timing of when tracking events are fired can impact whether they're properly attributed in Ads Manager. Ensure events are being fired at the appropriate times during the user journey.
-
Click-through implementation: Verify that your click-through event handling is properly implemented. The client-side tracking response includes clickThrough and clickTracking event types that need to be properly processed.
-
Cross-domain tracking: If your Lightsail implementation involves different domains or subdomains than your cPanel implementation, this could affect how Facebook's pixel attributes conversions.
-
Server configuration differences: Check for any differences in server configurations between Lightsail and cPanel that might affect HTTP headers, cookies, or other factors that could impact tracking.
Since the same code works on cPanel but not on Lightsail, I'd recommend comparing the network requests being sent from both environments to identify any differences in how the tracking events are being transmitted.
Sources
Client-side ad-tracking integrations - AWS Elemental MediaTailor
Client-side tracking API - AWS Elemental MediaTailor
Player controls and functionality for client-side ad tracking - AWS Elemental MediaTailor
answered a year ago
Relevant content
asked 2 years ago
asked 3 years ago
- AWS OFFICIALUpdated 3 years ago
