' . 'Please Authenticate with Google Analytics first.'; } else { if (get_option(Options::PIPELINE)['error']) { echo '

' . 'Provided Resource Key does not contain any Custom Dimensions.' . ' Please enter a valid Resource Key. '; } else if (get_option(Options::GA_ERROR)) { echo '

' . esc_html(get_option(Options::GA_ERROR)) . ''; delete_option(Options::GA_ERROR); } else if (get_option(Options::ENABLE_GA)) { if (get_option(Options::RESOURCE_KEY_UPDATED) || get_option(Options::GA_ID_UPDATED) || get_option(Options::GA_SEND_PAGE_VIEW_UPDATED) || get_option(Options::GA_DIMENSIONS)) { // Include Fiftyonedegrees class if (!class_exists('Fiftyonedegrees')) { require_once('fiftyonedegrees.php'); } $instance = Fiftyonedegrees::get_instance(); $instance->execute_ga_tracking_steps(); if (get_option(Options::RESOURCE_KEY_UPDATED)) { echo '

' . 'Google Analytics Tracking is enabled for the Properties' . ' available in the new Resource Key. '; delete_option(Options::RESOURCE_KEY_UPDATED); } else if (get_option(Options::GA_DIMENSIONS_UPDATED)) { echo '

' . 'Google Analytics Custom Dimensions mapping has been updated.'; delete_option(Options::GA_DIMENSIONS_UPDATED); } else { echo '

' . 'Google Analytics Tracking is enabled for new Google ' . 'Analytics Property Settings.'; delete_option(Options::GA_ID_UPDATED); delete_option(Options::GA_SEND_PAGE_VIEW_UPDATED); } } else { echo '

' . 'Google Analytics Custom Dimensions data collection is ' . 'now enabled for you. '; } } if (!get_option(Options::PIPELINE)['error']) { ?>

The following properties are available with the provided Resource Key. Please Click Enable Google Analytics Tracking to send them as Custom Dimensions to Google Analytics Property or Go Back to change.

prepare_items(); ?>
display();?>
" />