Lomadee PNG Pixel
The Lomadee PNG Pixel is a service that allows real-time tracking of sales conversions. It works through an HTTP request that returns a transparent 1x1 PNG pixel, enabling seamless integration invisible to users.Installation
1. Basic Implementation
Add the pixel at the end of the checkout process, after payment confirmation:2. JavaScript Implementation
3. Server-Side Implementation
Endpoint
GET /fox.png
Main endpoint for conversion tracking
https://png.lomadee.com.br
Parameters
Required Parameters
Payment method used in the transaction Examples:
credit_card
, pix
,
boleto
, debit_card
, paypal
Unique order identifier Format: Unique alphanumeric string Example:
ORDER-123456789
List of sold products. Each product must follow the format:
sku;category;price;quantity;name
Format for each product: - sku
:
Product SKU code - category
: Product category - price
: Unit price in cents
(integer, e.g. 9990 for $99.90) - quantity
: Quantity sold (integer) -
name
: Product name (URL encoded if containing special characters)
Example: SKU123;electronics;29990;1;Android%20Smartphone
JWT token containing Lomadee tracking informationHow it works: This parameter is automatically added to the URL when users click on shortened links through our link redirector system. The JWT token is generated by our URL shortener and contains the tracking information needed for conversion attribution.JWT payload structure:utmCampaign format:
{affiliateId}_{organizationId}_{trackId}
Note: You don’t need to generate this token manually. It’s automatically included in the URL parameters when users navigate from Lomadee shortened links to your website.Usage Examples
Simple Sale
Sale with Multiple Products
cURL Example
Responses
Success (200)
Validation Error (400)
Payment type is required
Order ID is required
At least one product is required
Lomadee tracking token is required
Invalid product format. Expected: sku;category;price;quantity;name
Product price must be a valid number
Product quantity must be a valid integer
Internal Error (500)
Price Format
Important: All prices must be sent in cents (integer values), not in
decimal format. For example, a product that costs 299.90 should be sent as
29990
.Important Considerations
Data Privacy: The pixel collects transaction data and basic browser
information (User-Agent, IP). Ensure compliance with data protection laws
(GDPR, CCPA).
Timeout: The system is designed to respond quickly. In case of external
endpoint communication failure, the pixel will be returned normally, ensuring
no impact on user experience.
Asynchronous Implementation: We recommend implementing the pixel
asynchronously to avoid blocking the confirmation page loading.
Best Practices
- Asynchronous Loading: Implement the pixel after complete page loading
- Error Handling: Always handle possible pixel request failures
- No Duplication: Avoid firing the same pixel multiple times for the same order
- Local Validation: Validate data before sending to reduce 400 errors
- URL Encoding: Always encode special characters in product names
Testing Implementation
To test if the pixel is working correctly:- Visual Verification: Use browser developer tools (F12) to verify the request was successful (status 200)
- Network Tab: Monitor the Network tab to confirm the
/fox.png
request was executed - Console Logs: Check for no errors in the browser console
Monitoring
The service includes structured logging for monitoring:- Performance metrics are automatically collected
- Validation failures are logged for debugging
- Error responses include structured error information