Google Analyticator - Version 6.5.5

Version Description

Download this release

Release Info

Developer grimmdude
Plugin Icon 128x128 Google Analyticator
Version 6.5.5
Comparing to
See all releases

Code changes from version 6.5.4 to 6.5.5

appsumo-capture-form.php ADDED
@@ -0,0 +1,13 @@
1
+ <div class="google-analyticator-appsumo-capture-container">
2
+ <div class="">
3
+ <div class="google-analyticator-appsumo-capture-header">You’re never paying full price for software again.</div>
4
+ <div class="google-analyticator-appsumo-capture-sub-header">
5
+ We’ll send you the hottest deals straight to your inbox so
6
+ you’re always in on the best-kept software secrets.
7
+ </div>
8
+ <form class="signup-email-form" id="signup_email_form" method="post" action="" onsubmit="submitAppsumoCaptureForm(this.email.value);return false;">
9
+ <input type="email" id="email" name="email" placeholder="Email Address" class="google-analyticator-appsumo-capture-container-input">
10
+ <button class="google-analyticator-appsumo-capture-container-button" type="submit">Send Me Deals</button>
11
+ </form>
12
+ </div>
13
+ </div>
class.analytics.stats.php CHANGED
@@ -136,6 +136,11 @@ class GoogleAnalyticsStats
136
print 'There was an Analytics API service error ' . $e->getCode() . ': ' . $e->getMessage();
137
return false;
138
}
139
140
$profile_id = $profiles->items[0]->id;
141
if (empty($profile_id)) return false;
@@ -156,6 +161,10 @@ class GoogleAnalyticsStats
156
{
157
print 'There was an Analytics API service error ' . $e->getCode() . ': ' . $e->getMessage();
158
}
159
160
161
if( !empty( $profiles->items ) )
136
print 'There was an Analytics API service error ' . $e->getCode() . ': ' . $e->getMessage();
137
return false;
138
}
139
+ catch(Exception $e)
140
+ {
141
+ print $e->getMessage();
142
+ return false;
143
+ }
144
145
$profile_id = $profiles->items[0]->id;
146
if (empty($profile_id)) return false;
161
{
162
print 'There was an Analytics API service error ' . $e->getCode() . ': ' . $e->getMessage();
163
}
164
+ catch(Exception $e)
165
+ {
166
+ print $e->getMessage();
167
+ }
168
169
170
if( !empty( $profiles->items ) )
google-analyticator.php CHANGED
@@ -5,14 +5,14 @@
5
* Plugin URI: http://www.videousermanuals.com/google-analyticator/?utm_campaign=analyticator&utm_medium=plugin&utm_source=readme-txt
6
* Description: Adds the necessary JavaScript code to enable <a href="http://www.google.com/analytics/">Google's Analytics</a>. After enabling this plugin you need to authenticate with Google, then select your domain and you're set.
7
* Author: SumoMe
8
- * Author URI: http://www.sumome.com/?src=wp_readme
9
* Text Domain: google-analyticator
10
*/
11
12
//error_reporting(E_ALL);
13
//ini_set('display_errors', '1');
14
15
- define('GOOGLE_ANALYTICATOR_VERSION', '6.5.4');
16
17
define('GOOGLE_ANALYTICATOR_CLIENTID', '1007949979410.apps.googleusercontent.com');
18
define('GOOGLE_ANALYTICATOR_CLIENTSECRET', 'q06U41XDXtzaXD14E-KO1hti'); //don't worry - this don't need to be secret in our case
@@ -132,6 +132,22 @@ function ga_admin_init() {
132
$plugin_dir = basename(dirname(__FILE__));
133
load_plugin_textdomain('google-analyticator', 'wp-content/plugins/' . $plugin_dir . '/localizations', $plugin_dir . '/localizations');
134
135
}
136
137
# Add the core Google Analytics script, with a high priority to ensure last script for async tracking
@@ -474,558 +490,562 @@ function ga_options_page() {
474
475
?>
476
<div class="wrap">
477
- <?php if (get_option('ga_analyticator_global_notification') == 1): ?>
478
- <style type="text/css">
479
- #ga_analyticator_global_notification a.button:active {vertical-align:baseline;}
480
- </style>
481
- <div id="ga_analyticator_global_notification" class="updated" style="border:3px solid #317A96;position:relative;background:##3c9cc2;background-color:#3c9cc2;color:#ffffff;height:70px;">
482
- <a class="notice-dismiss" href="<?php echo admin_url('admin.php?page=google-analyticator&ga_analyticator_global_notification=0'); ?>" style="right:10px;top:0;"></a>
483
- <p style="font-size:16px;line-height:50px;">
484
- <?php _e('Grow your site faster!'); ?> &nbsp;<a style="background-color: #6267BE;border-color: #3C3F76;" href="<?php echo admin_url('plugin-install.php?tab=plugin-information&plugin=sumome&TB_iframe=true&width=743&height=500'); ?>" class="thickbox button button-primary">Get SumoMe WordPress Plugin</a>
485
- </p>
486
- </div>
487
- <?php endif ?>
488
- <form method="post" action="<?php echo ga_analyticator_setting_url();?>">
489
- <?php
490
- # Add a nonce
491
- wp_nonce_field('google-analyticator-update_settings');
492
- ?>
493
- <?php if (get_option(key_ga_status) == ga_disabled) { ?>
494
- <div style="margin:10px auto; border:3px #f00 solid; background-color:#fdd; color:#000; padding:10px; text-align:center;">
495
- <?php _e('Google Analytics integration is currently <strong>DISABLED</strong>.', 'google-analyticator'); ?>
496
</div>
497
- <?php } ?>
498
- <?php if ((get_option(key_ga_uid) == "XX-XXXXX-X") && (get_option(key_ga_status) != ga_disabled)) { ?>
499
- <div style="margin:10px auto; border:3px #f00 solid; background-color:#fdd; color:#000; padding:10px; text-align:center;">
500
- <?php _e('Google Analytics integration is currently enabled, but you did not enter a UID. Tracking will not occur.', 'google-analyticator'); ?>
501
</div>
502
- <?php } ?>
503
- <div id="vumga-container" style="position:relative;">
504
- <?php
505
- $addons = get_option("gapro_addons");
506
- if(!$addons){?>
507
- <div id="vumga-sidebar" style="position: absolute; top: 40px; right: 0; width: 250px; border: 1px solid #ccc; padding: 20px; background:#FFFFFF">
508
- <h3 style="text-align:center">Support us</h3>
509
- <p>1- Check out our <a target="_blank" href="https://wordpress.org/plugins/sumome">SumoMe plugin</a></p>
510
- <p>2- <a target="_blank" href="https://wordpress.org/support/view/plugin-reviews/google-analyticator">Leave a :) Review</a></p>
511
- <p>3- Have a great day!</p>
512
- <h3 style="text-align:center">Show off your analytics</h3>
513
- <p>Use short code <b>[analytics]</b> anywhere on your site to show your analytics publicly.</p>
514
- <p>Use short code <b>[analytics-counter]</b> anywhere on your site to display the page view counter widget.</p>
515
- </div>
516
- <?php }?>
517
- <div style="margin-right: 320px;">
518
- <table class="form-table" cellspacing="2" cellpadding="5" width="100%">
519
- <tr>
520
- <td colspan="2" style="padding-left:0"><h3>
521
- <?php _e('Basic Settings', 'google-analyticator'); ?>
522
- </h3></td>
523
- </tr>
524
-
525
- <tr>
526
- <th width="35%" valign="top" style="padding-top: 10px;"> <label for="<?php echo key_ga_status ?>">
527
- <?php _e('Google Analytics logging is', 'google-analyticator'); ?>:</label>
528
- </th>
529
- <td>
530
- <?php
531
- echo "<select name='".key_ga_status."' id='".key_ga_status."'>\n";
532
-
533
- echo "<option value='".ga_enabled."'";
534
- if(get_option(key_ga_status) == ga_enabled)
535
- echo " selected='selected'";
536
- echo ">" . __('Enabled', 'google-analyticator') . "</option>\n";
537
-
538
- echo "<option value='".ga_disabled."'";
539
- if(get_option(key_ga_status) == ga_disabled)
540
- echo" selected='selected'";
541
- echo ">" . __('Disabled', 'google-analyticator') . "</option>\n";
542
-
543
- echo "</select>\n";
544
- ?>
545
-
546
- </td>
547
- </tr>
548
- <tr id="ga_ajax_accounts">
549
- <th valign="top" style="padding-top: 10px;"> <label for="<?php echo key_ga_uid; ?>"><?php _e('Analytics Account', 'google-analyticator'); ?>:</label>
550
- </th>
551
- <td>
552
-
553
- <?php if (get_option(key_ga_disable_gasites) == ga_disabled){?>
554
- <?php
555
-
556
- if( $useAuth ):
557
-
558
- $uids = ga_get_analytics_accounts();
559
-
560
- echo "<select name='".key_ga_uid."'> ";
561
-
562
- $hasSelected = false; // Will be set to true once a match is found. Cant echo selected twice.
563
-
564
- foreach($uids as $id=>$domain):
565
-
566
- echo '<option value="'.$id.'"';
567
- // If set in DB.
568
- if( get_option(key_ga_uid) == $id ) { $hasSelected=true; echo ' selected="selected"'; }
569
- // Else if the domain matches the current domain & nothing set in DB.
570
- elseif( ( $_SERVER['HTTP_HOST'] == $domain ) && ( ! $hasSelected ) ) { $hasSelected=true; echo ' selected="selected"'; }
571
- echo '>'.$domain.'</option>';
572
-
573
- endforeach;
574
-
575
- echo '</select>';
576
-
577
- // Need a copy of the array, so we can store the domain name too (for visual purposes)
578
- echo '<input type="hidden" name="ga_domain_names" value=\'' . serialize( $uids ) . '\' />';
579
-
580
- else:
581
-
582
- echo '<input type="text" name="'.key_ga_uid.'" value="'. get_option( key_ga_uid ) .'" />';
583
-
584
- endif;
585
- ?><br />
586
- <input type="checkbox" name="<?php echo key_ga_disable_gasites?>" id="<?php echo key_ga_disable_gasites?>"<?php if(get_option(key_ga_disable_gasites) == ga_enabled){?> checked="checked"<?php }?> /> <?php _e('Hide Google Analytics UID after saving', 'google-analyticator'); ?>
587
- <?php }else{
588
- ?><?php echo get_option( 'ga_domain_name' ); ?> - To change this, you must <a href="<?php echo admin_url('/options-general.php?page=ga_reset'); ?>">deauthorize and reset the plugin</a>
589
- <input type="hidden" name="<?php echo key_ga_disable_gasites?>" value="<?php echo ga_enabled?>" /><input type="hidden" name="<?php echo key_ga_uid?>" value="<?php echo get_option(key_ga_uid)?>" />
590
- <?php
591
- }?>
592
- </td>
593
- </tr>
594
- <tr>
595
- <th valign="top" style="padding-top: 10px;"> <label for="<?php echo key_ga_analytic_snippet ?>">
596
- <?php _e('Tracking Code', 'google-analyticator'); ?>:</label>
597
- </th>
598
- <td><?php
599
- echo "<select name='".key_ga_analytic_snippet."' id='".key_ga_analytic_snippet."'>\n";
600
-
601
- echo "<option value='".ga_disabled."'";
602
- if(get_option(key_ga_analytic_snippet) == ga_disabled)
603
- echo" selected='selected'";
604
- echo ">" . __('Universal (analytics.js)', 'google-analyticator') . "</option>\n";
605
-
606
- echo "<option value='".ga_enabled."'";
607
- if(get_option(key_ga_analytic_snippet) == ga_enabled)
608
- echo " selected='selected'";
609
- echo ">" . __('Traditional (ga.js)', 'google-analyticator') . "</option>\n";
610
-
611
- echo "</select>\n";
612
- ?>
613
- <p class="setting-description">
614
- <?php _e('If you are using Universal Analytics make sure you have changed your account to a Universal Analytics property in Google Analytics. Read more about Universal Analytics <a href="https://support.google.com/analytics/answer/2817075?hl=en" target="_blank">here</a>.', 'google-analyticator'); ?>
615
- </p>
616
- </td>
617
- </tr>
618
- <tr>
619
- <th valign="top" style="padding-top: 10px;"> <label for="<?php echo key_ga_widgets; ?>">
620
- <?php _e('Support us', 'google-analyticator'); ?>:</label>
621
- </th>
622
- <td><?php
623
- echo "<select name='".key_ga_show_ad."' id='".key_ga_show_ad."'>\n";
624
-
625
- echo "<option value='1'";
626
- if(get_option(key_ga_show_ad) == '1')
627
- echo " selected='selected'";
628
- echo ">" . __('Yes', 'google-analyticator') . "</option>\n";
629
-
630
- echo "<option value='0' ";
631
- if(get_option(key_ga_show_ad) == '0')
632
- echo" selected='selected'";
633
- echo ">" . __('No', 'google-analyticator') . "</option>\n";
634
-
635
- echo "</select>\n";
636
- ?>
637
- <p class="setting-description">
638
- <?php _e('Show our link on the admin dashboard. Pretty please.', 'google-analyticator'); ?>
639
- </p></td>
640
- </tr>
641
- <tr>
642
- <td><b>View your Dashboard</b></td>
643
- <td><a href="../wp-admin/index.php">Click here</a></td>
644
- </tr>
645
- <tr>
646
- <td><input type="submit" class="button button-primary" name="info_update" value="<?php _e('Save Changes', 'google-analyticator'); ?>" /></td>
647
- </tr>
648
- <tr>
649
- <td colspan="2" style="padding-left:0"><h3>
650
- <?php _e('Tracking Settings', 'google-analyticator'); ?>
651
- </h3></td>
652
- </tr>
653
- <tr>
654
- <th valign="top" style="padding-top: 10px;"> <label>
655
- <?php _e('Anonymize IP Addresses', 'google-analyticator'); ?>:</label>
656
- </th>
657
- <td><?php
658
- echo "<select name='".key_ga_annon."' id='".key_ga_annon."'>\n";
659
-
660
- echo "<option value='0'";
661
- if(get_option(key_ga_annon) == false )
662
- echo " selected='selected'";
663
- echo ">" . __('No', 'google-analyticator') . "</option>\n";
664
-
665
- echo "<option value='1'";
666
- if(get_option(key_ga_annon) == true)
667
- echo" selected='selected'";
668
- echo ">" . __('Yes', 'google-analyticator') . "</option>\n";
669
-
670
- echo "</select>\n";
671
-
672
- ?>
673
- <p class="setting-description">
674
- <?php _e('By selecting "Yes", This tells Google Analytics to anonymize the information sent by the tracker objects by removing the last octet of the IP address prior to its storage. Note that this will slightly reduce the accuracy of geographic reporting.', 'google-analyticator'); ?>
675
- </p></td>
676
- </tr>
677
- <tr>
678
- <th valign="top" style="padding-top: 10px;"> <label for="<?php echo key_ga_admin ?>">
679
- <?php _e('Track all logged in WordPress users', 'google-analyticator'); ?>:</label>
680
- </th>
681
- <td><?php
682
- echo "<select name='".key_ga_admin."' id='".key_ga_admin."'>\n";
683
-
684
- echo "<option value='".ga_enabled."'";
685
- if(get_option(key_ga_admin) == ga_enabled)
686
- echo " selected='selected'";
687
- echo ">" . __('Yes', 'google-analyticator') . "</option>\n";
688
-
689
- echo "<option value='".ga_disabled."'";
690
- if(get_option(key_ga_admin) == ga_disabled)
691
- echo" selected='selected'";
692
- echo ">" . __('No', 'google-analyticator') . "</option>\n";
693
-
694
- echo "</select>\n";
695
-
696
- ?>
697
- <p class="setting-description">
698
- <?php _e('Selecting "no" to this option will prevent logged in WordPress users from showing up on your Google Analytics reports. This setting will prevent yourself or other users from showing up in your Analytics reports. Use the next setting to determine what user groups to exclude.', 'google-analyticator'); ?>
699
- </p></td>
700
- </tr>
701
- <tr>
702
- <th valign="top" style="padding-top: 10px;"> <label for="<?php echo key_ga_admin_role ?>">
703
- <?php _e('User roles to not track', 'google-analyticator'); ?>:</label>
704
- </th>
705
- <td><?php
706
- global $wp_roles;
707
- $roles = $wp_roles->get_names();
708
- $selected_roles = get_option(key_ga_admin_role);
709
- if ( !is_array($selected_roles) ) $selected_roles = array();
710
-
711
- # Loop through the roles
712
- foreach ( $roles AS $role => $name ) {
713
- echo '<input type="checkbox" value="' . $role . '" name="' . key_ga_admin_role . '[]"';
714
- if ( in_array($role, $selected_roles) )
715
- echo " checked='checked'";
716
- $name_pos = strpos($name, '|');
717
- $name = ( $name_pos ) ? substr($name, 0, $name_pos) : $name;
718
- echo ' /> ' . _x($name, 'User role') . '<br />';
719
- }
720
- ?>
721
- <p class="setting-description">
722
- <?php _e('Specifies the user roles to not include in your WordPress Analytics report. If a user is logged into WordPress with one of these roles, they will not show up in your Analytics report.', 'google-analyticator'); ?>
723
- </p></td>
724
- </tr>
725
- <tr>
726
- <th valign="top" style="padding-top: 10px;"> <label for="<?php echo key_ga_admin_disable ?>">
727
- <?php _e('Method to prevent tracking', 'google-analyticator'); ?>:</label>
728
- </th>
729
- <td><?php
730
- echo "<select name='".key_ga_admin_disable."' id='".key_ga_admin_disable."'>\n";
731
-
732
- echo "<option value='remove'";
733
- if(get_option(key_ga_admin_disable) == 'remove')
734
- echo " selected='selected'";
735
- echo ">" . __('Remove', 'google-analyticator') . "</option>\n";
736
-
737
- echo "<option value='admin'";
738
- if(get_option(key_ga_admin_disable) == 'admin')
739
- echo" selected='selected'";
740
- echo ">" . __('Use \'admin\' variable', 'google-analyticator') . "</option>\n";
741
-
742
- echo "</select>\n";
743
- ?>
744
- <span class="ga_admin_disable_DimentionIndex_span"> <?php _e('Dimension Index', 'google-analyticator'); ?>:
745
- <input type="text" name="<?php echo key_ga_admin_disable_DimentionIndex?>" style="width:50px;" value="<?php echo get_option(key_ga_admin_disable_DimentionIndex)?>" class="<?php echo key_ga_admin_disable_DimentionIndex?>" id="<?php echo key_ga_admin_disable_DimentionIndex?>" />
746
- </span>
747
- <p class="setting-description">
748
- <?php _e('Selecting the "Remove" option will physically remove the tracking code from logged in users. Selecting the "Use \'admin\' variable" option will assign a variable called \'admin\' to logged in users. This option will allow Google Analytics\' site overlay feature to work, but you will have to manually configure Google Analytics to exclude tracking from pageviews with the \'admin\' variable.', 'google-analyticator'); ?>
749
- </p></td>
750
- </tr>
751
- <tr>
752
- <th valign="top" style="padding-top: 10px;"> <label>
753
- <?php _e('Enable Remarketing, Demographics and Interests reports', 'google-analyticator'); ?>:</label>
754
- </th>
755
- <td><?php
756
- echo "<select name='".key_ga_remarketing."' id='".key_ga_remarketing."'>\n";
757
-
758
- echo "<option value='0'";
759
- if(get_option(key_ga_remarketing) == '0' )
760
- echo" selected='selected'";
761
- echo ">" . __('No', 'google-analyticator') . "</option>\n";
762
-
763
-
764
- echo "<option value='1'";
765
- if(get_option(key_ga_remarketing) == '1' )
766
- echo " selected='selected'";
767
- echo ">" . __('Yes', 'google-analyticator') . "</option>\n";
768
-
769
-
770
- echo "</select>\n";
771
-
772
- ?>
773
- <p class="setting-description">
774
- <?php _e( 'In order to use remarketing, <a href="https://support.google.com/analytics/answer/2611270" target="_blank">please make sure you complete this checklist from Google</a>', 'google-analyticator'); ?>
775
- </p>
776
- <p class="setting-description">
777
- <?php _e( 'To use remarketing, <a href="https://support.google.com/analytics/answer/2884495" target="_blank">Edit permission</a> is required', 'google-analyticator'); ?>
778
- </p></td>
779
- </tr>
780
- <tr>
781
- <th valign="top" style="padding-top: 10px;"> <label><?php _e('Track WordPress Login Page', 'google-analyticator'); ?>:</label>
782
- </th>
783
- <td><?php
784
- echo "<select name='".key_ga_track_login."' id='".key_ga_track_login."'>\n";
785
-
786
- echo "<option value='1'";
787
- if(get_option(key_ga_track_login) == '1' )
788
- echo " selected='selected'";
789
- echo ">" . __('Yes', 'google-analyticator') . "</option>\n";
790
-
791
- echo "<option value='0'";
792
- if(get_option(key_ga_track_login) == '0' )
793
- echo" selected='selected'";
794
- echo ">" . __('No', 'google-analyticator') . "</option>\n";
795
-
796
- echo "</select>\n";
797
-
798
- ?>
799
- <p class="setting-description">
800
- <?php _e( 'This will track all access to wp-login.php', 'google-analyticator'); ?>
801
- </p></td>
802
- </tr>
803
- <tr>
804
- <td colspan="2" style="padding-left:0"><h3><?php _e('Link Tracking Settings', 'google-analyticator'); ?></h3></td>
805
- </tr>
806
- <tr>
807
- <th valign="top" style="padding-top: 10px;"> <label for="<?php echo key_ga_outbound ?>">
808
- <?php _e('Outbound link tracking', 'google-analyticator'); ?>:</label>
809
- </th>
810
- <td><?php
811
- echo "<select name='".key_ga_outbound."' id='".key_ga_outbound."'>\n";
812
-
813
- echo "<option value='".ga_enabled."'";
814
- if(get_option(key_ga_outbound) == ga_enabled)
815
- echo " selected='selected'";
816
- echo ">" . __('Enabled', 'google-analyticator') . "</option>\n";
817
-
818
- echo "<option value='".ga_disabled."'";
819
- if(get_option(key_ga_outbound) == ga_disabled)
820
- echo" selected='selected'";
821
- echo ">" . __('Disabled', 'google-analyticator') . "</option>\n";
822
-
823
- echo "</select>\n";
824
- ?>
825
- <p class="setting-description">
826
- <?php _e('Disabling this option will turn off the tracking of outbound links. It\'s recommended not to disable this option unless you\'re a privacy advocate (now why would you be using Google Analytics in the first place?) or it\'s causing some kind of weird issue.', 'google-analyticator'); ?>
827
- </p></td>
828
- </tr>
829
- <tr>
830
- <th valign="top" style="padding-top: 10px;"> <label for="<?php echo key_ga_event ?>">
831
- <?php _e('Event tracking', 'google-analyticator'); ?>:</label>
832
- </th>
833
- <td><?php
834
- echo "<select name='".key_ga_event."' id='".key_ga_event."'>\n";
835
-
836
- echo "<option value='".ga_enabled."'";
837
- if(get_option(key_ga_event) == ga_enabled)
838
- echo " selected='selected'";
839
- echo ">" . __('Enabled', 'google-analyticator') . "</option>\n";
840
-
841
- echo "<option value='".ga_disabled."'";
842
- if(get_option(key_ga_event) == ga_disabled)
843
- echo" selected='selected'";
844
- echo ">" . __('Disabled', 'google-analyticator') . "</option>\n";
845
-
846
- echo "</select>\n";
847
- ?>
848
- <p class="setting-description">
849
- <?php _e('Enabling this option will treat outbound links and downloads as events instead of pageviews. Since the introduction of <a href="https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide">event tracking in Analytics</a>, this is the recommended way to track these types of actions. Only disable this option if you must use the old pageview tracking method.', 'google-analyticator'); ?>
850
- </p></td>
851
- </tr>
852
- <tr>
853
- <th valign="top" style="padding-top: 10px;"> <label for="<?php echo key_ga_enhanced_link_attr ?>">
854
- <?php _e('Enhanced Link Attribution', 'google-analyticator'); ?>:</label>
855
- </th>
856
- <td><?php
857
- echo "<select name='".key_ga_enhanced_link_attr."' id='".key_ga_enhanced_link_attr."'>\n";
858
-
859
- echo "<option value='".ga_enabled."'";
860
- if(get_option(key_ga_enhanced_link_attr) == ga_enabled)
861
- echo " selected='selected'";
862
- echo ">" . __('Enabled', 'google-analyticator') . "</option>\n";
863
-
864
- echo "<option value='".ga_disabled."'";
865
- if(get_option(key_ga_enhanced_link_attr) == ga_disabled )
866
- echo " selected='selected'";
867
- echo ">" . __('Disabled', 'google-analyticator') . "</option>\n";
868
-
869
- echo "</select>\n";
870
- ?>
871
- <p class="setting-description">
872
- <?php _e('You can tag your pages to implement an enhanced link-tracking functionality by enabling this option. <a href="https://support.google.com/analytics/answer/2558867?hl=en" target="_blank">learn more</a>', 'google-analyticator'); ?>
873
- </p></td>
874
- </tr>
875
- <tr>
876
- <th valign="top" style="padding-top: 10px;"> <label for="<?php echo key_ga_downloads; ?>"><?php _e('Download extensions to track', 'google-analyticator'); ?>:</label>
877
- </th>
878
- <td><?php
879
- echo "<input type='text' size='50' ";
880
- echo "name='".key_ga_downloads."' ";
881
- echo "id='".key_ga_downloads."' ";
882
- echo "value='".wp_filter_kses(get_option(key_ga_downloads))."' />\n";
883
- ?>
884
- <p class="setting-description">
885
- <?php _e('Enter any extensions of files you would like to be tracked as a download. For example to track all MP3s and PDFs enter <strong>mp3,pdf</strong>. <em>Outbound link tracking must be enabled for downloads to be tracked.</em>', 'google-analyticator'); ?>
886
- </p></td>
887
- </tr>
888
- <tr>
889
- <th valign="top" style="padding-top: 10px;"> <label for="<?php echo key_ga_outbound_prefix; ?>">
890
- <?php _e('Prefix external links with', 'google-analyticator'); ?>:</label>
891
- </th>
892
- <td><?php
893
- echo "<input type='text' size='50' ";
894
- echo "name='".key_ga_outbound_prefix."' ";
895
- echo "id='".key_ga_outbound_prefix."' ";
896
- echo "value='". stripslashes( wp_filter_kses(get_option(key_ga_outbound_prefix)))."' />\n";
897
- ?>
898
- <p class="setting-description">
899
- <?php _e('Enter a name for the section tracked external links will appear under. This option has no effect if event tracking is enabled.', 'google-analyticator'); ?>
900
- </em></p></td>
901
- </tr>
902
- <tr>
903
- <th valign="top" style="padding-top: 10px;"> <label for="<?php echo key_ga_downloads_prefix; ?>">
904
- <?php _e('Prefix download links with', 'google-analyticator'); ?>:</label>
905
- </th>
906
- <td><?php
907
- echo "<input type='text' size='50' ";
908
- echo "name='".key_ga_downloads_prefix."' ";
909
- echo "id='".key_ga_downloads_prefix."' ";
910
- echo "value='".stripslashes(wp_filter_kses ( get_option(key_ga_downloads_prefix) ))."' />\n";
911
- ?>
912
- <p class="setting-description">
913
- <?php _e('Enter a name for the section tracked download links will appear under. This option has no effect if event tracking is enabled.', 'google-analyticator'); ?>
914
- </em></p></td>
915
- </tr>
916
- <tr>
917
- <th valign="top" style="padding-top: 10px;"> <label for="<?php echo key_ga_adsense; ?>">
918
- <?php _e('Google Adsense ID', 'google-analyticator'); ?>:</label>
919
- </th>
920
- <td><?php
921
- echo "<input type='text' size='50' ";
922
- echo "name='".key_ga_adsense."' ";
923
- echo "id='".key_ga_adsense."' ";
924
- echo "value='".get_option(key_ga_adsense)."' />\n";
925
- ?>
926
- <p class="setting-description">
927
- <?php _e('Enter your Google Adsense ID assigned by Google Analytics in this box. This enables Analytics tracking of Adsense information if your Adsense and Analytics accounts are linked.', 'google-analyticator'); ?>
928
- </p></td>
929
- </tr>
930
- <tr>
931
- <td colspan="2" style="padding-left:0"><h3><?php _e('Additional Tracking Code', 'google-analyticator'); ?></h3></td>
932
- </tr>
933
- <tr>
934
- <th valign="top" style="padding-top: 10px;"> <label for="<?php echo key_ga_extra; ?>">
935
- <?php _e('Additional tracking code', 'google-analyticator'); ?>
936
- <br />(<?php _e('before tracker initialization', 'google-analyticator'); ?>):</label>
937
- </th>
938
- <td><?php
939
- echo "<textarea cols='50' rows='8' ";
940
- echo "name='".key_ga_extra."' ";
941
- echo "id='".key_ga_extra."'>";
942
- echo stripslashes(get_option(key_ga_extra))."</textarea>\n";
943
- ?>
944
- <p class="setting-description">
945
- <?php _e('Enter any additional lines of tracking code that you would like to include in the Google Analytics tracking script. The code in this section will be displayed <strong>before</strong> the Google Analytics tracker is initialized.', 'google-analyticator'); ?>
946
- </p></td>
947
- </tr>
948
- <tr>
949
- <th valign="top" style="padding-top: 10px;"> <label for="<?php echo key_ga_extra_after; ?>">
950
- <?php _e('Additional tracking code', 'google-analyticator'); ?>
951
- <br />
952
- (<?php _e('after tracker initialization', 'google-analyticator'); ?>):</label>
953
- </th>
954
- <td><?php
955
- echo "<textarea cols='50' rows='8' ";
956
- echo "name='".key_ga_extra_after."' ";
957
- echo "id='".key_ga_extra_after."'>";
958
- echo stripslashes(get_option(key_ga_extra_after))."</textarea>\n";
959
- ?>
960
- <p class="setting-description">
961
- <?php _e('Enter any additional lines of tracking code that you would like to include in the Google Analytics tracking script. The code in this section will be displayed <strong>after</strong> the Google Analytics tracker is initialized.', 'google-analyticator'); ?>
962
- </p></td>
963
- </tr>
964
- <tr>
965
- <td colspan="2" style="padding-left:0"><h3><?php _e('Admin Dashboard Widgets', 'google-analyticator'); ?></h3>
966
- <?php if(!$useAuth): ?>
967
- <div style="margin:10px auto; border:3px #f00 solid; background-color:#fdd; color:#000; padding:10px; text-align:center;">
968
- <?php _e('You have not authenticated with Google - you cannot use dashboard widgets! Reset the plugin to authenticate..', 'google-analyticator'); ?>
969
- </div>
970
- <?php endif;?></td>
971
- </tr>
972
- <tr<?php if(!$useAuth){echo ' style="display:none"';}?>>
973
- <th valign="top" style="padding-top: 10px;"><label for="<?php echo key_ga_widgets; ?>">
974
- <?php _e('Include widgets', 'google-analyticator'); ?>:</label></th>
975
- <td><?php
976
- echo "<select name='".key_ga_widgets."' id='".key_ga_widgets."'>\n";
977
-
978
- echo "<option value='".ga_enabled."'";
979
- if(get_option(key_ga_widgets) == ga_enabled)
980
- echo " selected='selected'";
981
- echo ">" . __('Enabled', 'google-analyticator') . "</option>\n";
982
-
983
- echo "<option value='".ga_disabled."'";
984
- if(get_option(key_ga_widgets) == ga_disabled)
985
- echo" selected='selected'";
986
- echo ">" . __('Disabled', 'google-analyticator') . "</option>\n";
987
-
988
- echo "</select>\n";
989
- ?>
990
- <p class="setting-description">
991
- <?php _e('Disabling this option will completely remove the Dashboard Summary widget and the theme Stats widget. Use this option if you would prefer to not see the widgets.', 'google-analyticator'); ?>
992
- </p></td>
993
- </tr>
994
- <tr<?php if(!$useAuth){echo ' style="display:none"';}?>>
995
- <th valign="top" style="padding-top: 10px;"> <label for="<?php echo key_ga_dashboard_role ?>">
996
- <?php _e('User roles that can see the dashboard widget', 'google-analyticator'); ?>:</label>
997
- </th>
998
- <td><?php
999
- global $wp_roles;
1000
- $roles = $wp_roles->get_names();
1001
- $selected_roles = get_option(key_ga_dashboard_role);
1002
- if ( !is_array($selected_roles) ) $selected_roles = array();
1003
-
1004
- # Loop through the roles
1005
- foreach ( $roles AS $role => $name ) {
1006
- echo '<input type="checkbox" value="' . $role . '" name="' . key_ga_dashboard_role . '[]"';
1007
- if ( in_array($role, $selected_roles) )
1008
- echo " checked='checked'";
1009
- $name_pos = strpos($name, '|');
1010
- $name = ( $name_pos ) ? substr($name, 0, $name_pos) : $name;
1011
- echo ' /> ' . _x($name, 'User role') . '<br />';
1012
- }
1013
- ?>
1014
- <p class="setting-description">
1015
- <?php _e('Specifies the user roles that can see the dashboard widget. If a user is not in one of these role groups, they will not see the dashboard widget.', 'google-analyticator'); ?>
1016
- </p></td>
1017
- </tr>
1018
- <?php do_action("ga_experiment_setting_view");?>
1019
- </table>
1020
- <p class="submit">
1021
- <input type="submit" class="button button-primary" name="info_update" value="<?php _e('Save Changes', 'google-analyticator'); ?>" />
1022
- </p>
1023
- <a href="<?php echo ga_analyticator_setting_url(). '&pageaction=ga_clear_cache' ?>"><?php _e('Clear Analyticator Cache', 'google-analyticator'); ?></a> | <a href="<?php echo wp_nonce_url( admin_url('/options-general.php?page=ga_reset'), 'ga-reset'); ?>">
1024
- <?php _e('Deauthorize &amp; Reset Google Analyticator.', 'google-analyticator'); ?></a>
1025
- </form>
1026
-
1027
- </div>
1028
</div>
1029
<!-- end wrap -->
1030
</div>
1031
<!-- end vumga-container -->
@@ -1121,7 +1141,7 @@ function add_google_analytics()
1121
if ( !function_exists("is_preview") || ( function_exists("is_preview") && !is_preview() ) )
1122
{
1123
# Add the notice that Google Analyticator tracking is enabled
1124
- echo "<!-- Google Analytics Tracking by Google Analyticator " . GOOGLE_ANALYTICATOR_VERSION . ": http://www.videousermanuals.com/google-analyticator/ -->\n";
1125
1126
# Add the Adsense data if specified
1127
if ( get_option(key_ga_adsense) != '' )
@@ -1410,11 +1430,36 @@ function ga_analyticator_other_plugins_page() {
1410
function ga_analyticator_top_level_menu() {
1411
$menu_page = add_menu_page( 'Google Analytics', 'Google Analytics', 'manage_options', 'google-analyticator', 'ga_settings_page', 'dashicons-chart-line');
1412
add_action('load-'.$menu_page, 'ga_pre_load' );
1413
- add_submenu_page( 'google-analyticator', 'Other Plugins', 'Other Plugins', 'manage_options', 'google-analyticator-other-plugins', 'ga_analyticator_other_plugins_page');
1414
1415
$activate_page = add_submenu_page( null, 'Activation', 'Google Analytics', 'manage_options', 'ga_activate' , 'ga_activate');
1416
$reset_page = add_submenu_page(null, 'Reset', 'Reset', 'activate_plugins', 'ga_reset', 'ga_reset' );
1417
add_action('load-'.$reset_page, 'ga_do_reset' );
1418
}
1419
1420
add_action( 'admin_menu', 'ga_analyticator_top_level_menu' );
5
* Plugin URI: http://www.videousermanuals.com/google-analyticator/?utm_campaign=analyticator&utm_medium=plugin&utm_source=readme-txt
6
* Description: Adds the necessary JavaScript code to enable <a href="http://www.google.com/analytics/">Google's Analytics</a>. After enabling this plugin you need to authenticate with Google, then select your domain and you're set.
7
* Author: SumoMe
8
+ * Author URI: https://appsumo.com/tools/wordpress/?utm_source=sumo&utm_medium=wp-widget&utm_campaign=google-analyticator
9
* Text Domain: google-analyticator
10
*/
11
12
//error_reporting(E_ALL);
13
//ini_set('display_errors', '1');
14
15
+ define('GOOGLE_ANALYTICATOR_VERSION', '6.5.5');
16
17
define('GOOGLE_ANALYTICATOR_CLIENTID', '1007949979410.apps.googleusercontent.com');
18
define('GOOGLE_ANALYTICATOR_CLIENTSECRET', 'q06U41XDXtzaXD14E-KO1hti'); //don't worry - this don't need to be secret in our case
132
$plugin_dir = basename(dirname(__FILE__));
133
load_plugin_textdomain('google-analyticator', 'wp-content/plugins/' . $plugin_dir . '/localizations', $plugin_dir . '/localizations');
134
135
+ google_analyticator_handle_external_redirects();
136
+
137
+ wp_enqueue_script('google-analyticator-admin',plugin_dir_url( __FILE__ ). 'scripts/google-analyticator-scripts.js',array('jquery'));
138
+ wp_enqueue_style('google-analyticator-admin-style',plugin_dir_url( __FILE__ ).'styles/google-analyticator-style-common.css', array(), '3.1.1');
139
+
140
+ }
141
+
142
+ function google_analyticator_handle_external_redirects() {
143
+ if ( empty( $_GET['page'] ) ) {
144
+ return;
145
+ }
146
+
147
+ if ( 'google_analyticator_go_appsumo_pro' === $_GET['page'] ) {
148
+ wp_redirect( ( 'https://appsumo.com/tools/wordpress/?utm_source=sumo&utm_medium=wp-widget&utm_campaign=google-analyticator' ) );
149
+ die;
150
+ }
151
}
152
153
# Add the core Google Analytics script, with a high priority to ensure last script for async tracking
490
491
?>
492
<div class="wrap">
493
+ <div class="google-analyticator-content-left">
494
+ <?php if (get_option('ga_analyticator_global_notification') == 1): ?>
495
+ <style type="text/css">
496
+ #ga_analyticator_global_notification a.button:active {vertical-align:baseline;}
497
+ </style>
498
+
499
+ <?php endif ?>
500
+ <form method="post" action="<?php echo ga_analyticator_setting_url();?>">
501
+ <?php
502
+ # Add a nonce
503
+ wp_nonce_field('google-analyticator-update_settings');
504
+ ?>
505
+ <?php if (get_option(key_ga_status) == ga_disabled) { ?>
506
+ <div style="margin:10px auto; border:3px #f00 solid; background-color:#fdd; color:#000; padding:10px; text-align:center;">
507
+ <?php _e('Google Analytics integration is currently <strong>DISABLED</strong>.', 'google-analyticator'); ?>
508
+ </div>
509
+ <?php } ?>
510
+ <?php if ((get_option(key_ga_uid) == "XX-XXXXX-X") && (get_option(key_ga_status) != ga_disabled)) { ?>
511
+ <div style="margin:10px auto; border:3px #f00 solid; background-color:#fdd; color:#000; padding:10px; text-align:center;">
512
+ <?php _e('Google Analytics integration is currently enabled, but you did not enter a UID. Tracking will not occur.', 'google-analyticator'); ?>
513
+ </div>
514
+ <?php } ?>
515
+ <div id="vumga-container" style="position:relative;">
516
+
517
+ <div class="google-analyticator-left-column">
518
+ <table class="form-table" cellspacing="2" cellpadding="5" width="100%">
519
+ <tr>
520
+ <td colspan="2" style="padding-left:0"><h3>
521
+ <?php _e('Basic Settings', 'google-analyticator'); ?>
522
+ </h3></td>
523
+ </tr>
524
+
525
+ <tr>
526
+ <th width="35%" valign="top" style="padding-top: 10px;"> <label for="<?php echo key_ga_status ?>">
527
+ <?php _e('Google Analytics logging is', 'google-analyticator'); ?>:</label>
528
+ </th>
529
+ <td>
530
+ <?php
531
+ echo "<select name='".key_ga_status."' id='".key_ga_status."'>\n";
532
+
533
+ echo "<option value='".ga_enabled."'";
534
+ if(get_option(key_ga_status) == ga_enabled)
535
+ echo " selected='selected'";
536
+ echo ">" . __('Enabled', 'google-analyticator') . "</option>\n";
537
+
538
+ echo "<option value='".ga_disabled."'";
539
+ if(get_option(key_ga_status) == ga_disabled)
540
+ echo" selected='selected'";
541
+ echo ">" . __('Disabled', 'google-analyticator') . "</option>\n";
542
+
543
+ echo "</select>\n";
544
+ ?>
545
+
546
+ </td>
547
+ </tr>
548
+ <tr id="ga_ajax_accounts">
549
+ <th valign="top" style="padding-top: 10px;"> <label for="<?php echo key_ga_uid; ?>"><?php _e('Analytics Account', 'google-analyticator'); ?>:</label>
550
+ </th>
551
+ <td>
552
+
553
+ <?php if (get_option(key_ga_disable_gasites) == ga_disabled){?>
554
+ <?php
555
+
556
+ if( $useAuth ):
557
+
558
+ $uids = ga_get_analytics_accounts();
559
+
560
+ echo "<select name='".key_ga_uid."'> ";
561
+
562
+ $hasSelected = false; // Will be set to true once a match is found. Cant echo selected twice.
563
+
564
+ foreach($uids as $id=>$domain):
565
+
566
+ echo '<option value="'.$id.'"';
567
+ // If set in DB.
568
+ if( get_option(key_ga_uid) == $id ) { $hasSelected=true; echo ' selected="selected"'; }
569
+ // Else if the domain matches the current domain & nothing set in DB.
570
+ elseif( ( $_SERVER['HTTP_HOST'] == $domain ) && ( ! $hasSelected ) ) { $hasSelected=true; echo ' selected="selected"'; }
571
+ echo '>'.$domain.'</option>';
572
+
573
+ endforeach;
574
+
575
+ echo '</select>';
576
+
577
+ // Need a copy of the array, so we can store the domain name too (for visual purposes)
578
+ echo '<input type="hidden" name="ga_domain_names" value=\'' . serialize( $uids ) . '\' />';
579
+
580
+ else:
581
+
582
+ echo '<input type="text" name="'.key_ga_uid.'" value="'. get_option( key_ga_uid ) .'" />';
583
+
584
+ endif;
585
+ ?><br />
586
+ <input type="checkbox" name="<?php echo key_ga_disable_gasites?>" id="<?php echo key_ga_disable_gasites?>"<?php if(get_option(key_ga_disable_gasites) == ga_enabled){?> checked="checked"<?php }?> /> <?php _e('Hide Google Analytics UID after saving', 'google-analyticator'); ?>
587
+ <?php }else{
588
+ ?><?php echo get_option( 'ga_domain_name' ); ?> - To change this, you must <a href="<?php echo admin_url('/options-general.php?page=ga_reset'); ?>">deauthorize and reset the plugin</a>
589
+ <input type="hidden" name="<?php echo key_ga_disable_gasites?>" value="<?php echo ga_enabled?>" /><input type="hidden" name="<?php echo key_ga_uid?>" value="<?php echo get_option(key_ga_uid)?>" />
590
+ <?php
591
+ }?>
592
+ </td>
593
+ </tr>
594
+ <tr>
595
+ <th valign="top" style="padding-top: 10px;"> <label for="<?php echo key_ga_analytic_snippet ?>">
596
+ <?php _e('Tracking Code', 'google-analyticator'); ?>:</label>
597
+ </th>
598
+ <td><?php
599
+ echo "<select name='".key_ga_analytic_snippet."' id='".key_ga_analytic_snippet."'>\n";
600
+
601
+ echo "<option value='".ga_disabled."'";
602
+ if(get_option(key_ga_analytic_snippet) == ga_disabled)
603
+ echo" selected='selected'";
604
+ echo ">" . __('Universal (analytics.js)', 'google-analyticator') . "</option>\n";
605
+
606
+ echo "<option value='".ga_enabled."'";
607
+ if(get_option(key_ga_analytic_snippet) == ga_enabled)
608
+ echo " selected='selected'";
609
+ echo ">" . __('Traditional (ga.js)', 'google-analyticator') . "</option>\n";
610
+
611
+ echo "</select>\n";
612
+ ?>
613
+ <p class="setting-description">
614
+ <?php _e('If you are using Universal Analytics make sure you have changed your account to a Universal Analytics property in Google Analytics. Read more about Universal Analytics <a href="https://support.google.com/analytics/answer/2817075?hl=en" target="_blank">here</a>.', 'google-analyticator'); ?>
615
+ </p>
616
+ </td>
617
+ </tr>
618
+ <tr>
619
+ <th valign="top" style="padding-top: 10px;"> <label for="<?php echo key_ga_widgets; ?>">
620
+ <?php _e('Support us', 'google-analyticator'); ?>:</label>
621
+ </th>
622
+ <td><?php
623
+ echo "<select name='".key_ga_show_ad."' id='".key_ga_show_ad."'>\n";
624
+
625
+ echo "<option value='1'";
626
+ if(get_option(key_ga_show_ad) == '1')
627
+ echo " selected='selected'";
628
+ echo ">" . __('Yes', 'google-analyticator') . "</option>\n";
629
+
630
+ echo "<option value='0' ";
631
+ if(get_option(key_ga_show_ad) == '0')
632
+ echo" selected='selected'";
633
+ echo ">" . __('No', 'google-analyticator') . "</option>\n";
634
+
635
+ echo "</select>\n";
636
+ ?>
637
+ <p class="setting-description">
638
+ <?php _e('Show our link on the admin dashboard. Pretty please.', 'google-analyticator'); ?>
639
+ </p></td>
640
+ </tr>
641
+ <tr>
642
+ <td><b>View your Dashboard</b></td>
643
+ <td><a href="../wp-admin/index.php">Click here</a></td>
644
+ </tr>
645
+ <tr>
646
+ <td><input type="submit" class="button button-primary" name="info_update" value="<?php _e('Save Changes', 'google-analyticator'); ?>" /></td>
647
+ </tr>
648
+ <tr>
649
+ <td colspan="2" style="padding-left:0"><h3>
650
+ <?php _e('Tracking Settings', 'google-analyticator'); ?>
651
+ </h3></td>
652
+ </tr>
653
+ <tr>
654
+ <th valign="top" style="padding-top: 10px;"> <label>
655
+ <?php _e('Anonymize IP Addresses', 'google-analyticator'); ?>:</label>
656
+ </th>
657
+ <td><?php
658
+ echo "<select name='".key_ga_annon."' id='".key_ga_annon."'>\n";
659
+
660
+ echo "<option value='0'";
661
+ if(get_option(key_ga_annon) == false )
662
+ echo " selected='selected'";
663
+ echo ">" . __('No', 'google-analyticator') . "</option>\n";
664
+
665
+ echo "<option value='1'";
666
+ if(get_option(key_ga_annon) == true)
667
+ echo" selected='selected'";
668
+ echo ">" . __('Yes', 'google-analyticator') . "</option>\n";
669
+
670
+ echo "</select>\n";
671
+
672
+ ?>
673
+ <p class="setting-description">
674
+ <?php _e('By selecting "Yes", This tells Google Analytics to anonymize the information sent by the tracker objects by removing the last octet of the IP address prior to its storage. Note that this will slightly reduce the accuracy of geographic reporting.', 'google-analyticator'); ?>
675
+ </p></td>
676
+ </tr>
677
+ <tr>
678
+ <th valign="top" style="padding-top: 10px;"> <label for="<?php echo key_ga_admin ?>">
679
+ <?php _e('Track all logged in WordPress users', 'google-analyticator'); ?>:</label>
680
+ </th>
681
+ <td><?php
682
+ echo "<select name='".key_ga_admin."' id='".key_ga_admin."'>\n";
683
+
684
+ echo "<option value='".ga_enabled."'";
685
+ if(get_option(key_ga_admin) == ga_enabled)
686
+ echo " selected='selected'";
687
+ echo ">" . __('Yes', 'google-analyticator') . "</option>\n";
688
+
689
+ echo "<option value='".ga_disabled."'";
690
+ if(get_option(key_ga_admin) == ga_disabled)
691
+ echo" selected='selected'";
692
+ echo ">" . __('No', 'google-analyticator') . "</option>\n";
693
+
694
+ echo "</select>\n";
695
+
696
+ ?>
697
+ <p class="setting-description">
698
+ <?php _e('Selecting "no" to this option will prevent logged in WordPress users from showing up on your Google Analytics reports. This setting will prevent yourself or other users from showing up in your Analytics reports. Use the next setting to determine what user groups to exclude.', 'google-analyticator'); ?>
699
+ </p></td>
700
+ </tr>
701
+ <tr>
702
+ <th valign="top" style="padding-top: 10px;"> <label for="<?php echo key_ga_admin_role ?>">
703
+ <?php _e('User roles to not track', 'google-analyticator'); ?>:</label>
704
+ </th>
705
+ <td><?php
706
+ global $wp_roles;
707
+ $roles = $wp_roles->get_names();
708
+ $selected_roles = get_option(key_ga_admin_role);
709
+ if ( !is_array($selected_roles) ) $selected_roles = array();
710
+
711
+ # Loop through the roles
712
+ foreach ( $roles AS $role => $name ) {
713
+ echo '<input type="checkbox" value="' . $role . '" name="' . key_ga_admin_role . '[]"';
714
+ if ( in_array($role, $selected_roles) )
715
+ echo " checked='checked'";
716
+ $name_pos = strpos($name, '|');
717
+ $name = ( $name_pos ) ? substr($name, 0, $name_pos) : $name;
718
+ echo ' /> ' . _x($name, 'User role') . '<br />';
719
+ }
720
+ ?>
721
+ <p class="setting-description">
722
+ <?php _e('Specifies the user roles to not include in your WordPress Analytics report. If a user is logged into WordPress with one of these roles, they will not show up in your Analytics report.', 'google-analyticator'); ?>
723
+ </p></td>
724
+ </tr>
725
+ <tr>
726
+ <th valign="top" style="padding-top: 10px;"> <label for="<?php echo key_ga_admin_disable ?>">
727
+ <?php _e('Method to prevent tracking', 'google-analyticator'); ?>:</label>
728
+ </th>
729
+ <td><?php
730
+ echo "<select name='".key_ga_admin_disable."' id='".key_ga_admin_disable."'>\n";
731
+
732
+ echo "<option value='remove'";
733
+ if(get_option(key_ga_admin_disable) == 'remove')
734
+ echo " selected='selected'";
735
+ echo ">" . __('Remove', 'google-analyticator') . "</option>\n";
736
+
737
+ echo "<option value='admin'";
738
+ if(get_option(key_ga_admin_disable) == 'admin')
739
+ echo" selected='selected'";
740
+ echo ">" . __('Use \'admin\' variable', 'google-analyticator') . "</option>\n";
741
+
742
+ echo "</select>\n";
743
+ ?>
744
+ <span class="ga_admin_disable_DimentionIndex_span"> <?php _e('Dimension Index', 'google-analyticator'); ?>:
745
+ <input type="text" name="<?php echo key_ga_admin_disable_DimentionIndex?>" style="width:50px;" value="<?php echo get_option(key_ga_admin_disable_DimentionIndex)?>" class="<?php echo key_ga_admin_disable_DimentionIndex?>" id="<?php echo key_ga_admin_disable_DimentionIndex?>" />
746
+ </span>
747
+ <p class="setting-description">
748
+ <?php _e('Selecting the "Remove" option will physically remove the tracking code from logged in users. Selecting the "Use \'admin\' variable" option will assign a variable called \'admin\' to logged in users. This option will allow Google Analytics\' site overlay feature to work, but you will have to manually configure Google Analytics to exclude tracking from pageviews with the \'admin\' variable.', 'google-analyticator'); ?>
749
+ </p></td>
750
+ </tr>
751
+ <tr>
752
+ <th valign="top" style="padding-top: 10px;"> <label>
753
+ <?php _e('Enable Remarketing, Demographics and Interests reports', 'google-analyticator'); ?>:</label>
754
+ </th>
755
+ <td><?php
756
+ echo "<select name='".key_ga_remarketing."' id='".key_ga_remarketing."'>\n";
757
+
758
+ echo "<option value='0'";
759
+ if(get_option(key_ga_remarketing) == '0' )
760
+ echo" selected='selected'";
761
+ echo ">" . __('No', 'google-analyticator') . "</option>\n";
762
+
763
+
764
+ echo "<option value='1'";
765
+ if(get_option(key_ga_remarketing) == '1' )
766
+ echo " selected='selected'";
767
+ echo ">" . __('Yes', 'google-analyticator') . "</option>\n";
768
+
769
+
770
+ echo "</select>\n";
771
+
772
+ ?>
773
+ <p class="setting-description">
774
+ <?php _e( 'In order to use remarketing, <a href="https://support.google.com/analytics/answer/2611270" target="_blank">please make sure you complete this checklist from Google</a>', 'google-analyticator'); ?>
775
+ </p>
776
+ <p class="setting-description">
777
+ <?php _e( 'To use remarketing, <a href="https://support.google.com/analytics/answer/2884495" target="_blank">Edit permission</a> is required', 'google-analyticator'); ?>
778
+ </p></td>
779
+ </tr>
780
+ <tr>
781
+ <th valign="top" style="padding-top: 10px;"> <label><?php _e('Track WordPress Login Page', 'google-analyticator'); ?>:</label>
782
+ </th>
783
+ <td><?php
784
+ echo "<select name='".key_ga_track_login."' id='".key_ga_track_login."'>\n";
785
+
786
+ echo "<option value='1'";
787
+ if(get_option(key_ga_track_login) == '1' )
788
+ echo " selected='selected'";
789
+ echo ">" . __('Yes', 'google-analyticator') . "</option>\n";
790
+
791
+ echo "<option value='0'";
792
+ if(get_option(key_ga_track_login) == '0' )
793
+ echo" selected='selected'";
794
+ echo ">" . __('No', 'google-analyticator') . "</option>\n";
795
+
796
+ echo "</select>\n";
797
+
798
+ ?>
799
+ <p class="setting-description">
800
+ <?php _e( 'This will track all access to wp-login.php', 'google-analyticator'); ?>
801
+ </p></td>
802
+ </tr>
803
+ <tr>
804
+ <td colspan="2" style="padding-left:0"><h3><?php _e('Link Tracking Settings', 'google-analyticator'); ?></h3></td>
805
+ </tr>
806
+ <tr>
807
+ <th valign="top" style="padding-top: 10px;"> <label for="<?php echo key_ga_outbound ?>">
808
+ <?php _e('Outbound link tracking', 'google-analyticator'); ?>:</label>
809
+ </th>
810
+ <td><?php
811
+ echo "<select name='".key_ga_outbound."' id='".key_ga_outbound."'>\n";
812
+
813
+ echo "<option value='".ga_enabled."'";
814
+ if(get_option(key_ga_outbound) == ga_enabled)
815
+ echo " selected='selected'";
816
+ echo ">" . __('Enabled', 'google-analyticator') . "</option>\n";
817
+
818
+ echo "<option value='".ga_disabled."'";
819
+ if(get_option(key_ga_outbound) == ga_disabled)
820
+ echo" selected='selected'";
821
+ echo ">" . __('Disabled', 'google-analyticator') . "</option>\n";
822
+
823
+ echo "</select>\n";
824
+ ?>
825
+ <p class="setting-description">
826
+ <?php _e('Disabling this option will turn off the tracking of outbound links. It\'s recommended not to disable this option unless you\'re a privacy advocate (now why would you be using Google Analytics in the first place?) or it\'s causing some kind of weird issue.', 'google-analyticator'); ?>
827
+ </p></td>
828
+ </tr>
829
+ <tr>
830
+ <th valign="top" style="padding-top: 10px;"> <label for="<?php echo key_ga_event ?>">
831
+ <?php _e('Event tracking', 'google-analyticator'); ?>:</label>
832
+ </th>
833
+ <td><?php
834
+ echo "<select name='".key_ga_event."' id='".key_ga_event."'>\n";
835
+
836
+ echo "<option value='".ga_enabled."'";
837
+ if(get_option(key_ga_event) == ga_enabled)
838
+ echo " selected='selected'";
839
+ echo ">" . __('Enabled', 'google-analyticator') . "</option>\n";
840
+
841
+ echo "<option value='".ga_disabled."'";
842
+ if(get_option(key_ga_event) == ga_disabled)
843
+ echo" selected='selected'";
844
+ echo ">" . __('Disabled', 'google-analyticator') . "</option>\n";
845
+
846
+ echo "</select>\n";
847
+ ?>
848
+ <p class="setting-description">
849
+ <?php _e('Enabling this option will treat outbound links and downloads as events instead of pageviews. Since the introduction of <a href="https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide">event tracking in Analytics</a>, this is the recommended way to track these types of actions. Only disable this option if you must use the old pageview tracking method.', 'google-analyticator'); ?>
850
+ </p></td>
851
+ </tr>
852
+ <tr>
853
+ <th valign="top" style="padding-top: 10px;"> <label for="<?php echo key_ga_enhanced_link_attr ?>">
854
+ <?php _e('Enhanced Link Attribution', 'google-analyticator'); ?>:</label>
855
+ </th>
856
+ <td><?php
857
+ echo "<select name='".key_ga_enhanced_link_attr."' id='".key_ga_enhanced_link_attr."'>\n";
858
+
859
+ echo "<option value='".ga_enabled."'";
860
+ if(get_option(key_ga_enhanced_link_attr) == ga_enabled)
861
+ echo " selected='selected'";
862
+ echo ">" . __('Enabled', 'google-analyticator') . "</option>\n";
863
+
864
+ echo "<option value='".ga_disabled."'";
865
+ if(get_option(key_ga_enhanced_link_attr) == ga_disabled )
866
+ echo " selected='selected'";
867
+ echo ">" . __('Disabled', 'google-analyticator') . "</option>\n";
868
+
869
+ echo "</select>\n";
870
+ ?>
871
+ <p class="setting-description">
872
+ <?php _e('You can tag your pages to implement an enhanced link-tracking functionality by enabling this option. <a href="https://support.google.com/analytics/answer/2558867?hl=en" target="_blank">learn more</a>', 'google-analyticator'); ?>
873
+ </p></td>
874
+ </tr>
875
+ <tr>
876
+ <th valign="top" style="padding-top: 10px;"> <label for="<?php echo key_ga_downloads; ?>"><?php _e('Download extensions to track', 'google-analyticator'); ?>:</label>
877
+ </th>
878
+ <td><?php
879
+ echo "<input type='text' size='50' ";
880
+ echo "name='".key_ga_downloads."' ";
881
+ echo "id='".key_ga_downloads."' ";
882
+ echo "value='".wp_filter_kses(get_option(key_ga_downloads))."' />\n";
883
+ ?>
884
+ <p class="setting-description">
885
+ <?php _e('Enter any extensions of files you would like to be tracked as a download. For example to track all MP3s and PDFs enter <strong>mp3,pdf</strong>. <em>Outbound link tracking must be enabled for downloads to be tracked.</em>', 'google-analyticator'); ?>
886
+ </p></td>
887
+ </tr>
888
+ <tr>
889
+ <th valign="top" style="padding-top: 10px;"> <label for="<?php echo key_ga_outbound_prefix; ?>">
890
+ <?php _e('Prefix external links with', 'google-analyticator'); ?>:</label>
891
+ </th>
892
+ <td><?php
893
+ echo "<input type='text' size='50' ";
894
+ echo "name='".key_ga_outbound_prefix."' ";
895
+ echo "id='".key_ga_outbound_prefix."' ";
896
+ echo "value='". stripslashes( wp_filter_kses(get_option(key_ga_outbound_prefix)))."' />\n";
897
+ ?>
898
+ <p class="setting-description">
899
+ <?php _e('Enter a name for the section tracked external links will appear under. This option has no effect if event tracking is enabled.', 'google-analyticator'); ?>
900
+ </em></p></td>
901
+ </tr>
902
+ <tr>
903
+ <th valign="top" style="padding-top: 10px;"> <label for="<?php echo key_ga_downloads_prefix; ?>">
904
+ <?php _e('Prefix download links with', 'google-analyticator'); ?>:</label>
905
+ </th>
906
+ <td><?php
907
+ echo "<input type='text' size='50' ";
908
+ echo "name='".key_ga_downloads_prefix."' ";
909
+ echo "id='".key_ga_downloads_prefix."' ";
910
+ echo "value='".stripslashes(wp_filter_kses ( get_option(key_ga_downloads_prefix) ))."' />\n";
911
+ ?>
912
+ <p class="setting-description">
913
+ <?php _e('Enter a name for the section tracked download links will appear under. This option has no effect if event tracking is enabled.', 'google-analyticator'); ?>
914
+ </em></p></td>
915
+ </tr>
916
+ <tr>
917
+ <th valign="top" style="padding-top: 10px;"> <label for="<?php echo key_ga_adsense; ?>">
918
+ <?php _e('Google Adsense ID', 'google-analyticator'); ?>:</label>
919
+ </th>
920
+ <td><?php
921
+ echo "<input type='text' size='50' ";
922
+ echo "name='".key_ga_adsense."' ";
923
+ echo "id='".key_ga_adsense."' ";
924
+ echo "value='".get_option(key_ga_adsense)."' />\n";
925
+ ?>
926
+ <p class="setting-description">
927
+ <?php _e('Enter your Google Adsense ID assigned by Google Analytics in this box. This enables Analytics tracking of Adsense information if your Adsense and Analytics accounts are linked.', 'google-analyticator'); ?>
928
+ </p></td>
929
+ </tr>
930
+ <tr>
931
+ <td colspan="2" style="padding-left:0"><h3><?php _e('Additional Tracking Code', 'google-analyticator'); ?></h3></td>
932
+ </tr>
933
+ <tr>
934
+ <th valign="top" style="padding-top: 10px;"> <label for="<?php echo key_ga_extra; ?>">
935
+ <?php _e('Additional tracking code', 'google-analyticator'); ?>
936
+ <br />(<?php _e('before tracker initialization', 'google-analyticator'); ?>):</label>
937
+ </th>
938
+ <td><?php
939
+ echo "<textarea cols='50' rows='8' ";
940
+ echo "name='".key_ga_extra."' ";
941
+ echo "id='".key_ga_extra."'>";
942
+ echo stripslashes(get_option(key_ga_extra))."</textarea>\n";
943
+ ?>
944
+ <p class="setting-description">
945
+ <?php _e('Enter any additional lines of tracking code that you would like to include in the Google Analytics tracking script. The code in this section will be displayed <strong>before</strong> the Google Analytics tracker is initialized.', 'google-analyticator'); ?>
946
+ </p></td>
947
+ </tr>
948
+ <tr>
949
+ <th valign="top" style="padding-top: 10px;"> <label for="<?php echo key_ga_extra_after; ?>">
950
+ <?php _e('Additional tracking code', 'google-analyticator'); ?>
951
+ <br />
952
+ (<?php _e('after tracker initialization', 'google-analyticator'); ?>):</label>
953
+ </th>
954
+ <td><?php
955
+ echo "<textarea cols='50' rows='8' ";
956
+ echo "name='".key_ga_extra_after."' ";
957
+ echo "id='".key_ga_extra_after."'>";
958
+ echo stripslashes(get_option(key_ga_extra_after))."</textarea>\n";
959
+ ?>
960
+ <p class="setting-description">
961
+ <?php _e('Enter any additional lines of tracking code that you would like to include in the Google Analytics tracking script. The code in this section will be displayed <strong>after</strong> the Google Analytics tracker is initialized.', 'google-analyticator'); ?>
962
+ </p></td>
963
+ </tr>
964
+ <tr>
965
+ <td colspan="2" style="padding-left:0"><h3><?php _e('Admin Dashboard Widgets', 'google-analyticator'); ?></h3>
966
+ <?php if(!$useAuth): ?>
967
+ <div style="margin:10px auto; border:3px #f00 solid; background-color:#fdd; color:#000; padding:10px; text-align:center;">
968
+ <?php _e('You have not authenticated with Google - you cannot use dashboard widgets! Reset the plugin to authenticate..', 'google-analyticator'); ?>
969
+ </div>
970
+ <?php endif;?></td>
971
+ </tr>
972
+ <tr<?php if(!$useAuth){echo ' style="display:none"';}?>>
973
+ <th valign="top" style="padding-top: 10px;"><label for="<?php echo key_ga_widgets; ?>">
974
+ <?php _e('Include widgets', 'google-analyticator'); ?>:</label></th>
975
+ <td><?php
976
+ echo "<select name='".key_ga_widgets."' id='".key_ga_widgets."'>\n";
977
+
978
+ echo "<option value='".ga_enabled."'";
979
+ if(get_option(key_ga_widgets) == ga_enabled)
980
+ echo " selected='selected'";
981
+ echo ">" . __('Enabled', 'google-analyticator') . "</option>\n";
982
+
983
+ echo "<option value='".ga_disabled."'";
984
+ if(get_option(key_ga_widgets) == ga_disabled)
985
+ echo" selected='selected'";
986
+ echo ">" . __('Disabled', 'google-analyticator') . "</option>\n";
987
+
988
+ echo "</select>\n";
989
+ ?>
990
+ <p class="setting-description">
991
+ <?php _e('Disabling this option will completely remove the Dashboard Summary widget and the theme Stats widget. Use this option if you would prefer to not see the widgets.', 'google-analyticator'); ?>
992
+ </p></td>
993
+ </tr>
994
+ <tr<?php if(!$useAuth){echo ' style="display:none"';}?>>
995
+ <th valign="top" style="padding-top: 10px;"> <label for="<?php echo key_ga_dashboard_role ?>">
996
+ <?php _e('User roles that can see the dashboard widget', 'google-analyticator'); ?>:</label>
997
+ </th>
998
+ <td><?php
999
+ global $wp_roles;
1000
+ $roles = $wp_roles->get_names();
1001
+ $selected_roles = get_option(key_ga_dashboard_role);
1002
+ if ( !is_array($selected_roles) ) $selected_roles = array();
1003
+
1004
+ # Loop through the roles
1005
+ foreach ( $roles AS $role => $name ) {
1006
+ echo '<input type="checkbox" value="' . $role . '" name="' . key_ga_dashboard_role . '[]"';
1007
+ if ( in_array($role, $selected_roles) )
1008
+ echo " checked='checked'";
1009
+ $name_pos = strpos($name, '|');
1010
+ $name = ( $name_pos ) ? substr($name, 0, $name_pos) : $name;
1011
+ echo ' /> ' . _x($name, 'User role') . '<br />';
1012
+ }
1013
+ ?>
1014
+ <p class="setting-description">
1015
+ <?php _e('Specifies the user roles that can see the dashboard widget. If a user is not in one of these role groups, they will not see the dashboard widget.', 'google-analyticator'); ?>
1016
+ </p></td>
1017
+ </tr>
1018
+ <?php do_action("ga_experiment_setting_view");?>
1019
+ </table>
1020
+ <p class="submit">
1021
+ <input type="submit" class="button button-primary" name="info_update" value="<?php _e('Save Changes', 'google-analyticator'); ?>" />
1022
+ </p>
1023
+ <a href="<?php echo ga_analyticator_setting_url(). '&pageaction=ga_clear_cache' ?>"><?php _e('Clear Analyticator Cache', 'google-analyticator'); ?></a> | <a href="<?php echo wp_nonce_url( admin_url('/options-general.php?page=ga_reset'), 'ga-reset'); ?>">
1024
+ <?php _e('Deauthorize &amp; Reset Google Analyticator.', 'google-analyticator'); ?></a>
1025
+ </form>
1026
+
1027
</div>
1028
</div>
1029
</div>
1030
+ <div class="google-analyticator-content-right">
1031
+ <div class="google-analyticator-content-container-right">
1032
+ <div class="google-analyticator-promo-box entry-content">
1033
+ <p class="google-analyticator-promo-box-header">Your one stop WordPress shop</p>
1034
+ <ul>
1035
+ <li>&#8226; Get the latest WordPress software deals</li>
1036
+ <li>&#8226; Plugins, themes, form builders, and more</li>
1037
+ <li>&#8226; Shop with confidence; 60-day money-back guarantee</li>
1038
+ </ul>
1039
+ <div align="center">
1040
+ <button onclick="window.open('https://appsumo.com/tools/wordpress/?utm_source=sumo&utm_medium=wp-widget&utm_campaign=google-analyticator')" class="google-analyticator-appsumo-capture-container-button" type="submit">Show Me The Deals</button>
1041
+ </div>
1042
+ </div>
1043
+
1044
+ <div class="google-analyticator-promo-box google-analyticator-promo-box-form entry-content">
1045
+ <?php include plugin_dir_path( __FILE__ ).'appsumo-capture-form.php'; ?>
1046
+ </div>
1047
+ </div>
1048
+ </div>
1049
<!-- end wrap -->
1050
</div>
1051
<!-- end vumga-container -->
1141
if ( !function_exists("is_preview") || ( function_exists("is_preview") && !is_preview() ) )
1142
{
1143
# Add the notice that Google Analyticator tracking is enabled
1144
+ echo "<!-- Google Analytics Tracking by Google Analyticator " . GOOGLE_ANALYTICATOR_VERSION . " -->\n";
1145
1146
# Add the Adsense data if specified
1147
if ( get_option(key_ga_adsense) != '' )
1430
function ga_analyticator_top_level_menu() {
1431
$menu_page = add_menu_page( 'Google Analytics', 'Google Analytics', 'manage_options', 'google-analyticator', 'ga_settings_page', 'dashicons-chart-line');
1432
add_action('load-'.$menu_page, 'ga_pre_load' );
1433
+ //add_submenu_page( 'google-analyticator', 'Other Plugins', 'Other Plugins', 'manage_options', 'google-analyticator-other-plugins', 'ga_analyticator_other_plugins_page');
1434
1435
$activate_page = add_submenu_page( null, 'Activation', 'Google Analytics', 'manage_options', 'ga_activate' , 'ga_activate');
1436
$reset_page = add_submenu_page(null, 'Reset', 'Reset', 'activate_plugins', 'ga_reset', 'ga_reset' );
1437
add_action('load-'.$reset_page, 'ga_do_reset' );
1438
+
1439
+
1440
+ add_submenu_page( 'google-analyticator', 'Other Tools', 'Other Tools', 'manage_options', 'google-analyticator-plugin-other-tools', 'google_analyticator_other_tools_page');
1441
+
1442
+ add_submenu_page(
1443
+ 'google-analyticator',
1444
+ 'Appsumo',
1445
+ '<span class="google-analyticator-sidebar-appsumo-link"><span class="dashicons dashicons-star-filled" style="font-size: 17px"></span> AppSumo</span>',
1446
+ 'manage_options',
1447
+ 'google_analyticator_go_appsumo_pro',
1448
+ 'google_analyticator_handle_external_redirects'
1449
+ );
1450
+
1451
+ //add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), 'google_analyticator_filter_plugin_actions', 10, 2 );
1452
+ }
1453
+
1454
+ function google_analyticator_other_tools_page() {
1455
+ include(plugin_dir_path( __FILE__ ).'/other_tools.php');
1456
+ }
1457
+
1458
+ function google_analyticator_filter_plugin_actions($links, $file) {
1459
+ $settings_link = '<a href="admin.php?page=google-analyticator">' . __('Settings') . '</a>';
1460
+ array_unshift( $links, $settings_link ); // before other links
1461
+
1462
+ return $links;
1463
}
1464
1465
add_action( 'admin_menu', 'ga_analyticator_top_level_menu' );
images/products/appsumo-logo.png ADDED
Binary file
images/products/appsumo-logo.svg ADDED
@@ -0,0 +1,16 @@
1
+ <svg id="as-appsumo-logo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 130 20.11">
2
+ <defs>
3
+ <style>
4
+ .cls-1 {
5
+ fill: #fff;
6
+ }
7
+ </style>
8
+ </defs>
9
+ <path id="Path_1007" data-name="Path 1007" class="cls-1" d="M611.906,32.069c0,3.4-1.593,3.4-2.359,3.4s-2.359,0-2.359-3.4V22.5H603.2V32.677c0,3.927,2.614,6.675,6.347,6.675s6.347-2.748,6.347-6.675V22.5h-3.988Z" transform="translate(-529.859 -19.764)"/>
10
+ <path id="Path_1008" data-name="Path 1008" class="cls-1" d="M932.452,18.7a8.845,8.845,0,0,0-8.852,8.815,8.852,8.852,0,0,0,17.7,0A8.853,8.853,0,0,0,932.452,18.7Zm0,13.63A4.8,4.8,0,0,1,927.7,27.5a4.755,4.755,0,1,1,9.508,0A4.8,4.8,0,0,1,932.452,32.33Z" transform="translate(-811.303 -16.426)"/>
11
+ <path id="Path_1009" data-name="Path 1009" class="cls-1" d="M8.9,0,0,19.442H4.523l1.7-3.745H11.6l1.7,3.745h4.523ZM7.234,12.39,8.9,8.292l1.678,4.1Z"/>
12
+ <path id="Path_1010" data-name="Path 1010" class="cls-1" d="M184.7,23.2h-6.5V39.566h4.11V34.848h2.176c4.024,0,6.529-2.249,6.529-5.873v-.049C191.015,25.389,188.6,23.2,184.7,23.2Zm2.2,5.982a2.229,2.229,0,0,1-2.5,2.225H182.31V26.9h2.067c1.6,0,2.529.815,2.529,2.237Z" transform="translate(-156.533 -20.379)"/>
13
+ <path id="Path_1011" data-name="Path 1011" class="cls-1" d="M322.9,23.2h-6.5V39.566h4.11V34.848h2.176c4.025,0,6.529-2.249,6.529-5.873v-.049C329.215,25.389,326.8,23.2,322.9,23.2Zm2.2,5.982a2.229,2.229,0,0,1-2.5,2.225H320.51V26.9h2.067c1.6,0,2.529.815,2.529,2.237Z" transform="translate(-277.93 -20.379)"/>
14
+ <path id="Path_1012" data-name="Path 1012" class="cls-1" d="M455.858,10.045c-3.246-.839-3.9-1.216-3.9-2.31V7.686c0-.9.888-1.483,2.249-1.483a8.5,8.5,0,0,1,4.754,1.812l.122.085,2.286-3.319-.109-.085a10.962,10.962,0,0,0-7-2.4c-3.927,0-6.663,2.371-6.663,5.763v.049c0,3.915,2.724,4.924,6.286,5.836,3.137.8,3.648,1.313,3.648,2.225v.049c0,1.009-.948,1.6-2.541,1.6a8.411,8.411,0,0,1-5.471-2.225l-.109-.1-2.6,3.113.109.1a11.978,11.978,0,0,0,8,3.015c4.3,0,6.979-2.274,6.979-5.921V15.76C461.877,12.319,459.469,10.993,455.858,10.045Z" transform="translate(-392.475 -2.02)"/>
15
+ <path id="Path_1013" data-name="Path 1013" class="cls-1" d="M746.358,36.361l-4.936-8.353-1.459,7.733H736.4L740,18.5l6.444,10.87,6.092-10.87,3.647,17.241h-3.793l-1.41-7.623Z" transform="translate(-646.864 -16.251)"/>
16
+ </svg>
images/products/kingsumo-logo.svg ADDED
@@ -0,0 +1,54 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 21.0.2, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
+ viewBox="0 0 215.6 30" style="enable-background:new 0 0 215.6 30;" xml:space="preserve">
5
+ <style type="text/css">
6
+ .st0{fill:#3EC242;}
7
+ .st1{fill:#A7E629;}
8
+ .st2{fill:#6E7687;}
9
+ .st3{fill:#959FAF;}
10
+ </style>
11
+ <g>
12
+ <g>
13
+ <g>
14
+ <g>
15
+ <path class="st0" d="M44.8,23.6c-7.3,3.7-12.8,2-18.6,0.2c-4.8-1.5-10.1-3.1-16.6-1.6l0,0c-1.2,0.3-2.5,0.7-3.8,1.2l0,0l0,0
16
+ L11,26c5.2-1.1,9.5,0.2,14.1,1.6c3.5,1.1,7.1,2.2,11.1,2.2c3.2,0,6.6-0.7,10.4-2.6L44.8,23.6z"/>
17
+ </g>
18
+ <path class="st1" d="M0,7.5l5.9,16l0,0c1.3-0.5,2.5-0.9,3.8-1.2l0,0l0,0L5.1,9.9L0,7.5z"/>
19
+ <polygon class="st0" points="3.2,4.6 18.2,11.8 12.8,13.6 0,7.5 "/>
20
+ <polygon class="st1" points="22.1,4.3 18.2,11.8 14.6,10.1 19.9,0 "/>
21
+ <polygon class="st0" points="24.4,0 19.9,0 26.1,11.8 31.5,13.6 "/>
22
+ <polygon class="st1" points="41.1,4.6 39.2,9.9 31.5,13.6 29.7,10.1 "/>
23
+ <polygon class="st0" points="38.9,22.1 44.3,7.5 41.1,4.6 35.2,20.7 "/>
24
+ </g>
25
+ </g>
26
+ <path class="st2" d="M124.5,11.5c-2.6-0.9-3.4-1.7-3.4-2.8c0-0.6,0.6-1.7,2.4-1.7c1.3,0,2.7,0.8,3.7,2.1l3.1-2.1
27
+ c-1.5-2.1-4-3.6-6.6-3.6c-3.9,0-6.5,2.7-6.5,5.4c0,3.7,3.4,5.2,5.8,6.1c2.8,1,3.7,1.5,3.7,2.8c0,1-1,2-2.9,2
28
+ c-2.1,0-3.6-1.1-4.8-2.4l-2.6,2.7c1.7,1.8,4.4,3.3,7.2,3.3c4.7,0,7-3,7-5.5C130.7,13.7,127.1,12.4,124.5,11.5z"/>
29
+ <rect x="72.5" y="8.6" class="st2" width="4" height="14.2"/>
30
+ <circle class="st2" cx="74.5" cy="3.5" r="2.4"/>
31
+ <path class="st2" d="M143.6,8.7v8.2l0,0c0,1.7-1.3,2.9-3,2.9s-3-1.2-3-2.9l0,0V8.7h-4v8.2l0,0c0,3.7,3.2,6.5,7,6.5
32
+ c3.7,0,7-2.8,7-6.5l0,0V8.7H143.6z"/>
33
+ <path class="st2" d="M186.1,8.2c-4.4,0-7.9,3.3-7.9,7.6s3.5,7.6,7.9,7.6s7.9-3.3,7.9-7.6S190.4,8.2,186.1,8.2z M186.1,19.7
34
+ c-2.3,0-3.9-1.7-3.9-3.9s1.6-3.9,3.9-3.9s3.9,1.7,3.9,3.9S188.4,19.7,186.1,19.7z"/>
35
+ <path class="st2" d="M94.3,14.1c0-3.3-2.7-5.9-5.9-5.9c-1.6,0-3.1,0.5-4.4,1.4v-1h-3.6v14.2h4v-8c0-1.7,1.3-3,3-3s3,1.3,3,3v8h4
36
+ L94.3,14.1L94.3,14.1z"/>
37
+ <path class="st2" d="M169.3,8.2c-2.1,0-4,0.9-5.3,2.3c-1.1-1.4-2.8-2.3-4.6-2.3c-1.6,0-3.1,0.5-4.4,1.4V8.7h-3.6v14.2h4v-8
38
+ c0-1.7,1.3-3,3-3s3,1.3,3,3v8h4v-8c0-1.7,1.3-3,3-3s3,1.3,3,3v8h4v-8.7C175.3,10.8,172.6,8.2,169.3,8.2z"/>
39
+ <polygon class="st2" points="69.1,3.8 63.6,3.8 56.8,10.8 56.8,3.8 52.8,3.8 52.8,22.8 56.8,22.8 56.8,16.5 59.1,14.1 65.6,22.8
40
+ 70.5,22.8 61.9,11.3 "/>
41
+ <path class="st2" d="M113.2,13V8.6h-3.6V10c-1.3-1.2-3-1.9-4.8-1.9c-4.1,0-7.4,3.4-7.4,7.6s3.3,7.6,7.4,7.6c1.7,0,3.3-0.6,4.5-1.6
42
+ v0.5c0,1.8-1.2,4.1-4.5,4.1c-1.5,0-3-0.6-4.3-1.7L98,27.3c2,1.7,4.4,2.6,6.9,2.6c4.9,0,8.4-3.3,8.4-7.8L113.2,13L113.2,13z
43
+ M105.3,19.6c-2.2,0-3.9-1.8-3.9-3.9s1.8-3.9,3.9-3.9c2.2,0,3.9,1.8,3.9,3.9S107.5,19.6,105.3,19.6z"/>
44
+ </g>
45
+ <g>
46
+ <path class="st3" d="M200.6,20.8c0.2,0.2,0.2,0.5,0.2,0.8c0,0.4-0.2,0.7-0.5,1c-0.3,0.2-0.8,0.3-1.4,0.3h-2.5v-4.8h2.3
47
+ c0.6,0,1,0.1,1.3,0.3c0.3,0.2,0.5,0.5,0.5,0.9c0,0.2-0.1,0.4-0.2,0.6c-0.1,0.2-0.3,0.3-0.5,0.4C200.2,20.5,200.4,20.6,200.6,20.8z
48
+ M197.5,18.9v1.1h1.1c0.3,0,0.5,0,0.6-0.1c0.1-0.1,0.2-0.2,0.2-0.4c0-0.2-0.1-0.3-0.2-0.4c-0.1-0.1-0.4-0.1-0.6-0.1H197.5z
49
+ M199.5,21.9c0.1-0.1,0.2-0.2,0.2-0.4c0-0.4-0.3-0.6-0.9-0.6h-1.3v1.2h1.3C199.1,22.1,199.3,22,199.5,21.9z"/>
50
+ <path class="st3" d="M205.6,22v0.9h-3.7v-4.8h3.6V19H203v1h2.2v0.9H203V22H205.6z"/>
51
+ <path class="st3" d="M207.7,19h-1.5v-0.9h4.2V19h-1.5v3.9h-1.1V19z"/>
52
+ <path class="st3" d="M214,21.9h-2.2l-0.4,1h-1.1l2.1-4.8h1.1l2.1,4.8h-1.2L214,21.9z M213.7,21l-0.8-1.8l-0.8,1.8H213.7z"/>
53
+ </g>
54
+ </svg>
images/products/sendfox-logo.svg ADDED
@@ -0,0 +1,36 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 21.0.2, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
+ viewBox="0 0 105.2 22.1" style="enable-background:new 0 0 105.2 22.1;" xml:space="preserve">
5
+ <style type="text/css">
6
+ .st0{fill:#CCDFED;}
7
+ .st1{fill:#FF644D;}
8
+ .st2{fill:#4C5366;}
9
+ </style>
10
+ <title>sendfox-logo</title>
11
+ <g>
12
+ <g>
13
+ <polygon class="st0" points="0,11 9.8,19.8 19.5,11 19.5,22.1 0,22.1 "/>
14
+ <polygon class="st1" points="0,7.9 9.8,16.8 19.5,7.9 "/>
15
+ <polygon class="st1" points="13.3,5.6 19.5,5.6 19.5,0 "/>
16
+ <polygon class="st1" points="0,0 0,5.6 6.2,5.6 "/>
17
+ </g>
18
+ <g>
19
+ <path class="st2" d="M32.3,10c-2-0.8-3.3-1.4-3.3-2.8c0-1.3,1.3-2.3,2.8-2.3c1.5,0,2.5,0.9,2.9,1.9l1.6-0.6
20
+ c-0.6-1.7-2.4-2.9-4.5-2.9c-2.2,0-4.6,1.5-4.6,3.9c0,2.6,2.5,3.6,4.4,4.4c2.1,0.8,3.3,1.5,3.3,2.9c0,1.6-1.1,2.7-2.9,2.7
21
+ c-1.9,0-3.2-1.3-3.6-2.6l-1.7,0.4c0.5,1.9,2.5,3.8,5.2,3.8c2.7,0,4.7-1.8,4.7-4.4C36.8,11.7,34.3,10.8,32.3,10z"/>
22
+ <path class="st2" d="M69.7,8.9C69,8,67.9,7.4,66.6,7.4c-2.8,0-4.9,2.4-4.9,5.7s2.1,5.7,4.9,5.7c1.4,0,2.5-0.6,3.3-1.6v1.4h1.7V3.4
23
+ h-1.8V8.9z M66.6,17.2c-1.8,0-3.2-1.8-3.2-4.1S64.8,9,66.6,9c1.9,0,3.2,1.9,3.2,4.1S68.5,17.2,66.6,17.2z"/>
24
+ <polygon class="st2" points="74.9,18.7 76.8,18.7 76.8,12 82.4,12 82.4,10.4 76.8,10.4 76.8,5.3 83.5,5.3 83.5,3.7 74.9,3.7 "/>
25
+ <path class="st2" d="M55.8,7.4c-1.2,0-2.7,0.5-3.9,2.1v-2h-1.7v11.1h1.8v-6.2C52.8,9.9,54.7,9,55.8,9c1.2,0,1.9,0.9,1.9,2.4v7.2
26
+ h1.8v-7.2C59.5,8.5,57.6,7.4,55.8,7.4z"/>
27
+ <path class="st2" d="M89.3,7.4c-2.8,0-4.9,2.4-4.9,5.7s2.1,5.7,4.9,5.7s4.9-2.4,4.9-5.7S92.2,7.4,89.3,7.4z M89.3,17.2
28
+ c-1.8,0-3.1-1.8-3.1-4.1S87.5,9,89.3,9c1.8,0,3.1,1.8,3.1,4.1S91.2,17.2,89.3,17.2z"/>
29
+ <path class="st2" d="M47.8,10.8c0-1.7-1.5-3.4-4-3.4c-2.5,0-5.2,2.1-5.2,5.7c0,3.7,2.7,5.7,5.3,5.7c0.9,0,2.3-0.2,3.7-1.1
30
+ l-0.9-1.4c-1,0.7-2.1,0.9-2.8,0.9c-1.5,0-2.9-1-3.3-2.6C43.9,14.5,47.8,14,47.8,10.8z M40.5,13.1c0-2.5,1.8-4.1,3.4-4.1
31
+ c1.3,0,2.2,1,2.2,1.8C46,12.2,44.1,13,40.5,13.1z"/>
32
+ <polygon class="st2" points="105.2,18.7 101.2,13 105,7.6 102.8,7.6 100.2,11.5 97.5,7.6 95.3,7.6 99.1,13 95.1,18.7 97.3,18.7
33
+ 100.2,14.5 103,18.7 "/>
34
+ </g>
35
+ </g>
36
+ </svg>
images/products/sumo-logo.png ADDED
Binary file
other_tools.php ADDED
@@ -0,0 +1,41 @@
1
+ <?php
2
+ add_thickbox();
3
+ wp_enqueue_script('google-analyticator-admin',plugin_dir_url( __FILE__ ). 'scripts/google-analyticator-scripts.js',array('jquery'));
4
+ wp_enqueue_style('google-analyticator-admin-style',plugin_dir_url( __FILE__ ).'styles/google-analyticator-style-common.css', array(), '3.1.1');
5
+ ?>
6
+ <div class="wrap">
7
+ <h2>Other Tools</h2>
8
+ <p>
9
+ <div class="google-analyticator-plugin-box">
10
+ <div class="google-analyticator-plugin-box-logo-container">
11
+ <img src="<?php echo plugin_dir_url(__FILE__) . 'images/products/appsumo-logo.png'; ?>">
12
+ </div>
13
+ <a href="https://appsumo.com/tools/wordpress/?utm_source=sumo&utm_medium=wp-widget&utm_campaign=google-analyticator" target="_blank">AppSumo</a> Promotes great products to help you in your career and life.
14
+ </div>
15
+
16
+ <div class="google-analyticator-plugin-box">
17
+ <div class="google-analyticator-plugin-box-logo-container">
18
+ <img src="<?php echo plugin_dir_url( __FILE__ ) . 'images/products/sendfox-logo.svg'; ?>">
19
+ </div>
20
+ <a href="http://sendfox.com" target="_blank">SendFox</a> Email marketing for content creators.
21
+ </div>
22
+
23
+ <div class="google-analyticator-plugin-box">
24
+ <div class="google-analyticator-plugin-box-logo-container">
25
+ <img src="<?php echo plugin_dir_url( __FILE__ ) . 'images/products/sumo-logo.png'; ?>">
26
+ </div>
27
+ <a href="<?php echo admin_url( 'plugin-install.php?tab=plugin-information&plugin=sumome&TB_iframe=true&width=743&height=500'); ?>" class="thickbox">Sumo</a> Tools to grow your Email List, Social Sharing and Analytics.
28
+ </div>
29
+
30
+ <div class="google-analyticator-plugin-box">
31
+ <div class="google-analyticator-plugin-box-logo-container">
32
+ <img src="<?php echo plugin_dir_url( __FILE__ ) . 'images/products/kingsumo-logo.svg'; ?>">
33
+ </div>
34
+ <a href="https://kingsumo.com/" target="_blank">KingSumo</a> Grow your email list through Viral Giveaways for WordPress
35
+ </div>
36
+ </p>
37
+
38
+ <div class="google-analyticator-plugin-box-form">
39
+ <?php include plugin_dir_path( __FILE__ ).'appsumo-capture-form.php'; ?>
40
+ </div>
41
+ </div>
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
Contributors: noahkagan
3
Tags: google analytics plugin, stats, statistics, google, analytics, dashboard, google analytics, tracking, widget, marketing,pageviews,visits, web stats, javascript
4
Requires at least: 3.2
5
- Tested up to: 4.8
6
- Stable tag: 6.5.4
7
License: GPLv2 or later
8
License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
@@ -11,12 +11,11 @@ Easily view your Google Analytics and real-time statistics inside WordPress! Mak
11
12
== Description ==
13
14
- Google Analyticator makes it super easy to view Google Analytics within your WordPress dashboard. This eliminates the need to edit your template code to begin logging. Google Analyticator also includes several widgets for displaying Analytics data in the admin and on your blog.
15
-
16
- One of the most popular WordPress plugins for Google Analytics! Over 3.5+ million downloads.
17
18
- Check out our other plugin for getting more traffic [here](http://bit.ly/1PhVdpI).
19
20
21
= Features =
22
2
Contributors: noahkagan
3
Tags: google analytics plugin, stats, statistics, google, analytics, dashboard, google analytics, tracking, widget, marketing,pageviews,visits, web stats, javascript
4
Requires at least: 3.2
5
+ Tested up to: 5.3.2
6
+ Stable tag: 6.5.5
7
License: GPLv2 or later
8
License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
11
12
== Description ==
13
14
+ [Check out the latest WordPress deals for your site.](https://appsumo.com/tools/wordpress/?utm_source=sumo&utm_medium=wp-widget&utm_campaign=google-analyticator)
15
16
+ Google Analyticator makes it super easy to view Google Analytics within your WordPress dashboard. This eliminates the need to edit your template code to begin logging. Google Analyticator also includes several widgets for displaying Analytics data in the admin and on your blog.
17
18
+ One of the most popular WordPress plugins for Google Analytics! Over 3.5+ million downloads.
19
20
= Features =
21
scripts/google-analyticator-scripts.js ADDED
@@ -0,0 +1,7 @@
1
+ function submitAppsumoCaptureForm(emailAddress) {
2
+ var xhr = new XMLHttpRequest();
3
+ xhr.open('POST', 'https://hooks.zapier.com/hooks/catch/2130556/ot6a0xg/');
4
+ xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
5
+ xhr.send(encodeURI('email=' + emailAddress));
6
+ alert("You're signed up!");
7
+ }
styles/google-analyticator-style-common.css ADDED
@@ -0,0 +1,314 @@
1
+
2
+ .google-analyticator-settings {
3
+ width: 600px;
4
+ }
5
+
6
+ .google-analyticator-content-left,.google-analyticator-content-right {
7
+ display: inline-block;
8
+ margin:0px;
9
+ padding:0px;
10
+ vertical-align: top;
11
+ }
12
+ .google-analyticator-content-left {
13
+ width:calc(100% - 400px) !important;
14
+ }
15
+ .google-analyticator-left-column {
16
+ margin-right: 320px;
17
+ }
18
+ .google-analyticator-content-right {
19
+ text-align: right;
20
+ width: 300px !important;
21
+ position: relative;
22
+ right: 0px;
23
+ }
24
+
25
+ .google-analyticator-content-left #poststuff {
26
+ padding-top: 10px;
27
+ width: 50%;
28
+ min-width: 1000px;
29
+ }
30
+
31
+ .google-analyticator-sidebar-appsumo-link {
32
+ color: #ff644d;
33
+ font-weight: 700;
34
+ text-shadow: 1px 1px 1px #000;
35
+ }
36
+
37
+ .google-analyticator-plugin-box {
38
+ width: calc( (100% / 2) - 160px);
39
+ padding: 25px;
40
+ margin: 25px 50px;
41
+ min-width: 200px;
42
+ display:inline-block;
43
+ box-shadow: 3px 5px 9px #888888;
44
+ background-color: white;
45
+ height: 125px;
46
+ vertical-align: top;
47
+ text-align: center;
48
+ }
49
+ .google-analyticator-plugin-box-form {
50
+ width: calc(100% / 3);
51
+ padding: 25px;
52
+ margin: 0px auto;
53
+ min-width: 200px;
54
+ display:block;
55
+ box-shadow: 3px 5px 9px #888888;
56
+ background-color: white;
57
+ vertical-align: top;
58
+ text-align: center;
59
+ }
60
+ .google-analyticator-plugin-box a {
61
+ font-weight: bold;
62
+ padding: 10px 0px;
63
+ display: block;
64
+ font-size: 20px;
65
+ }
66
+ .google-analyticator-plugin-box img {
67
+ max-width:150px;
68
+ max-height:40px;
69
+ }
70
+ .google-analyticator-plugin-box-logo-container {
71
+ height:40px;
72
+ }
73
+
74
+ .google-analyticator-plugin-box-form .google-analyticator-appsumo-capture-container{
75
+ background-image: unset !important;
76
+ width: unset;
77
+ height:unset;
78
+ }
79
+
80
+ .google-analyticator-plugin-box-form .google-analyticator-appsumo-capture-container .google-analyticator-appsumo-capture-sub-header {
81
+ color: #000 !important;
82
+ }
83
+
84
+ .google-analyticator-plugin-box-form .google-analyticator-appsumo-capture-container .google-analyticator-appsumo-capture-header {
85
+ color: #d54f21;
86
+ }
87
+
88
+ .google-analyticator-promo-box-form .google-analyticator-appsumo-capture-container{
89
+ background-image: unset !important;
90
+ width: unset;
91
+ height:unset;
92
+ }
93
+ .google-analyticator-promo-box-form {
94
+ width:auto;
95
+
96
+ }
97
+ .google-analyticator-promo-box-form .google-analyticator-appsumo-capture-container {
98
+ background-image: none;
99
+ width: 100%;
100
+ margin: 0px;
101
+ color: #444;
102
+ padding: 0px;
103
+ }
104
+ .google-analyticator-promo-box-form .google-analyticator-appsumo-capture-container .google-analyticator-appsumo-capture-container-input{
105
+ width: 100%;
106
+ }
107
+ .google-analyticator-promo-box-form .google-analyticator-appsumo-capture-container .google-analyticator-appsumo-capture-container-button{
108
+ display: block;
109
+ margin: 5px auto !important;
110
+ }
111
+ .google-analyticator-promo-box-form .google-analyticator-appsumo-capture-container .google-analyticator-appsumo-capture-header{
112
+ font-weight: bold;
113
+ color: #d54f21;
114
+ font-size: 18px;
115
+ margin: 0px !important;
116
+ }
117
+ .google-analyticator-promo-box-form .google-analyticator-appsumo-capture-container .google-analyticator-appsumo-capture-sub-header{
118
+ padding:10px;
119
+ }
120
+ .google-analyticator-promo-box-header {
121
+ font-weight: bold;
122
+ color: #d54f21;
123
+ font-size: 18px;
124
+ margin: 0px !important;
125
+ white-space: nowrap;
126
+ }
127
+ .google-analyticator-promo-box ul {
128
+ text-align: left;
129
+ }
130
+
131
+
132
+ .google-analyticator-appsumo-capture-container {
133
+ background-image: url('../images/triangle-pattern.svg');
134
+ background-repeat:no-repeat;
135
+ min-height:180px;
136
+ max-width:550px;
137
+ width: calc(100% / 3);
138
+ padding: 30px;
139
+ border-radius: 10px;
140
+ margin: 0px auto;
141
+ }
142
+ .google-analyticator-appsumo-capture-container .google-analyticator-appsumo-capture-header {
143
+ text-align: left;
144
+ box-sizing: border-box;
145
+ margin-top: 0;
146
+ line-height: 1.3;
147
+ font-weight: bold;
148
+ font-size: 1.5rem;
149
+ color: #ffffff;
150
+ text-align: center;
151
+ }
152
+ .google-analyticator-plugin-box-form .google-analyticator-appsumo-capture-container .google-analyticator-appsumo-capture-sub-header {
153
+ text-align: left;
154
+ font-weight: 400;
155
+ color: #FFF;
156
+ box-sizing: border-box;
157
+ margin-top: 0;
158
+ margin-bottom: 1rem;
159
+ line-height: 1.7;
160
+ font-size: 14px;
161
+ text-align: center;
162
+ padding: 10px;
163
+ width: 80%;
164
+ margin: 0px auto 20px auto;
165
+ }
166
+ .google-analyticator-appsumo-capture-container .google-analyticator-appsumo-capture-container-input {
167
+ overflow: visible;
168
+ margin-right: 0.5rem !important;
169
+ display: inline-block;
170
+ width: calc(100% - 170px);
171
+ vertical-align: middle;
172
+ transition: all 0.3s;
173
+ outline: none;
174
+ box-shadow: none;
175
+ box-sizing: border-box;
176
+ background: #fff;
177
+ height: 3rem;
178
+ font-weight: 100;
179
+ color: #272727;
180
+ margin: 0;
181
+ border-radius: 5px;
182
+ border: 1px solid #CCCCCC;
183
+ line-height: 1;
184
+ font-size: 1em;
185
+ padding: 14px 10px;
186
+ margin-bottom: 0;
187
+ min-width: 150px;
188
+ }
189
+ .google-analyticator-appsumo-capture-container-button {
190
+ display: inline-block;
191
+ text-align: center;
192
+ vertical-align: middle;
193
+ user-select: none;
194
+ line-height: 1.5;
195
+ transition: all 0.2s ease-in-out;
196
+ border: 0;
197
+ white-space: normal;
198
+ word-wrap: break-word;
199
+ text-transform: none;
200
+ color: #272727 !important;
201
+ padding: 12px 32px;
202
+ font-size: 14px;
203
+ border-radius: 5px;
204
+ font-weight: 600;
205
+ margin-top: 0 !important;
206
+ height: 3rem;
207
+ margin: 0;
208
+ text-decoration: none;
209
+ border-color: #0062cc;
210
+ outline: 0;
211
+ box-shadow: inset 0px 0px 0px 1px rgba(9,132,227,0);
212
+ background-color: #FFBC00 !important;
213
+ cursor: pointer;
214
+ }
215
+ .google-analyticator-promo-box {
216
+ text-align:left;
217
+ width: 250px;
218
+ min-width: 250px;
219
+ border: 1px solid #ccc;
220
+ padding: 20px;
221
+ background:#FFFFFF;
222
+ right: 20px;
223
+ margin: 10px 50px 25px 50px;
224
+ box-shadow: 3px 5px 9px #888888;
225
+ background-color: white;
226
+ vertical-align: top;
227
+ text-align: center;
228
+ }
229
+
230
+
231
+ @media only screen and (max-width: 1400px) {
232
+ .google-analyticator-left-column {
233
+ margin-right: unset;
234
+ }
235
+
236
+ .google-analyticator-plugin-box {
237
+ height: 145px;
238
+ width: calc( (100% /2) - 160px);
239
+ }
240
+
241
+ .google-analyticator-appsumo-capture-container {
242
+ width: calc(100% / 2);
243
+ }
244
+
245
+ .google-analyticator-appsumo-capture-container .google-analyticator-appsumo-capture-header {
246
+ font-size: 1.5rem;
247
+ text-align: center;
248
+ }
249
+
250
+ .google-analyticator-appsumo-capture-container .google-analyticator-appsumo-capture-sub-header {
251
+ text-align: center;
252
+ }
253
+
254
+ .google-analyticator-appsumo-capture-container .google-analyticator-appsumo-capture-container-input {
255
+ width: 100%;
256
+ }
257
+
258
+ .google-analyticator-appsumo-capture-container .google-analyticator-appsumo-capture-container-button {
259
+ display: block;
260
+ margin: 5px auto !important;
261
+ }
262
+
263
+ .google-analyticator-content-left,.google-analyticator-content-right {
264
+ display: block;
265
+ width: 100% !important;
266
+ }
267
+
268
+ .google-analyticator-settings {
269
+ width: 100% !important;
270
+ }
271
+
272
+ .google-analyticator-promo-box {
273
+ /*display: none;*/
274
+ width: auto !important;
275
+ max-width: 250px;
276
+ margin: 20px auto;
277
+ }
278
+ .google-analyticator-promo-box-form .google-analyticator-appsumo-capture-container {
279
+ width: auto !important;
280
+ max-width: 250px;
281
+ margin: 20px auto;
282
+ }
283
+
284
+ .google-analyticator-content-left #poststuff {
285
+ padding-top: 10px;
286
+ width: 100%;
287
+ min-width: unset;
288
+ }
289
+
290
+
291
+
292
+ }
293
+
294
+ @media only screen and (max-width: 800px) {
295
+ .google-analyticator-plugin-box {
296
+ width: 80%;
297
+ height: 125px;
298
+ margin: 25px auto;
299
+ display: block;
300
+ }
301
+ .google-analyticator-appsumo-capture-container .google-analyticator-appsumo-capture-header {
302
+ font-size: 1.5rem;
303
+ }
304
+
305
+ .google-analyticator-appsumo-capture-container .google-analyticator-appsumo-capture-sub-header {
306
+
307
+ }
308
+
309
+ .google-analyticator-appsumo-capture-container .google-analyticator-appsumo-capture-container-button {
310
+ height: 4rem;
311
+ }
312
+
313
+ }
314
+
styles/google-analyticator-style.css ADDED
@@ -0,0 +1,51 @@
1
+ /* Wordpress Google Fonts admin style */
2
+ .google-analyticator-selections{
3
+ display:none;
4
+ }
5
+ .google-analyticator-variants .variant-items,
6
+ .google-analyticator-subsets .subset-items{
7
+ border:1px solid #ccc;
8
+ margin:10px;
9
+ padding:5px;
10
+
11
+ }
12
+ .google-analyticator-block{
13
+ padding:20px;
14
+ margin-bottom:20px;
15
+ border:1px solid #ccc;
16
+ clear:both;
17
+ overflow:hidden;
18
+ position:relative;
19
+ }
20
+ .google-analyticator-variants,
21
+ .google-analyticator-subsets,
22
+ .google-analyticator-usage,
23
+ .google-analyticator-css{
24
+ float:left;
25
+ width: 44%;
26
+ margin-right:3%;
27
+ }
28
+ .google-analyticator-subsets.single{
29
+ display:none;
30
+ }
31
+ .google-analyticator-css textarea{
32
+ width: 96%;
33
+ height: 100px;
34
+ }
35
+ #google-analyticators_options .slight{
36
+ font-style:italic;
37
+ color:#ccc;
38
+ }
39
+ .google-analyticator-block .gfspinner{
40
+ background:url('../images/spinner.gif') no-repeat 0 0 scroll transparent;
41
+ height:60px;
42
+ width:60px;
43
+ position:absolute;
44
+ left:50%;
45
+ top:10px;
46
+ z-index:1;
47
+ display:block;
48
+ }
49
+ .google-analyticator-block .button-primary{
50
+ margin-top:10px;
51
+ }