Embed UAE Gratuity Calculator on Your Website
TL;DR: Add a MOHRE 2025-compliant gratuity calculator to your website using a simple iframe embed code. No technical expertise required—copy the code, paste into your HTML, and provide instant calculations to your audience. Works on WordPress, Wix, Webflow, Shopify, and custom sites.
Want to provide your audience with instant gratuity calculations? Embed our calculator directly on your site with a simple iframe or integration code. No technical expertise needed—we handle the complex calculations.
Quick Integration
Option 1: Simple iFrame Embed (Easiest)
Copy and paste this code into your website's HTML:
<iframe
src="https://gratuitycalculator-uae.ae/calculator"
width="100%"
height="600"
frameborder="0"
title="UAE Gratuity Calculator"
style="border: 1px solid #e5e7eb; border-radius: 8px;">
</iframe>
Result: Fully functional calculator embedded in your page.
Option 2: Responsive iFrame (Mobile-Friendly)
<div style="position: relative; padding-bottom: 100%; height: 0; overflow: hidden;">
<iframe
src="https://gratuitycalculator-uae.ae/calculator"
frameborder="0"
title="UAE Gratuity Calculator"
style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;">
</iframe>
</div>
Result: Calculator scales to any screen size.
Option 3: Button Link (Lightweight)
<a href="https://gratuitycalculator-uae.ae/calculator"
target="_blank"
class="btn btn-primary">
Calculate Your Gratuity
</a>
Result: Link opens calculator in new tab.
Integration for Different Platforms
WordPress
- Go to Pages Create/Edit page
- Add an HTML block (or Custom HTML)
- Paste the iFrame code above
- Publish
Wix
- Go to Edit
- Click + to add element
- Select Embed Code or Custom HTML
- Paste the iFrame code
- Save
Webflow
- Go to Designer
- Add Embed element
- Paste the iFrame code
- Publish
Shopify
- Go to Online Store Pages
- Click Add page
- In editor, click <> (HTML)
- Paste the iFrame code
- Save
Custom HTML/CSS
<!DOCTYPE html>
<html>
<head>
<title>Gratuity Calculator</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<h1>Calculate Your UAE Gratuity</h1>
<iframe
src="https://gratuitycalculator-uae.ae/calculator"
width="100%"
height="600"
frameborder="0"
title="UAE Gratuity Calculator">
</iframe>
</body>
</html>
Customization Options
Styling the iFrame
Add border and shadow:
<iframe
src="https://gratuitycalculator-uae.ae/calculator"
width="100%"
height="600"
frameborder="0"
title="UAE Gratuity Calculator"
style="border: 2px solid #1a7d4d; border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.1);">
</iframe>
Match your site's colors:
<div style="background-color: #f3f4f6; padding: 20px; border-radius: 8px;">
<h2 style="color: #1a7d4d;">Gratuity Calculator</h2>
<iframe
src="https://gratuitycalculator-uae.ae/calculator"
width="100%"
height="600"
frameborder="0"
title="UAE Gratuity Calculator"
style="border: none; border-radius: 8px;">
</iframe>
</div>
Responsive Container
<div class="calculator-container" style="max-width: 800px; margin: 0 auto; padding: 20px;">
<iframe
src="https://gratuitycalculator-uae.ae/calculator"
width="100%"
height="600"
frameborder="0"
title="UAE Gratuity Calculator"
style="border: 1px solid #ccc; border-radius: 8px;">
</iframe>
</div>
Best Practices
Placement Tips
Good locations:
- Resources/Tools page
- HR/Employment section
- Blog post about gratuity
- Sidebar widget
- Calculator hub page
Poor locations:
- Footer (too small)
- Auto-playing on homepage (disruptive)
- Hidden behind login (reduces usage)
Performance
- Lazy load the iFrame for faster page load:
<iframe
src="https://gratuitycalculator-uae.ae/calculator"
width="100%"
height="600"
frameborder="0"
title="UAE Gratuity Calculator"
loading="lazy">
</iframe>
- Set explicit height to prevent layout shifts:
<iframe
src="https://gratuitycalculator-uae.ae/calculator"
width="100%"
height="600" <!-- Explicit height prevents jumping -->
frameborder="0"
title="UAE Gratuity Calculator">
</iframe>
Accessibility
Always include:
titleattribute (screen readers)loading="lazy"(performance)- Clear context/labels around the iframe
Advanced Integration
React Component
export function GratuityCalculator() {
return (
<iframe
src="https://gratuitycalculator-uae.ae/calculator"
width="100%"
height={600}
frameBorder="0"
title="UAE Gratuity Calculator"
style={{
border: '1px solid #e5e7eb',
borderRadius: '8px',
}}
/>
);
}
Vue Component
<template>
<div class="calculator-wrapper">
<iframe
src="https://gratuitycalculator-uae.ae/calculator"
width="100%"
height="600"
frameborder="0"
title="UAE Gratuity Calculator"
style="border: 1px solid #e5e7eb; border-radius: 8px;">
</iframe>
</div>
</template>
Next.js Integration
'use client';
export default function GratuityCalculatorPage() {
return (
<div className="max-w-4xl mx-auto">
<h1>Calculate Your Gratuity</h1>
<iframe
src="https://gratuitycalculator-uae.ae/calculator"
width="100%"
height={600}
frameBorder="0"
title="UAE Gratuity Calculator"
className="border border-gray-300 rounded-lg"
/>
</div>
);
}
FAQ: Embedding
Q: Does embedding affect page performance? A: Minimal impact. Calculator loads on-demand and uses lazy loading.
Q: Can I customize colors? A: The calculator uses our default theme. You can wrap it in a styled container.
Q: Is it mobile-friendly? A: Yes. Use the responsive iFrame code (Option 2).
Q: Do I need a license? A: No. Free to embed on your site.
Q: Can I modify the calculator? A: No, but contact us if you need custom features.
Q: What about data privacy? A: Calculations happen client-side (on user's device). We don't store data.
Q: Does it work offline? A: No. Requires internet connection for initial load.
Q: Can I remove the GratuityCalculator branding? A: Embedded calculator includes our branding. Contact us for white-label options.
Troubleshooting
iFrame Not Displaying
Problem: Blank space where calculator should be
Solutions:
- Check src URL is correct
- Verify your site allows iFrames (check security policy)
- Test in a different browser
- Contact support
iFrame Too Small/Large
Problem: Calculator is cut off or has excess space
Solutions:
- Adjust
heightvalue in code - Use responsive iFrame (Option 2)
- Test on mobile and desktop
Slow Loading
Problem: Calculator takes long to appear
Solutions:
- Add
loading="lazy" - Check your internet speed
- Try again later (may be temporary)
Need Help?
- Technical support: Contact our team
- Integration questions: Email dev@gratuitycalculator-uae.ae
- Feature requests: Let us know what you need
License & Terms
By embedding our calculator, you agree to:
- Credit link to gratuitycalculator-uae.ae
- Use for legitimate purposes
- Don't modify or reverse-engineer
- Don't sell access to the calculator
For an instant end-of-service estimate, use our online gratuity calculator UAE.
Get Started with Embedding
Copy the embed code above and add the calculator to your site in minutes.
Related Resources
Last Updated: November 2025
