Skip to main content

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
Base URL: https://png.lomadee.com.br

Parameters

Required Parameters

string
required
Payment method used in the transaction Examples: credit_card, pix, boleto, debit_card, paypal
string
required
Unique order identifier Format: Unique alphanumeric string Example: ORDER-123456789
array
required
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
string
required
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)

The response contains a 1x1 transparent PNG pixel that can be displayed on the page without visual impact.

Validation Error (400)

Possible validation errors:
  • 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 99.90shouldbesentas9990,andaproductthatcosts99.90 should be sent as `9990`, and 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

  1. Asynchronous Loading: Implement the pixel after complete page loading
  2. Error Handling: Always handle possible pixel request failures
  3. No Duplication: Avoid firing the same pixel multiple times for the same order
  4. Local Validation: Validate data before sending to reduce 400 errors
  5. URL Encoding: Always encode special characters in product names

Testing Implementation

To test if the pixel is working correctly:
  1. Visual Verification: Use browser developer tools (F12) to verify the request was successful (status 200)
  2. Network Tab: Monitor the Network tab to confirm the /fox.png request was executed
  3. 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

Support

For technical support or implementation questions, contact the Lomadee development team.