Rising energy prices are frustrating, but a new service now helps homeowners fight back by upgrading to energy-efficient windows at an affordable price.

Many homeowners put off replacing their windows because it seems too expensive and finding a trustworthy professional is difficult. Unfortunately, this delay means losing out on hundreds of dollars in potential savings every year.

This new service makes it easy. We help you find the best local window installers and have them compete for your project, which guarantees you get a great price without the hassle. You might also be eligible for extra local promotions and discounts, helping you save even more.










Upgrade Your Home and Slash Your Energy Bills

Investing in energy-efficient windows is one of the smartest decisions for your home. Not only will they significantly reduce your annual energy bills, but they also provide a major exterior upgrade that can boost your home's value by thousands.

Want To See If You Qualify? Here’s How

Step 1: Click on your state below

Step 2: Answer a few short questions to see if you qualify

Step 3: Compare the best professionals in your area and discover your savings

Start by selecting your state

It’s Your Home, Your Vision, And We’re Here To Help You Bring It To Life.

Window Replacement • Aug 11, 2025 • Advertorial

Want to Cut Your Energy Bill? New U.S. Service Helps Homeowners Get Efficient Windows.

If Your Zip Code Qualifies, You Can Get Energy
Efficient Windows For An Amazing Price

It’s Your Home, Your Vision, And We’re Here To Help You Bring It To Life.

Window Replacement • Aug 11, 2025 • Advertorial

Want to Cut Your Energy Bill? New
U.S. Service Helps Homeowners Get Efficient Windows.

If Your Zip Code Qualifies, You
Can Get Energy Efficient Windows For
An Amazing Price

Terms & Conditions Privacy Policy Cookie Policy

Fill in your details
below to get started.
Get in touch.

import * as React from "react"

// TS declaration so window.gtag doesn't cause errors
declare global {
    interface Window {
        gtag?: (...args: any[]) => void
    }
}

export default function TextComponent() {
    const [outbrainClickId, setOutbrainClickId] = React.useState<string | null>(
        null
    )
    const [campaignId, setCampaignId] = React.useState("")
    const [publisherId, setPublisherId] = React.useState("")
    const [adId, setAdId] = React.useState("")

    React.useEffect(() => {
        if (typeof window === "undefined") return

        const params = new URLSearchParams(window.location.search)

        const obId =
            params.get("OutbrainClickId") || params.get("outbrainClickId")
        const ci = params.get("ci") || ""
        const pubId = params.get("publisher_id") || ""
        const ad = params.get("ad_id") || ""

        // Save OutbrainClickId
        if (obId) {
            sessionStorage.setItem("ob_click_id", obId)
            setOutbrainClickId(obId)
        } else {
            const storedId = sessionStorage.getItem("ob_click_id")
            if (storedId) setOutbrainClickId(storedId)
        }

        // Save ci
        if (ci) {
            sessionStorage.setItem("campaign_id", ci)
            setCampaignId(ci)
        } else {
            const storedCi = sessionStorage.getItem("campaign_id")
            if (storedCi) setCampaignId(storedCi)
        }

        // Save publisher_id
        if (pubId) {
            sessionStorage.setItem("publisher_id", pubId)
            setPublisherId(pubId)
        } else {
            const storedPub = sessionStorage.getItem("publisher_id")
            if (storedPub) setPublisherId(storedPub)
        }

        // Save ad_id
        if (ad) {
            sessionStorage.setItem("ad_id", ad)
            setAdId(ad)
        } else {
            const storedAd = sessionStorage.getItem("ad_id")
            if (storedAd) setAdId(storedAd)
        }
    }, [])

    function sendClientEvent() {
        if (typeof window.gtag === "function") {
            window.gtag("event", "text_component_click", {
                outbrain_click_id: outbrainClickId,
                campaign_id: campaignId,
                publisher_id: publisherId,
                ad_id: adId,
                transport_type: "beacon", // ensures GA4 sends before redirect
            })
            console.log("GA4 event sent via gtag")
        } else {
            console.warn("gtag not found — make sure GA4 script is in <head>")
        }
    }

    const handleClick = () => {
        sendClientEvent()

        const baseUrl = "https://www.mnbasd77.com/aff_c"
        const queryParams = new URLSearchParams({
            offer_id: "2830",
            aff_id: "2491",
            source: "clc",
            aff_sub: campaignId || "",
            aff_sub2: publisherId || "",
            aff_sub3: adId || "",
            aff_sub4: "gp_a",
            aff_click_id: outbrainClickId || "",
            button: "text_component",
        })

        const finalUrl = `${baseUrl}?${queryParams.toString()}`

        // Small delay so GA4 event can send before navigation
        setTimeout(() => {
            window.location.href = finalUrl
        }, 200)
    }

    return (
        <div
            style={{
                position: "relative",
                display: "inline-block",
            }}
        >
            <p style={{ padding: "20px", backgroundColor: "#e6f0e8" }}>
                It’s Your Home, Your Vision, And We’re Here To Help You Bring It
                To Life.
            </p>

            <button
                onClick={handleClick}
                style={{
                    position: "absolute",
                    top: 0,
                    left: 0,
                    width: "190%",
                    height: "480%",
                    backgroundColor: "rgba(255, 165, 0, 0.2)", // debug overlay
                    border: "2px dashed orange",
                    cursor: "pointer",
                    zIndex: 10,
                }}
                aria-label="Redirect to HomeBuddy with tracking IDs"
            >
                Click Me
            </button>
        </div>
    )
}

