Skip to main content

How to install Fraud Blocker’s tracking code on a GoDaddy website

Ben D. avatar
Written by Ben D.
Updated over 5 months ago

GoDaddy's Website Builder prevents third-party tags from being added to websites built using their tool. The steps shown below are a work-around process.

Due to GoDaddy's limitations (noted above), you must first install Google Tag Manager and then you can install Fraud Blocker inside it.

Here are the steps to add Fraud Blocker's Tracking script to a site built with GoDaddy's Website Builder:

1) Create a Google Tag Manager, if you don't already have one

2) Copy your Google Tag Manager "Container ID" (such as "GTM-ABC1234")

3) Place your Container ID in the code below (shown in bold) and copy the entire code:

<!-- iFrame GTM Fix -->

<script>

(function(w, d, s, l, i) {

// Check if this is in an iframe and attempt to use the parent if so

if (w.self !== w.top && w.parent) {

w = w.parent;

d = w.document;

}

w[l] = w[l] || [];

w[l].push({ 'gtm.start': new Date().getTime(), event: 'gtm.js' });

var f = d.getElementsByTagName(s)[0],

j = d.createElement(s),

dl = l !== 'dataLayer' ? '&l=' + l : '';

j.async = true;

j.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl;

f.parentNode.insertBefore(j, f);

})(window, document, 'script', 'dataLayer', 'PLACE-YOUR-CONTAINER-ID-HERE');

</script>

<!-- End iFrame GTM Fix -->

4) Add the code to your GoDaddy website:

  • Go to your GoDaddy Website Builder

  • Add a new "HTML" section at the top of each of your landing pages (or as close to the top as possible)

  • Paste the code above in the "Custom Code" area

  • Add a Title - Such as "Fraud Blocker Tracking Tag"

  • Set "Forced Height" to "0"

5) Add Fraud Blocker's Tracking code to your Google Tag Manager account. Follow these steps to complete this.

Did this answer your question?