Skip to content

Commit

Permalink
Merge pull request #4 from simplereach/tracking
Browse files Browse the repository at this point in the history
copy and layout updates to the plugin admin screen
  • Loading branch information
elubow committed Feb 14, 2014
2 parents 44ef863 + 34ec40b commit 7c8120c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 7 deletions.
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Plugin Name: SimpleReach Analytics
Plugin URI: https://github.com/simplereach/sranalytics_wordpress
Requires at least: 2.7
Tested up to: 3.8.1
Stable tag: 0.0.4
Stable tag: 0.0.5

SimpleReach Analytics finds trending articles and gives publishers deep insights into their social traffic.

Expand All @@ -20,6 +20,9 @@ SimpleReach Analytics finds trending articles and gives publishers deep insights

== Changelog ==

= 0.0.5 =
* Better wording for what gets tracked

= 0.0.4 =
* SimpleReach tag fires in <head> now for speed
* Made iframe loading optional for complex AJAX sites
Expand Down
22 changes: 16 additions & 6 deletions sranalytics_admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,23 +71,33 @@
<div id='post-body' class='metabox-holder colums-2'>
<div id='post-body-content'>
<div class='postbox'>
<h3 class='hndle'><span><?php _e('Settings', 'sranalytics_admin_settings_box_title'); ?></span></h3>
<h3 class='hndle'><span><?php _e('Tracking Settings', 'sranalytics_admin_settings_box_title'); ?></span></h3>
<div class='inside'>
<p>WordPress posts are tracked by default. If you'd like to track additional parts of your site, please use the settings below.</p>
<ul>
<li>
<input type="checkbox" id='sranalytics_show_everywhere' name="sranalytics_show_everywhere" value="true" <?php if ($sranalytics_show_everywhere) { print 'CHECKED=CHECKED'; } ?> />
<label for='sranalytics_show_everywhere'>Show on every Wordpress page on the site</label>
<input type="checkbox" id='sranalytics_show_on_wp_pages' name="sranalytics_show_on_wp_pages" value="true" <?php if ($sranalytics_show_on_wp_pages) { print 'CHECKED=CHECKED'; } ?> />
<label for='sranalytics_show_on_wp_pages'>Track WordPress pages</label>
</li>

<li>
<input type="checkbox" id='sranalytics_show_on_tac_pages' name="sranalytics_show_on_tac_pages" value="true" <?php if ($sranalytics_show_on_tac_pages) { print 'CHECKED=CHECKED'; } ?> />
<label for='sranalytics_show_on_tac_pages'>Show on tag/author/category pages</label>
<label for='sranalytics_show_on_tac_pages'>Track author, category, and tag pages</label>
</li>

<li>
<input type="checkbox" id='sranalytics_show_on_wp_pages' name="sranalytics_show_on_wp_pages" value="true" <?php if ($sranalytics_show_on_wp_pages) { print 'CHECKED=CHECKED'; } ?> />
<label for='sranalytics_show_on_wp_pages'>Show on Wordpress pages</label>
<input type="checkbox" id='sranalytics_show_everywhere' name="sranalytics_show_everywhere" value="true" <?php if ($sranalytics_show_everywhere) { print 'CHECKED=CHECKED'; } ?> />
<label for='sranalytics_show_everywhere'>Track everything, including the home page (includes WordPress, author, category, tag, and search results pages)</label>
</li>
<li><input class='button-primary' type="submit" name="Submit" value="<?php _e('Save', 'sranalytics'); ?>" /></li>
</ul>
</div>
</div>

<div class='postbox'>
<h3 class='hndle'><span><?php _e('iFrame Settings', 'sranalytics_admin_settings_box_title'); ?></span></h3>
<div class='inside'>
<ul>
<li>
<input type="checkbox" id='sranalytics_disable_iframe_loading' name="sranalytics_disable_iframe_loading" value="true" <?php if ($sranalytics_disable_iframe_loading) { print 'CHECKED=CHECKED'; } ?> />
<label for='sranalytics_disable_iframe_loading'>Disable iFrame loading of the SimpleReach code (<span style='color:red;font-size:10px;'><strong>WARNING</strong>: disabling will make your analytics less accurate</span>)</label>
Expand Down

0 comments on commit 7c8120c

Please sign in to comment.