Plugin Directory

Changeset 713156


Ignore:
Timestamp:
05/14/2013 09:30:51 PM (13 years ago)
Author:
segmentio
Message:

0.5.3

Location:
segmentio/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • segmentio/trunk/analytics-wordpress.php

    r709542 r713156  
    55Description: The hassle-free way to integrate any analytics service into your Wordpress site.
    66
    7 Version: 0.5.2
     7Version: 0.5.3
    88License: GPLv2
    99
     
    6060
    6161  const SLUG    = 'analytics';
    62   const VERSION = '0.5.1';
     62  const VERSION = '0.5.3';
    6363
    6464  private $option   = 'analytics_wordpress_options';
  • segmentio/trunk/readme.txt

    r709542 r713156  
    44Requires at least: 3.4
    55Tested up to: 3.5.1
    6 Stable tag: 0.5.2
     6Stable tag: 0.5.3
    77License: GPLv2
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5555== Changelog ==
    5656
     57= 0.5.3 =
     58* Fixed a bug that occured in older versions of PHP.
     59
    5760= 0.5.2 =
    5861* Added `'analytics-wordpress'` `library` option.
  • segmentio/trunk/templates/identify.php

    r709542 r713156  
    11<script type="text/javascript">
    2   analytics.identify(<?php echo '"' . $user_id . '"' ?>, <?php echo json_encode($traits, JSON_FORCE_OBJECT); ?>, <?php echo json_encode($options, JSON_FORCE_OBJECT); ?>);
     2  analytics.identify(<?php echo '"' . $user_id . '"' ?><?php if (!empty($traits)) { echo ', ' . json_encode($traits); } else { echo ', {}'; } ?><?php if (!empty($options)) { echo ', ' . json_encode($options); } ?>);
    33</script>
  • segmentio/trunk/templates/track.php

    r709542 r713156  
    11<script type="text/javascript">
    2   analytics.track(<?php echo '"' . $event . '"' ?>, <?php echo json_encode($properties, JSON_FORCE_OBJECT); ?>, <?php echo json_encode($options, JSON_FORCE_OBJECT); ?>);
     2  analytics.track(<?php echo '"' . $event . '"' ?><?php if (!empty($properties)) { echo ', ' . json_encode($properties); } else { echo ', {}'; } ?><?php if (!empty($options)) { echo ', ' . json_encode($options); } ?>);
    33</script>
Note: See TracChangeset for help on using the changeset viewer.