Rising energy prices are frustrating, but a new service now helps homeowners fight back by upgrading to energy-efficient windows at an affordable price.

Many homeowners put off replacing their windows because it seems too expensive and finding a trustworthy professional is difficult. Unfortunately, this delay means losing out on hundreds of dollars in potential savings every year.

This new service makes it easy. We help you find the best local window installers and have them compete for your project, which guarantees you get a great price without the hassle. You might also be eligible for extra local promotions and discounts, helping you save even more.













Upgrade Your Home and Slash Your Energy Bills

Investing in energy-efficient windows is one of the smartest decisions for your home. Not only will they significantly reduce your annual energy bills, but they also provide a major exterior upgrade that can boost your home's value by thousands.

Want To See If You Qualify? Here’s How

Step 1: Click on your state below

Step 2: Answer a few short questions to see if you qualify

Step 3: Compare the best professionals in your area and discover your savings

Start by selecting your state

It’s Your Home, Your Vision, And We’re Here To Help You Bring It To Life.

Rising energy prices are frustrating, but a new service now helps homeowners fight back by upgrading to energy-efficient windows at an affordable price.

Many homeowners put off replacing their windows because it seems too expensive and finding a trustworthy professional is difficult. Unfortunately, this delay means losing out on hundreds of dollars in potential savings every year.

This new service makes it easy. We help you find the best local window installers and have them compete for your project, which guarantees you get a great price without the hassle. You might also be eligible for extra local promotions and discounts, helping you save even more.













Upgrade Your Home and Slash Your Energy Bills

Investing in energy-efficient windows is one of the smartest decisions for your home. Not only will they significantly reduce your annual energy bills, but they also provide a major exterior upgrade that can boost your home's value by thousands.

Want To See If You Qualify? Here’s How

Step 1: Click on your state below

Step 2: Answer a few short questions to see if you qualify

Step 3: Compare the best professionals in your area and discover your savings

Start by selecting your state

It’s Your Home, Your Vision, And We’re Here To Help You Bring It To Life.

It’s Your Home, Your Vision, And We’re Here To Help You Bring It To Life.

It’s Your Home, Your Vision, And We’re Here To Help You Bring It To Life.

It’s Your Home, Your Vision, And We’re Here To Help You Bring It To Life.