Class Inbound_Mailer_Variations
Class interface for retrieving email variation elements and recording "online version" event statistics
public
|
|
public static
|
|
public static
|
|
public static
|
|
public static
|
|
public static
|
#
set_variation_status( INT $inbound_email_id, INT $vid, STRING $status = 'play' )
Sets the variation status to a custom status |
public static
|
#
get_variations( INT $inbound_email_id, INT $vid = null )
Returns array of variation data given a call to action id |
public static
|
#
get_variation_status( INT $inbound_email_id, INT $vid = null )
Returns the status of a variation given inbound_email_id and vid |
public static
INT
|
#
get_next_variant_marker( INT $inbound_email_id )
Set Variant Marker - When automated emails are sent we still want to rotate variations if they exist. When an email is bein sent to one lead, batching needs a consistant way to rotate variations |
public static
|
#
set_variation_marker( INT $inbound_email_id, INT $variation_marker )
Updates variation marker (used for single sends) |
public static
|
#
get_variation_permalink( INT $inbound_email_id, INT $vid = null )
Returns the permalink of a variation given inbound_email_id and vid |
public static
|
#
update_variations( INT $inbound_email_id, variations $variations )
Updates 'inbound-email-variations' meta key with json object |
public static
ARRAY
|
#
get_variation_meta( INT $inbound_email_id, INT $vid )
Returns array of variation specific meta data |
public static
STRING
|
#
get_variation_notes( INT $inbound_email_id, INT $vid = null )
Gets the call to action variation notes |
public static
STRING
|
#
get_variation_custom_css( INT $inbound_email_id, INT $vid = null )
Gets the call to action variation custom css |
public static
STRING
|
#
get_variation_custom_js( INT $inbound_email_id, INT $vid = null )
Gets the call to action variation custom js |
public static
|
|
public static
|
|
public static
|
|
public static
|
|
public static
STRING
|
#
get_screenshot_url( INT $inbound_email_id, INT $vid = null )
Get Screenshot URL for email preview. If local environment show template thumbnail. |
public static
STRING
|
|
public static
STRING
|
#
vid_to_letter( INT $inbound_email_id, INT $vid )
Discovers which alphabetic letter should be associated with a given cta's variation id. |
public static
INT
|
#
get_impressions( INT $inbound_email_id, INT $vid )
Returns impression for given cta and variation id |
public static
|
#
record_impression( INT $inbound_email_id, INT $vid )
Increments impression count for given cta and variation id |
public static
|
#
set_impression_count( INT $inbound_email_id, INT $vid, $count )
Manually sets conversion count for given cta id and variation id |
public static
INT
|
#
get_conversions( INT $inbound_email_id, INT $vid )
Returns impression for given cta and variation id |
public static
INT
|
#
get_conversion_rate( INT $inbound_email_id, INT $vid )
Returns conversion rate for given cta and variation id |
public static
|
#
record_conversion( INT $inbound_email_id, INT $vid )
Increments conversion count for given cta id and variation id |
public static
|
#
set_conversion_count( INT $inbound_email_id, INT $vid, $count )
Manually sets conversion count for given cta id and variation id |