# A/B Split Testing with Nginx & Craft CMS

DevFeed: [A/B Split Testing with Nginx & Craft CMS](<https://devfeed.tech/articles/a-b-split-testing-with-nginx-craft-cms-31230.md>)

Original publisher: [Read original article](<https://nystudio107.com/blog/a-b-split-testing-with-nginx-craft-cms>)

Author: andrew@nystudio107.com (Andrew Welch)

Published: 2017-05-10T18:52:00Z

Content type: tutorial

Language: en

Sources: [nystudio107 | Articles on modern web development.](<https://devfeed.tech/sources/nystudio107-articles-on-modern-web-development.md>)

Topics: [A/B Testing](<https://devfeed.tech/topics/a-b-testing.md>), [nginx](<https://devfeed.tech/topics/nginx.md>), [Content Management System](<https://devfeed.tech/topics/cms.md>), [Testing](<https://devfeed.tech/topics/testing.md>)

Tags: [a-b-testing](<https://devfeed.tech/tags/a-b-testing.md>), [analytics](<https://devfeed.tech/tags/analytics.md>), [browser](<https://devfeed.tech/tags/browser.md>), [chrome](<https://devfeed.tech/tags/chrome.md>), [cms](<https://devfeed.tech/tags/cms.md>), [craft](<https://devfeed.tech/tags/craft.md>), [developer-tools](<https://devfeed.tech/tags/developer-tools.md>), [doing](<https://devfeed.tech/tags/doing.md>), [effectiveness](<https://devfeed.tech/tags/effectiveness.md>), [here-s](<https://devfeed.tech/tags/here-s.md>), [insights](<https://devfeed.tech/tags/insights.md>), [measuring](<https://devfeed.tech/tags/measuring.md>), [nginx](<https://devfeed.tech/tags/nginx.md>), [pages](<https://devfeed.tech/tags/pages.md>), [split](<https://devfeed.tech/tags/split.md>), [testing](<https://devfeed.tech/tags/testing.md>), [useful](<https://devfeed.tech/tags/useful.md>)

## AI overview

This tutorial explains how to implement A/B split testing with Nginx and Craft CMS. It describes serving different page variants based on visitor information, persisting the assigned variant in a 24-hour cookie, and sending test data to Google Analytics as a custom dimension.

## Source excerpt

Doing A/B split testing can be very useful in measuring the effectiveness of your pages; here's how to do it with Nginx & Craft CMS