My favorites | English | Sign in

Faster apps faster - GWT 2.0 with Speed Tracer New!

Google Analytics (Labs)

Website Optimizer API - Feed Reference

The Website Optimizer Experiment Management API provides the following feed types:

  • Experiments—to get/set info for a particular experiment; or to get a list of experiments
  • AbPageVariations—to get/set information for an A/B experiment page variation; or to get a list of page variations
  • Sections—to get/set information for a multivariate experiment section; or to get a list of sections
  • Variations—to get/set information for a multivariate experiment section's variation; or to get a list of variations
  • Combinations—to get/set information for an experiment (A/B or multivariate) combination; or to get a list of combinations

This section contains reference information about these feeds, regardless of the client library you are using for your application. For all feeds, there are a number of considerations you should keep in mind:

  • The maximum number of entries returned from a request is 100.
    Use the start-index and max-results parameters to paginate through larger blocks of data.
  • Invalid query parameters, such as 0, for start-index will result in a 400 Bad Request response from the server.
  • Website Optimizer feed responses contain many of the standard Atom response elements, such as ID, title, and author.

Experiments Feed

The experiments feed returns either:

  • A list of all experiments the user has access to
  • Detailed information about a single experiment (when {experimentId} is set to the ID of an experiment)

When displaying a list of experiments, only general information about each experiment is contained in the feed. Typically, an application will use websiteoptimizer/experiments in the feed query to get the experiment ID for an experiment. If will then use websiteoptimizer/experiments/xxxxx (where xxxxx is the experiment ID) to get more detailed experiment information.

  • Experiments Feed
    • id—a unique URI of the form http://www.google.com/analytics/feeds/websiteoptimizer/experiments.
    • title—the string Experiment list for '{userName}'.
    • totalResults—the total number of results for the query, regardless of the number of results in the response.
    • startIndex—the starting index of the entries, which is 1 by default or otherwise specified by the start-index query parameter.
    • itemsPerPage—The number of items in the current request, which has a maximum of 100.
    • Feed Entry —Contains the following property elements, each with a name and value:
      • id—A string that uniquely identifies this experiment entry. Example: http://www.google.com/analytics/feeds/websiteoptimizer/experiment/{experimentId}.
      • title —the title of the experiment.
      • gwo:experimentId—the experiment ID for this experiment. (read-only)
      • gwo:experimentType—the experiment type: AB or Multivariate. (read-only; may be set during experiment creation)
      • gwo:experimentNotes—user-created notes field. Limited to 2000 characters.
      • gwo:analyticsAccountId—the account ID that owns this experiment. (read-only; may be set during experiment creation)
      • gwo:status—the current status of the experiment: New, Running, Paused, or Finished.
      • gwo:coverage—the percentage of total traffic to include in the experiment.
      • gwo:numAbPageVariations—the number of page variations in this experiment (A/B experiments only). (read-only)
      • gwo:numSections—the number of sections in the experiment (multivariate experiments only). (read-only)
      • gwo:numCombinations—the number of combinations in the experiment. (read-only)
      • gwo:sourceExperimentId—the experiment ID of which this experiment is a copy or follow-up. (read-only; may be set during experiment creation)
      • gwo:verificationCombo—for follow-up experiments, the combination being verified against the original. (read-only; may be set during experiment creation)
      • gwo:verificationComboCoverage—for follow-up experiments, the percentage of traffic to send to the verification combo. (read-only, may be set during experiment creation)
      • gwo:autoPruneMode—the auto-prune setting for this experiment: None, Conservative, Normal or Aggressive.
      • gwo:controlScript—the control script that should be placed at the top of any webpage in this experiment. (read-only)
      • gwo:trackingScript—the tracking script that should be placed at the bottom of any webpage in this experiment. (read-only)
      • gwo:conversionScript—the conversion script that should be called when a visitor converts. (read-only)
      • gwo:testUrl—the test page URL (as entered by the user) for display in Website Optimizer UI.  Note that this is a link element.  That is, instead of adding <gwo:testUrl>http://my.url.com</gwo:testUrl> to the entry, you add <link rel='gwo:testUrl' type='text/html' href='http://my.url.com' />.
      • gwo:goalUrl—the goal page url (as entered by user) for display in Website Optimizer UI.  Note that this is a link element.  That is, instead of adding <gwo:testUrl>http://my.url.com</gwo:testUrl> to the entry, you add <link rel='gwo:goalUrl' type='text/html' href='http://my.url.com' />.
      • gwo:reportUrl—the link to the report page for the experiment. (read-only)
      • gwo:configurationUrl—the link to the configuration page for the experiment. (read-only)

Back

AbPageVariations Feed

The abpagevariations feed returns either:

  • A list of all page-variations in the specified A/B experiment
  • Information about a single page-variation (when {abPageVariationId} is set to the valid page variation ID).

This feed is only valid for A/B experiments (e.g. when gwo:experimentType is set to A/B).

Back

Sections Feed

The sections feed returns either:

  • A list of all sections in the specified multivariate experiment
  • Information about a single section (when {sectionId} is set to the valid section id)

This feed is only valid for multivariate experiments (gwo:experimentType = "Multivariate").

Back

Variations Feed

The variations feed returns either:

  • A list of all variations in the specified section of the specified multivariate experiment
  • Information about a single variation (when {variationId} is set to the valid variation ID)

This feed is only valid for multivariate experiments (e.g. where gwo:experimentType is set to Multivariate).

Back

Combinations Feed

The combinations feed returns either:

  • A list of all combinations in the specified experiment
  • Information about a single combination (when {combinationId} is set to the valid combination id (e.g., 18) or combination info string (e.g., 0-1-1)
This feed is only valid for both A/B and multivariate experiments.

Back