$this->d_gaid, 't' => false, 'ea' => true, 'lt_e' => false, 'lt_el' => '', 'lt_d' => false, 'lt_dl' => $this->d_el ); /* Get previously saved preference and overwrite defaults */ if(empty($this->ss)) { anflex_msg('gs() $this->ss is empty'); $ss=get_option($this->aon); } else { anflex_msg('gs() $this->ss is not empty'); $ss=$this->ss; } /* Legacy Setting Deletion: delete whole database entry if oblivious setting is in the db */ if($ss['tracking']) { anflex_msg('gs() old settings detected'); delete_option($this->aon); anflex_msg('gs() old settings deleted'); } if(!empty($ss)) { /* Legacy setting cleanup */ foreach ($ss as $key => $option) { if($key=='tracking') {$s['t']==$option;unset($ss[$key]);} if($key=='exclude_admin') {$s['ea']==$option;unset($ss[$key]);} if($key=='link_tracking_external') {$s['lt_e']==$option;unset($ss[$key]);} if($key=='link_tracking_external_exclude_list') {$s['lt_el']==$option;unset($ss[$key]);} if($key=='link_tracking_download') {$s['lt_d']==$option;unset($ss[$key]);} if($key=='link_tracking_download_extension_list') {$s['lt_dl']==$option;unset($ss[$key]);} if($key=='event_tracking') {unset($ss[$key]);} } /* integrate with new setting */ foreach ($ss as $key => $option) { $s[$key] = $option; } } update_option($this->aon,$s); anflex_msg('gs() option updated'); $this->ss=$s; return $s; } /* function aef() Admin Tracking Exclusion flag */ function aef() { anflex_msg('aef() started'); if ($this->ss['ea'] == true) { if (current_user_can('level_8')||current_user_can('activate_plugins')) { return true; } } return false; } /* function aac() Adds Google Analytics code to page */ function aac() { anflex_msg('aac() started'); if ($this->aef()==false) { if(!empty($this->ss)) { anflex_msg('aac() $this->ss is not empty'); $s=$this->ss; } else { anflex_msg('aac() $this->ss is empty - $this->gs() is being called'); $s=$this->gs(); } ?> aef()==true) { ?> ss)) { anflex_msg('ap() $this->ss is not empty'); $s=$this->ss; } else { anflex_msg('ap() $this->ss is empty - $this->gs() is being called'); $s=$this->gs(); } /* form submit result: gaid update */ if (isset($_POST['update_gaid'])) { $s['gaid']=isset($_POST['gaid'])?$_POST['gaid']:$s['gaid']; update_option($this->aon, $s); ?>

aon, $s); ?>

aon, $s); ?>

Anflex GA Settings v

Tracking Setup

">

d_gaid) { ?> change

">

change

">

Tracking Options

/>

With this box checked, Google Analytics code snippet won't be inserted to the web pages for logged-in Administrator accesses.

/> for the file extensions listed (comma-separated)

d_el) { ?>
Default d_el; ?>

/> with domains to exclude other than the page domain (comma-separated)


Default blank

  • When both Download Link and External Link criteria are met at the same time, only Download Link occurs.
  • Links are tracked as Events, found in "Content > Event Tracking".