Beispiel #1
0
						</div>
					</div>
				</td>
			</tr>

			<tr valign="top" class="dynamic_options EVENT">
				<th scope="row"><?php 
        esc_html_e('Conditions', 'better-analytics');
        ?>
</th>
				<td>
					<div>
						<?php 
        $matchTypes = DigitalPointBetterAnalytics_Model_Goals::getMatchTypes(true);
        $comparisonTypes = DigitalPointBetterAnalytics_Model_Goals::getComparisonTypes();
        $eventConditionTypes = DigitalPointBetterAnalytics_Model_Goals::getEventConditionTypes();
        foreach ($eventConditionTypes as $conditionCode => $conditionLabel) {
            if ($conditionCode == 'VALUE') {
                $condition = array('type' => $conditionCode, 'comparisonType' => true);
            } else {
                $condition = array('type' => $conditionCode, 'matchType' => true);
            }
            if (!empty($goal['eventDetails']['eventConditions']) && count($goal['eventDetails']['eventConditions']) > 0) {
                foreach ($goal['eventDetails']['eventConditions'] as $existingCondition) {
                    if (@$existingCondition['type'] == $conditionCode) {
                        $condition = $existingCondition;
                        break;
                    }
                }
            }
            echo '<div><span>' . @$eventConditionTypes[$condition['type']] . ':</span><span>';
Beispiel #2
0
 protected function column_slot($item)
 {
     $goalSet = DigitalPointBetterAnalytics_Model_Goals::getGoalSetByGoal($item['id']);
     printf(esc_html__('Goal ID %1$u / Goal Set %2$u', 'better-analytics'), $item['id'], $goalSet);
 }