Integration Documentation

Everything you need to add TuneGains to your website.

⚡ Quick Start

Add this single line of code anywhere in your website:

<script src="https://tunegains.com/widget.js?key=YOUR_API_KEY"></script>

Replace YOUR_API_KEY with the key from your dashboard.

📝 WordPress Integration

Option 1: Using Theme Editor

  1. Go to Appearance → Theme Editor
  2. Open footer.php
  3. Paste the script before </body>
  4. Save changes

Option 2: Using Shortcode (Recommended)

// Add to functions.php
function tunegains_widget() {
    return '<div id="tunegains-widget"></div>
    <script src="https://tunegains.com/widget.js?key=YOUR_API_KEY"></script>';
}
add_shortcode('tunegains', 'tunegains_widget');

Then use [tunegains] shortcode in any page or post.

🎨 Wix Integration

  1. In Wix Editor, click Add (+)
  2. Select Embed → Embed a Widget
  3. Choose Embed HTML
  4. Paste the following code:
<div id="tunegains-widget"></div>
<script src="https://tunegains.com/widget.js?key=YOUR_API_KEY"></script>

⬜ Squarespace Integration

  1. Edit the page where you want the widget
  2. Click Add Block → Code
  3. Paste the embed code
  4. Set display to HTML
  5. Save and publish

💻 Custom HTML

Add the script tag before the closing </body> tag:

<!DOCTYPE html>
<html>
<head>
    <title>Your Tuning Shop</title>
</head>
<body>
    <!-- Your website content -->
    
    <!-- TuneGains Widget -->
    <script src="https://tunegains.com/widget.js?key=YOUR_API_KEY"></script>
</body>
</html>

🎨 Customization Options

Add data attributes to customize the widget:

Attribute Description Default
data-color Primary accent color (hex) #FF4500
data-position Widget position bottom-right
data-booking-url Your booking page URL none
data-show-stages Which stages to show 1,2,3

Example with custom options:

<script 
    src="https://tunegains.com/widget.js?key=YOUR_API_KEY"
    data-color="#0066FF"
    data-position="bottom-left"
    data-booking-url="https://yoursite.com/book"
></script>

🔧 Troubleshooting

Widget not appearing?

Check that your API key is correct and your subscription is active.

Styling conflicts?

The widget uses Shadow DOM to prevent CSS conflicts. If issues persist, contact support.

Slow loading?

The widget is lazy-loaded and typically loads in under 200ms. Check your internet connection.

Still having issues? Contact our support team.

Need Help Integrating?

Our team is here to assist you

Contact Support