Changeset 713156
- Timestamp:
- 05/14/2013 09:30:51 PM (13 years ago)
- Location:
- segmentio/trunk
- Files:
-
- 4 edited
-
analytics-wordpress.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
templates/identify.php (modified) (1 diff)
-
templates/track.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
segmentio/trunk/analytics-wordpress.php
r709542 r713156 5 5 Description: The hassle-free way to integrate any analytics service into your Wordpress site. 6 6 7 Version: 0.5. 27 Version: 0.5.3 8 8 License: GPLv2 9 9 … … 60 60 61 61 const SLUG = 'analytics'; 62 const VERSION = '0.5. 1';62 const VERSION = '0.5.3'; 63 63 64 64 private $option = 'analytics_wordpress_options'; -
segmentio/trunk/readme.txt
r709542 r713156 4 4 Requires at least: 3.4 5 5 Tested up to: 3.5.1 6 Stable tag: 0.5. 26 Stable tag: 0.5.3 7 7 License: GPLv2 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 55 55 == Changelog == 56 56 57 = 0.5.3 = 58 * Fixed a bug that occured in older versions of PHP. 59 57 60 = 0.5.2 = 58 61 * Added `'analytics-wordpress'` `library` option. -
segmentio/trunk/templates/identify.php
r709542 r713156 1 1 <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); } ?>); 3 3 </script> -
segmentio/trunk/templates/track.php
r709542 r713156 1 1 <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); } ?>); 3 3 </script>
Note: See TracChangeset
for help on using the changeset viewer.