Affiliate Tracking Script
This script automatically detects referral parameters and sets tracking cookies.
Script Code
<script src="https://edenware.app/hub/affiliate-tracker.js"></script>
Test Results
✓ Script Loaded: The affiliate tracking script is active on this page.
✓ Cookie Status: Check the status box above to see if a referral cookie is set.
✓ Cross-Domain: This cookie works across all edenware.com subdomains.
Payment Buttons
These buttons automatically include affiliate tracking information from cookies.
PayPal Button Example
<div class="edenware-payment-button"
data-app="your-app-id"
data-price="29.90"
data-currency="BRL">
Buy Premium License - R$ 29,90
</div>
Buy Premium License - R$ 29,90
Mercado Pago Button Example
<div class="edenware-payment-button"
data-app="megacubo"
data-price="49.90"
data-currency="BRL"
data-method="mercadopago">
Buy Megacubo Premium - R$ 49,90
</div>
Buy Megacubo Premium - R$ 49,90
Both Payment Methods
<div class="edenware-payment-button"
data-app="vimer"
data-price="19.90"
data-currency="BRL"
data-method="both">
Buy Vimer Premium - R$ 19,90
</div>
Buy Vimer Premium - R$ 19,90
Complete Integration Example
HTML Code for Blog Posts
<!-- Add these scripts to your website header -->
<script src="https://edenware.app/hub/affiliate-tracker.js"></script>
<script src="https://edenware.app/hub/payment-tracker.js"></script>
<!-- Use in your blog post content -->
<h2>Download Premium License</h2>
<p>Get the best screen recording software with premium features!</p>
<div class="edenware-payment-button"
data-app="your-app-id"
data-price="29.90"
data-currency="USD">
Buy Premium License - $29.90
</div>
<p><em>Affiliate disclosure: This purchase may earn a commission.</em></p>
WordPress Shortcode Alternative
// Add to your theme's functions.php
function edenware_payment_button($atts) {
$atts = shortcode_atts(array(
'app' => '',
'price' => '29.90',
'currency' => 'USD',
'text' => 'Buy Now'
), $atts);
return '<div class="edenware-payment-button" data-app="' . $atts['app'] . '" data-price="' . $atts['price'] . '" data-currency="' . $atts['currency'] . '">' . $atts['text'] . '</div>';
}
add_shortcode('edenware_button', 'edenware_payment_button');
// Usage in posts:
// [edenware_button app="your-app-id" price="29.90" currency="USD" text="Buy Now"]