\GoogleContentExperimentPageDecorator
Class GoogleContentExperimentPageDecorator
Decorate pages or objects
Synopsis
class GoogleContentExperimentPageDecorator
extends DataExtension
{
- // members
- private static array $has_many = ;
- // methods
- public void updateCMSFields()
- public bool GoogleContentExperiment()
- public bool GoogleContentExperimentVariation()
- private void setUserVariation()
- public ArrayList getGoogleContentExperimentsData()
- private array getActiveExperimentsIDs()
- private int getChosenVariation()
Hierarchy
Extends
- DataExtension
Members
private
- $has_many
Methods
private
- getActiveExperimentsIDs() — Get the currently active experiment ID's for this page. These are local database ID's and not the GCE ID.
- getChosenVariation() — Get the current index of the VariationID that the user is seeing. This is a zero based index.
- setUserVariation() — Set the variation which the user will see for their journey.
public
- GoogleContentExperiment() — Check if the page this is attached to is a google experiment page. Here we check global experiments first as they take precedence.
- GoogleContentExperimentVariation() — Check whether the current user is part of a variation test.
- getGoogleContentExperimentsData() — Get experiment data including VariationID and ExperimentID for the front end.
- updateCMSFields() — Update the CMS fields on the extended object