Copying and pasting the RCFX pixel directly to GoDaddy’s Website Builder via the CustomHTML Section does not work.
Last month, I encountered GoDaddy’s Website Builder for the first time while working on an RCFX Setup request. Website Builder is a tool that lets you create a website fast if you have a GoDaddy account and a paid subscription. Since it was my first time working with this platform, I searched online for instructions on how to add custom tracking pixels. Although they have settings for Google Analytics and Facebook Pixel, the only way to add the RCFX pixel is by adding a custom HTML section.
So that’s what I did, I added a custom HTML section to a page, added the RCFX pixel, and tested. It did not fire!
I searched Guru and found instructions on how to add GTM in a custom HTML section of the website builder (link). I checked the code, and it’s been modified. I added it to a custom HTML section and it worked. This gave me an idea to use it as a reference in TeamAI. I asked TeamAI to modify the RCFX pixel based on the modified GTM tag, and it gave me a modified script. I added it to a custom HTML section and it worked.
To make sure this modified code is safe to use, I asked somebody from the rcfx-pixel-suport Slack channel to check, and they did not find any issues with it.
We now have a way to add the RCFX pixel directly to GoDaddy’s website builder instead of adding a custom tag in GTM.
There’s currently no Guru card on how to set up RCFX pixel to GoDaddy’s website builder, and this is what I am planning to do next. I will share the link here once that’s done. In the meantime, if you need to add the RCFX pixel to GoDaddy’s website builder, you can copy the snippet below. If you have any questions, please feel free to reach out to me via Slack or email.
Here’s the modified RCFX Pixel. Just make sure to edit the website and add the RCFX ID of the client you’re working with:
<script>
(function (w, d, o, u, a, m) {
// Check if running inside an iframe and if parent is accessible
if (w.self !== w.top && w.parent) {
w = w.parent; // Reference to parent window
d = w.document; // Reference to parent document
} else {
console.log(“Can’t access parent from iframe or not in an iframe.”);
return;
}
w[o] = w[o] || function() {
(w[o].q = w[o].q || []).push(arguments);
};
w[o].e = 1 * new Date();
w[o].u = u;
a = d.createElement(‘script’);
m = d.getElementsByTagName(‘script’)[0];
a.async = 1;
a.src = u + ‘/mcfx.js’;
m.parentNode.insertBefore(a, m);
})(window, document, ‘mcfx’, ‘https://somewebsite.com’);
// Execute in parent window context
window.parent.mcfx(‘create’, ‘XXXXX’);
</script>