How to get the plugin to add _anonymizeIP to the google Analytics code | Troubleshooting All in One SEO Pack Pro | Support | Semper Plugins

Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
How to get the plugin to add _anonymizeIP to the google Analytics code
October 28, 2013
6:56 am
Avatar
c.bartsch
Member
Guests
Forum Posts: 3
Member Since:
October 28, 2013
sp_UserOfflineSmall Offline

Hi

I need to get the plugin to add the  _anonymizeIP to the google Analytics code.

I see no way in the Options Settings to get this done.

October 28, 2013
10:56 am
Avatar
Peter Baylies
Admin
Forum Posts: 578
Member Since:
October 16, 2011
sp_UserOfflineSmall Offline

** You currently do not have permission to see this post. To obtain access to these Premium Support Forums, please purchase a plugin and support subscription from Semper Plugins **

October 29, 2013
6:25 am
Avatar
c.bartsch
Member
Guests
Forum Posts: 3
Member Since:
October 28, 2013
sp_UserOfflineSmall Offline

You can see this on http://www.afterworkmagazin.de where the code does not allow me to add the necessary _anonymizeIP code in the plugin embedded scripting

October 29, 2013
6:42 am
Avatar
c.bartsch
Member
Guests
Forum Posts: 3
Member Since:
October 28, 2013
sp_UserOfflineSmall Offline

I found where the code has to be added! If you add a Switch in the Settings Screen you could allow the switching on of off such a Feature.

 

in the aioseop_class.php you have to add the code for Googles anonymized ip address recording:

 

<?php if ( !empty( $aioseop_options[‘aiosp_ga_domain’] ) ) {
    $domain = $aioseop_options[‘aiosp_ga_domain’];
    $domain = trim( $domain );
    $domain = $this->strtolower( $domain );
    if ( $this->strpos( $domain, “http://” ) === 0 ) $domain = $this->substr( $domain, 7 );
    elseif ( $this->strpos( $domain, “https://” ) === 0 ) $domain = $this->substr( $domain, 8 );
    $domain = untrailingslashit( $domain );
?>    _gaq.push([‘_setDomainName’, ‘<?php echo $domain; ?>’]);
    _gaq.push([‘_gat._anonymizeIp’]);

October 29, 2013
9:56 am
Avatar
Peter Baylies
Admin
Forum Posts: 578
Member Since:
October 16, 2011
sp_UserOfflineSmall Offline

** You currently do not have permission to see this post. To obtain access to these Premium Support Forums, please purchase a plugin and support subscription from Semper Plugins **

Forum Timezone: America/New_York

Most Users Ever Online: 964

Currently Online: katie
29 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Member Stats:

Guest Posters: 35

Members: 19453

Moderators: 0

Admins: 8

Forum Stats:

Groups: 4

Forums: 28

Topics: 1873

Posts: 7973

Newest Members:

Marcela Isaza

Administrators: Michael TorbertPeter BayliesSupport TeamSteve MortiboyMatthew RobinsonSteve KlasenArnaud BroesAshish Ravi

[i]
[i]
Skip to toolbar