Permalink
Browse files

added clarification about metric collection

and made it an option
  • Loading branch information...
1 parent 69518e2 commit 200587e8ca82060f45f24da091ec7227e195625d @jonparis jonparis committed Oct 25, 2012
Showing with 30 additions and 8 deletions.
  1. +2 −0 astridcta.css
  2. +12 −7 astridcta.php
  3. +16 −1 readme.txt
View
2 astridcta.css
@@ -51,6 +51,8 @@ root {
display: table-cell;
}
+.acta_action_fieid textarea.admin_input,
+.acta_action_fieid input[type=text].admin_input,
.acta_action_field textarea.acta_action_description,
.acta_action_field input[type=text].acta_action_text,
.acta_action_field input[type=text].acta_action_reminder_days {
View
19 astridcta.php
@@ -67,7 +67,7 @@ function init_acta() {
function print_scripts() {
wp_register_script( 'astridcta', ACTA_URL . 'astridcta.js', array( 'jquery' ), '1.0' );
wp_enqueue_script( 'astridcta' );
- if ( is_singular() && is_main_query() ){
+ if ( is_singular() && is_main_query() && get_astrid_cta_option('collect_statistics')){
wp_register_script('astrid_post_loaded', ACTA_URL . 'astrid_post_loaded.js', array('jquery'), '1.0' );
wp_enqueue_script( 'astrid_post_loaded' );
}
@@ -196,15 +196,20 @@ function astrid_cta_do_page() {
?>
<div class="wrap">
<h2>Astrid Calls-To-Action</h2>
- <form method="post" action="">
+ <form method="post" action="options.php">
<?php settings_fields('astrid_cta_options'); ?>
</p>
- <table class="form-table">
- <tr valign="top"><th scope="row">CTA Header</th>
- <td><input name="astrid_cta[header]" type="text" value="<?php echo get_astrid_cta_option('header'); ?>" /></td>
+ <table class="form-table acta_action_fieid">
+ <tr valign="top"><th scope="row">Call-To-Action Header</th>
+ <td><input class="admin_input" name="astrid_cta[header]" type="text" value="<?php echo get_astrid_cta_option('header'); ?>" /></td>
</tr>
<tr valign="top"><th scope="row">Description</th>
- <td><textarea name="astrid_cta[description]" rows="3"><?php echo get_astrid_cta_option('description'); ?></textarea></td>
+ <td><textarea class="admin_input" name="astrid_cta[description]" rows="3"><?php echo get_astrid_cta_option('description'); ?></textarea></td>
+ </tr>
+ <tr valign="top"><th scope="row">Collect Statistics</th>
+ <td><input type="checkbox" name="astrid_cta[collect_statistics]"
+ <?php if (get_astrid_cta_option('collect_statistics')) echo "checked='checked'"; ?>
+ value="true" /> statistics show the # of people who add reminders complete suggestions.</td>
</tr>
</table>
<p class="submit">
@@ -220,7 +225,7 @@ function astrid_cta_validate($input) {
// Say our second option must be safe text with no HTML tags
$input['header'] = wp_filter_nohtml_kses($input['header']);
$input['description'] = addslashes($input['description']);
-
+ $input['collect_statistics'] = ($input['collect_statistics']) ? 1 : 0;
return $input;
}
View
17 readme.txt
@@ -47,7 +47,22 @@ Remind Me Buttons are identical to Remind Me links but appear as a button. There
### Call-to-Action Reminders
Astrid Call-to-Action are probably the easiest way to help readers act on a post. Add the Call-To-Action at the bottom of each post as a quick way to summarize the next steps readers can take.
-Enjoy!
+### Use of Astrid.com Services
+
+## url shortener
+When adding a Remind Me button to your post Astrid will send the reminder to Astrid.com to create a custom short code url.
+eg http://astrd.co/QtM5gy
+The short code provides a simple metric as to how many clicks your link has generated. You can view how many clicks on the shortcode by adding a plus "+" to the end of the url.
+eg http://astrd.co/QtM5gy+
+
+## tracking metrics by blog posts including Remind Me buttons
+This plugin also counts how many readers have viewed your post that has included Remind Me links and Call-To-Actions.
+This is not a replacement for Jetpack by WordPress, Google Analytics, or other ways to monitor your site traffic. It does provide anonymous
+user statistics so with a plugin update you will be able to see how many readers intend to act and what percentage are
+successfully completing your suggestions. At this time, no account creation is required.
+
+No statistics are recorded or information is sent to Astrid.com for posts that do not inlcude Call-To-Actions or Remind Me links.
+
== Installation ==

0 comments on commit 200587e

Please sign in to comment.