I was asked why content upgrades didn’t work, and I wondered if the content was being read and if the reader made it to the bottom of the blog post to see the upgrade. Is your content being read? How can you tell?

Scenario:

You have the blog post written, and you just KNOW it’s going to resonate, but how do you know if the content is being consumed? I had a client complain that her content upgrade wasn’t working so I asked her “Are they reading your content and seeing the upgrade?”

The question is, are they reading it all the way to the middle or bottom where your content upgrade is located? I mean, how can you tell if they have even read that far?

We can use an html element and fire the pixel when it loads on the page. Watch the video below then grab the code.

MY Trigger - I left this here to see if you're reading my conent:

Scroll Page until the custom event is fired

Custom event will fire when this phrase enters the screen

*IMPORTANT NOTE

Your base pixel code must be installed for this to work. Your base pixel code should be installed on your website so that it fires on every page. This tutorial assumes that you have installed it and are ready to go.

If you are using ClickFunnels, you can add the code to your page inside of the tracking code setting under header. To learn how to install your pixel in ClickFunnels, click here: http://lynne-miller.com/sales-funnels/how-to-install-the-facebook-pixel-on-clickfunnels-the-right-way/


Here is the code that you will need to put into your website. I use Divi so I just add a code module. What makes this work is the h1 id so I’ve highlighted everything in bold below that you will need to change:

If you choose to use a different HTML element, just add id=”fb-fire-pixel” to it as seen below.

<h1>Scroll Page until the custom event is fired</h1>
<div></div>
<h1 id=”fb-fire-pixel”>Custom event will fire when this phrase enters the screen</h1>

<script>
var executeWhenElementIsVisible = function(dom_element, callback) {

if (!(dom_element instanceof HTMLElement)) {
console.error(‘dom_element must be a valid HTMLElement’);
}

if (typeof callback !== ‘function’) {
console.error(
‘Second parameter must be a function, got’,
typeof callback,
‘instead’,
);
}

function isOnViewport(elem) {
var rect = elem.getBoundingClientRect();
var docElem = document.documentElement;
return (
rect.top >= 0 &&
rect.left >= 0 &&
rect.bottom <= (window.innerHeight || docElem.clientHeight) &&
rect.right <= (window.innerWidth || docElem.clientWidth)
);
}

var executeCallback = (function() {
var wasExecuted = false;
return function() {
if (!wasExecuted && isOnViewport(dom_element)) {
wasExecuted = true;
callback();
}
};
})();

window.addEventListener(‘scroll’, executeCallback, false);
};

var element = document.getElementById(‘fb-fire-pixel’);

executeWhenElementIsVisible(element, function() {
fbq(‘track’, ‘ViewContent‘);
});

</script>

And that’s it! Leave me a comment below if you want to know if your content is being read.

Want to learn HOW to put the right ad in front of the right person at the right time? Sign up to be notified when the Re-Targeting Stack Mini Course goes live!

About the Author

“I’m the Facebook™ marketer you’ve been looking for”

Who am I? I am a Facebook™ marketer who helps online entrepreneurs and course creators sell their programs and courses with ads. I love silly pics and laughing. I love my dogs and cats (I have both) and I love my family. I love putting on my Beats and dancing in any room I’m in. I love making videos of me singing silly songs. I love Game of Thrones.

I LOVE Facebook™ ads and have been trained by the best in the business. I’ve invested in my education and expertise and do this full time – sometimes 10 hours a day. Set and forget is for amateurs, I’m invested in your success. I have the algorithm secrets you’ve always wondered about.

Lynne Miller

Lynne Miller International LLC

Related Reading

How to Create a Popup With Button Using Bloom – Without Form Fields

Want to use Bloom for only a button? If you use Bloom, there are going to be times that you want just a button. Not a name or email field, but just a button to redirect someone to your sales page, or website. Sometimes we want a pop up to do more. Send people to our...

How To Track Leads With Your Content Upgrades

If you have a content upgrade, it can seem impossible to track your leads using the Facebook pixel without them leaving your page. Here's how to fire that event and keep them where you want them ...reading the rest of your blog post. Facebook Twitter Instagram Did you...

Subscribe To Our Newsletter

Join our mailing list to receive the latest news and updates from our team.

You have Successfully Subscribed!

Why Facebook Ads Stall

Have your Facebook™ Ads stalled or even stopped performing?

Find out what causes this, and how to fix it!

Check Your Inbox!

FREE MINI COURSE:
3 Things You Didn't Know You Could Do With The Facebook™ Pixel

 

Learn How to Fire the Pixel When Someone...

Clicks a Button  ⚆   Opens Your Email  ⚆  Signs Up for Your Opt-in

You have Successfully Subscribed!