SplitDuck logosplitduck

Tag experiment

An experiment is a piece of text on your site, like a headline or a button label, that SplitDuck tests different versions of. To create one, give the element that holds the text a name.

Add a data-splitduckattribute. Its value is the experiment's name.

<h1 data-splitduck="headline">Find a better headline</h1>

What happens next

  1. The first time a visitor loads that page, the experiment appears on your Experiments page. The element's current text becomes the original version.
  2. Open the experiment and write the versions you want to test against it.
  3. SplitDuck shows the versions to visitors and gradually sends more traffic to whichever converts best.

Rules for tagging

  • Plain text only.SplitDuck replaces the element's whole text, so links, bold text or icons inside it would be lost. Tag the innermost element that holds just the text.
  • In the page when it loads. SplitDuck looks for tags once, when the page loads. Text added later by JavaScript isn't picked up.
  • Keep names stable. Use short names like headline or pricing_cta. Renaming a tag starts a new experiment with no results, and the same name on two pages is the same experiment.
  • Same text for everyone.Don't tag personalised or changing text like names, prices or dates.