ShrimpTest Conversion metric type class
An object-oriented metric type specification. This class name is handed to register_shrimptest_metric_type() at the end of this file so it is registered.
Many of the properties in the resulting object are there as register_shrimptest_metric_type() expects them.
Located in /plugins/metric-conversion.php (line 23)
A user-facing metric type string
The internal metric designation
A prefix used for constructing a transient id
variables used for the query_vars-retreiving code to get a more stable representation for detecting conversion hits.
variables used for the query_vars-retreiving code to get a more stable representation for detecting conversion hits.
This setting means that we will try to offer this metric as the default for new experiments:
Constructor
Set up actions and filters. Gets called in register_shrimptest_metric_type().
Print the "metric extra" rows in the "Add new experiment" screen
Prepare the given conversion metric specification for saving.
Add styling and JavaScript for the "Add new experiment" screen
Check whether we have hit upon any conversion metrics' goal URL's.
If we have, then record that conversion using shrimptest_conversion_success.
Displays a display-friendly value for the given $value: in this case, a percentage representation.
Get the "conversion rules": the collection of query vars that we are looking out for, as they represent conversion metric conversions.
Add special headers representing the WP query_vars if a HEAD request was made with the $query_vars_parameter parameter.
Use this function to get serialized query vars for any WordPress
Example:
Documentation generated on Sat, 04 Sep 2010 23:40:57 -0400 by phpDocumentor 1.4.3