Documentation

All the information you need in one place

My headline tests have no page views, even though it looks like they’re working. What can I do?

Nelio A/B Testing differs from other A/B Testing services because alternative content is served directly from your WordPress server, instead of modifying the DOM of your pages. In order to load the appropriate content, Nelio A/B Testing adds a few query args in your URLs so that WordPress know what variant has to be served for each specific request.

I see alternative headlines but my test doesn’t have any page views. Why?

When running Headline tests, Nelio A/B Testing will hook into several WordPress hooks (such as, for instance, the_title or get_he_excerpt) and will replace the original headlines with the alternative values. The list of headlines that were replaced within a page are included in the wp_footer. Our tracking script reads the list of replaced headlines and sends the information to our cloud.

If you see alternative headlines when accessing, for instance, your Latest Posts, it means that Nelio A/B Testing worked properly (at least, the hooks responsible of loading alternative content worked). The fact that there are no page views in your test is probably because the list of replaced headlines was not included in the page. That is, wp_footer is not being used by your theme (even though it should).

How do I fix this?

In order to fix this issue, simply edit the file footer.php in your theme and add, right before the body tag is closed, the following code:

<?php wp_footer(); ?>
Person writing a new WordPress post on a MacBook

Looking for popups?

We have the best plugin to create popups for WordPress in minutes.

Request Customized Enterprise Pricing

10
200000

With your express consent, we handle the information provided for the purpose of contacting you and until you ask us to delete it.

70% OF YOUR VISITORS DO EXACTLY WHAT
YOU JUST DID AND NEVER COME BACK!

KEEP THEM
ON YOUR SITE
LONGER WITH
NELIO POPUPS

Claim Your Discount Now

Image with a 10%-off coupon

WAIT! BEFORE YOU GO...

Get this awesome discount now!

No, I don't want to save money

Image with a 10%-off coupon

WAIT! BEFORE YOU GO...

Get this awesome discount now!

No, I don't want to save money

YOUR COOKIE SETTINGS


This site uses proprietary operational cookies that have a purely functional purpose and third-party cookies that help us understand how visitors interact with the site by collecting and presenting information anonymously. To get more information about these cookies and the processing of your personal data, check our Privacy & Cookie Policy. Do you accept these cookies and the processing of personal data involved?


If you don’t, you can reject non-operational cookies and continue browsing this site by clicking here.