Changeset 1067492
- Timestamp:
- 01/13/2015 11:43:03 PM (11 years ago)
- Location:
- segmentio/tags/1.0.9
- Files:
-
- 5 edited
- 1 copied
-
. (copied) (copied from segmentio/trunk) (1 prop)
-
Readme.md (modified) (2 diffs)
-
analytics-wordpress.php (modified) (3 diffs)
-
bin/deploy (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
templates/snippet.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
segmentio/tags/1.0.9
-
Property
svn:ignore
set to
Readme.md
.git
.gitignore
-
Property
svn:ignore
set to
-
segmentio/tags/1.0.9/Readme.md
r980785 r1067492 2 2 # Analytics for WordPress 3 3 4 **Analytics for WordPress** is a WordPress plugin for [Segment](https://segment. io) that lets you send data to any analytics service you want without touching any code.4 **Analytics for WordPress** is a WordPress plugin for [Segment](https://segment.com) that lets you send data to any analytics service you want without touching any code. 5 5 6 6 7 7 ## Installation 8 8 9 To get up and running, checkout our documentation at [segment. io/plugins/wordpress](https://segment.io/plugins/wordpress)—installation takes less than five minutes!9 To get up and running, checkout our documentation at [segment.com/plugins/wordpress](https://segment.com/plugins/wordpress)—installation takes less than five minutes! 10 10 11 11 … … 31 31 ## Support 32 32 33 If you run into issues, be sure to check out the [documentation](https://segment. io/plugins/wordpress), and you can always reach out to our [support team](https://segment.io/support) for help!33 If you run into issues, be sure to check out the [documentation](https://segment.com/plugins/wordpress), and you can always reach out to our [support team](https://segment.com/support) for help! 34 34 35 35 -
segmentio/tags/1.0.9/analytics-wordpress.php
r986769 r1067492 4 4 Plugin URI: https://segment.io/plugins/wordpress 5 5 Description: The hassle-free way to integrate any analytics service into your WordPress site. 6 Version: 1.0. 46 Version: 1.0.9 7 7 License: GPLv2 8 8 Author: Segment.io … … 182 182 * Current plugin version. 183 183 */ 184 const VERSION = '1.0. 5';184 const VERSION = '1.0.8'; 185 185 186 186 /** … … 821 821 822 822 if ( ! self::is_excluded_post_type() ) { 823 $categories = implode( ', ', wp_list_pluck( get_ categories( get_the_ID() ), 'name' ) );823 $categories = implode( ', ', wp_list_pluck( get_the_category( get_the_ID() ), 'name' ) ); 824 824 $track = array( 825 825 'event' => sprintf( __( 'Viewed %s', 'segment' ), ucfirst( get_post_type() ) ), -
segmentio/tags/1.0.9/bin/deploy
r950000 r1067492 46 46 47 47 echo "Updating local SVN branch..." 48 git branch -f svn origin/svn 48 49 git checkout svn 49 git reset --hard origin/svn50 50 51 51 # -
segmentio/tags/1.0.9/readme.txt
r986769 r1067492 4 4 Requires at least: 3.6 5 5 Tested up to: 4.0 6 Stable tag: 1.0. 56 Stable tag: 1.0.9 7 7 License: GPLv2 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 76 76 == Changelog == 77 77 78 = 1.0.6 = 79 * Bump snippet to version 3.0.0 80 * Fix for category retrieval bug 81 78 82 = 1.0.5 = 79 83 * Add context information to page calls. -
segmentio/tags/1.0.9/templates/snippet.php
r948394 r1067492 1 1 <script type="text/javascript"> 2 window.analytics=window.analytics||[],window.analytics.methods=["identify","group","track","page","pageview","alias","ready","on","once","off","trackLink","trackForm","trackClick","trackSubmit"],window.analytics.factory=function(t){return function(){var a=Array.prototype.slice.call(arguments);return a.unshift(t),window.analytics.push(a),window.analytics}};for(var i=0;i<window.analytics.methods.length;i++){var key=window.analytics.methods[i];window.analytics[key]=window.analytics.factory(key)}window.analytics.load=function(t){if(!document.getElementById("analytics-js")){var a=document.createElement("script");a.type="text/javascript",a.id="analytics-js",a.async=!0,a.src=("https:"===document.location.protocol?"https://":"http://")+"cdn.segment.io/analytics.js/v1/"+t+"/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(a,n)}},window.analytics.SNIPPET_VERSION="2.0.9";2 !function(){var analytics=window.analytics=window.analytics||[];if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","group","track","ready","alias","page","once","off","on"];analytics.factory=function(t){return function(){var e=Array.prototype.slice.call(arguments);e.unshift(t);analytics.push(e);return analytics}};for(var t=0;t<analytics.methods.length;t++){var e=analytics.methods[t];analytics[e]=analytics.factory(e)}analytics.load=function(t){var e=document.createElement("script");e.type="text/javascript";e.async=!0;e.src=("https:"===document.location.protocol?"https://":"http://")+"cdn.segment.com/analytics.js/v1/"+t+"/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(e,n)};analytics.SNIPPET_VERSION="3.0.0"; 3 3 <?php if ( ! $ignore ) : ?> 4 4 window.analytics.load("<?php echo esc_js( $settings['api_key'] ); ?>");
Note: See TracChangeset
for help on using the changeset viewer.