Dev Depot: Make Better Decisions With A/B Testing

When it comes to optimizing your adult website’s user experience, traffic and revenue streams, nothing can take the place of formalized testing: comparing one specific approach to another by splitting visitors between two variations of a particular element; such as images, design features or call to action, in order to determine which is the most profitable. It is not something that a webmaster can effectively do manually, however, due in part to issues such as fluctuations in traffic sources, which will prevent a “try this one day, try that another day” approach from obtaining reliable results.

For true split A/B testing, half your site’s visitors should see one element; half should see the other.

It is an intriguing proposition for adult webmasters struggling to incorporate an easy and effective split testing regimen into their PHP-powered websites, including sites powered by WordPress and other popular content management systems offering customizable code.

Boasting endless possibilities with universal results, phpA/B (www.phpabtest.com) offers A/B testing with a simple setup, using a PHP script for easy integration and Google Analytics for detailed statistics.

“Setting up an A/B test couldn’t be easier. Almost everything is done for you,” the script’s author, Brian Cray, states. “You can be running multiple tests in only a matter of minutes.”

It is an intriguing proposition for adult webmasters struggling to incorporate an easy and effective split testing regimen into their PHP-powered websites, including sites powered by WordPress and other popular content management systems offering customizable code.

“Whether you want to test changes to your copy, HTML, CSS, JavaScript, or test completely different designs, phpA/B offers a way to do it,” Cray notes, adding, “phpA/B integrates automatically into your Google Analytics, allowing deeper insight into your tests’ impact on users.”

The high performance PHP-based tests run before users even begin loading your web pages, while avoiding unexpected problems arising from JavaScript-based A/B testing solutions. Furthermore, phpA/B automatically filters out search engine robots, preventing them from skewing your data and test results.

According to the publisher, phpA/B includes a “trial mode” that displays a random variation upon browser refresh, without recording any data to Google Analytics.

Up to five tests can run simultaneously (a limit imposed by Google Analytics), by giving each test a different name and ensuring that they are placed in different Google Analytics reporting slots, using the set_ga_slot() parameter.

The custom {phpab} tag as well as PHP logic is able to specify testing variations, which can be limited to changes in CSS or HTML only, with examples provided in the script’s documentation. Of course, these variations can utilize a mix of CSS, HTML and JavaScript, without creating any problems for the script set.

The active variations are detectable via JavaScript, allowing for more flexibility and detailed analysis.

Advanced Google Analytics users that have made major customizations to their tracking code may face problems with test results not showing up, since phpA/B may not automatically be able to add the additional Google Analytics code it needs to work. The documentation offers a workaround for this.

The phpA/B script uses Google Analytics’ custom variables API for reporting, with _setCustomVar() calling a session-level custom variable that includes the test name and the user’s variation. The script intelligently detects whether the site is using traditional or asynchronous tracking and then inserts the appropriate calls.

Using phpA/B requires PHP version 5 or above to be installed on your server, plus Google Analytics and a thirst for knowledge. The phpA/B script is free for commercial and personal use, licensed under version 2 of the GNU General Public License.

In testing, phpA/B effectively rotates between control content and alternative content, on browser refresh and via unique visitor — providing the click stream data users need to optimize their websites for better performance and sales. Try out phpA/B and see if it works for you.

Related:  

Copyright © 2024 Adnet Media. All Rights Reserved. XBIZ is a trademark of Adnet Media.
Reproduction in whole or in part in any form or medium without express written permission is prohibited.

More Articles

opinion

The Search for Perfection in Your Payments Page

There has been a lot of talk about changes to cross sales and checkout pages. You have likely noticed that acquirers are now actively pushing back on allowing merchants to offer a negative option, upsell or any cross sales on payment pages.

Cathy Beardsley ·
opinion

Unpacking the Payment Card Industry's Latest Data Security Standard

The Payment Card Industry Data Security Standard (PCI DSS) is a set of requirements and guidelines that apply to all businesses that accept credit card payments, and is designed to ensure the security of those transactions.

Jonathan Corona ·
opinion

Compliance With State Age Verification Laws

During the past year, website operators have faced a slew of new state age verification laws entailing a variety of inconsistent compliance obligations.

Lawrence Walters ·
opinion

Merchants in Spotlight With Visa's VIRP

By now, most merchants know about the Visa Integrity Risk Program (VIRP) rolled out in spring 2023. The program is designed to ensure that acquirers and their designated agents — payment facilitators, independent sales organizations and wallets — maintain proper controls and oversight to prevent illegal transactions from entering the Visa payment system.

Cathy Beardsley ·
opinion

How to Know When Hosting Upgrades Are Really Needed

I was reminded about an annoyingly common experience that often frustrates website owners: upgrades. Sometimes, an upgrade of physical system resources like CPU, RAM or storage really is required to solve a problem or improve performance… but how do you know you’re not just being upsold?

Brad Mitchell ·
profile

WIA Profile: Natasha Inamorata

Natasha Inamorata was just a kid when she first picked up a disposable camera. She quickly became enamored with it and continued to shoot with whatever equipment she could afford. In her teens, she saved enough money to purchase a digital Canon ELPH, began taking portraits of her friends, shot an entire wedding on a point-and-shoot camera and edited the photos with Picnik.

Women in Adult ·
trends

Collab Nation: Top Creators Share Best Practices for Fruitful Co-Shoots

One of the fastest ways for creators to gain new subscribers and buyers, not to mention monetize their existing fan base, is to collaborate with other creators. The extra star power can multiply potential earnings, broaden brand reach and boost a creator’s reputation in the community.

Alejandro Freixes ·
opinion

Bridging Generational Divides in Payment Preferences

While Baby Boomers and Gen Xers tend to be most comfortable with the traditional payment methods to which they are accustomed, like cash and credit cards, the younger cohorts — Millennials and Gen Z — have veered sharply toward digital-first payment solutions.

Jonathan Corona ·
opinion

Legal and Business Safety for Creators at Trade Shows

As I write this, I am preparing to attend XBIZ Miami, which reminds me of attending my first trade show 20 years ago. Since then, I have met thousands of people from all over the world who were doing business — or seeking to do business — in the adult industry.

Corey D. Silverstein ·
opinion

Adding AI to Your Company's Tech Toolbox

Artificial intelligence is all the rage. Not only is AI all over the headlines, it is also top of mind for many company leadership teams, who find themselves asking, “How can this new tool help our company?”

Cathy Beardsley ·
Show More