Insurifind Widget Installation
The Insurifind Widget can be deployed as an on-page asset or through a tag manager like Google Tag Manager (GTM).
Previews of the Widget’s below implementations can be seen at https://www.insurifind.com/widget/
Deploying HTML
Be sure to change the `Publisher` Value to match your Publisher ID in our HasOffers Platform to ensure proper tracking!
Example 1: Long Rectangle
<div id="root1"></div>
<script>
(function (w, d, s, o, js, fjs) {
w[o] = w[o] || function () { (w[o].q = w[o].q || []).push(arguments); };
js = d.createElement(s);
js.src = "https://insurifind.com/widget/widget.js";
js.async = !0;
fjs = document.body;
if (fjs) {
fjs.appendChild(js);
} else {
fjs = d.getElementsByTagName(s)[0];
fjs.parentElement.insertBefore(js, fjs);
}
})(window, document, "script", "insurifindWidget");
</script>
<script>
insurifindWidget("init", {
targetElementId: "root1",
// zipcode: 92024,
affiliate: "1569",
});
</script>
Example 2: Inline Square
<div id="root2"></div>
<script>
(function (window, document, locationId) {
var iframe = document.createElement('iframe');
iframe.setAttribute('frameBorder', 0)
iframe.setAttribute('width', 300)
iframe.setAttribute('height', 250)
var html = '<head><style>body { margin: 0; font-family: Helvetica; text-align: center; }</style></head><body><div id="root1"></div>\x3Cscript type="text/javascript">(function (w, d, s, o, js, fjs) {w[o] = w[o] || function () { (w[o].q = w[o].q || []).push(arguments); };js = d.createElement(s);js.src = "https://insurifind.com/widget/widget.js";js.async = !0;fjs = document.body;if (fjs) {fjs.appendChild(js);} else {fjs = d.getElementsByTagName(s)[0];fjs.parentElement.insertBefore(js, fjs);}})(window, document, "script", "insurifindWidget");\x3C/script>\x3Cscript>insurifindWidget("init", {targetElementId: "root1",affiliate: "1569"});\x3C/script></body>';
if (locationId) {
document.getElementById(locationId).appendChild(iframe)
} else {
document.body.appendChild(iframe);
}
iframe.contentWindow.document.open();
iframe.contentWindow.document.write(html);
iframe.contentWindow.document.close();
})(window, document, "root2");
</script>
Example 3: Load into an iFrame
<iframe src="https://insurifind.com/widget/single.html" width="300" height="250" frameBorder="0"></iframe>