Changeset 2008487
- Timestamp:
- 01/08/2019 03:22:06 PM (7 years ago)
- Location:
- utm-for-feeds
- Files:
-
- 4 edited
-
tags/1.0.0/readme.txt (modified) (4 diffs)
-
tags/1.0.0/utm-for-feeds.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (4 diffs)
-
trunk/utm-for-feeds.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
utm-for-feeds/tags/1.0.0/readme.txt
r1834879 r2008487 3 3 Tags: google analytics, syndication, feeds, atom, rss, dnt 4 4 Requires at least: 4.7 5 Tested up to: 4.9.45 Tested up to: 5.0.2 6 6 Stable tag: 1.0.0 7 7 License: GPLv3 … … 38 38 = Can I get a feed with custom tracking parameters? = 39 39 40 Yes. You can define the `utm_medium` and `utm_source` parameters in the request. E.g. if you want to track a feed-to-email-newsletter campaign powered by [MailChimp](http://eepurl.com/bLaE-5), you could set the parameters as follows:40 Yes. You can define the `utm_medium` and `utm_source` parameters in the request. E.g. if you want to track a feed-to-email-newsletter campaign, you could set the parameters as follows: 41 41 42 42 `https://www.example.com/feed?utm_medium=Email&utm_source=Email%20newsletter` … … 56 56 = What is up with the Vary: DNT header? = 57 57 58 Feed responses vary based on the DNT request header. See [Explaining the Vary HTTP response header](https:// ctrl.blog/entry/http-vary-explained) for details.58 Feed responses vary based on the DNT request header. See [Explaining the Vary HTTP response header](https://www.ctrl.blog/entry/http-vary-explained) for details. 59 59 60 60 = Does the plugin work with ugly URLs? and pretty ones too? = … … 64 64 = Do you make other plugins I can use to improve my syndication feeds? = 65 65 66 You, betcha! Check out the [Feed Delta Updates](https:// ctrl.blog/entry/wordpress-feed-delta-updates) and [Cache-Control](https://ctrl.blog/entry/wordpress-cache-control-plugin).66 You, betcha! Check out the [Feed Delta Updates](https://www.ctrl.blog/entry/wordpress-feed-delta-updates) and [Cache-Control](https://www.ctrl.blog/entry/wordpress-cache-control-plugin). 67 67 68 68 = Does this plugin work with other web analytics platforms? = -
utm-for-feeds/tags/1.0.0/utm-for-feeds.php
r1632530 r2008487 2 2 /* 3 3 Plugin Name: UTM for Feeds 4 Plugin URI: https://www. geeky.software/wordpress-plugins/utm-for-feeds/4 Plugin URI: https://www.ctrl.blog/entry/wordpress-feed-utm-plugin 5 5 Description: Adds utm_medium and utm_source parameters to links in feeds for integration with Google Analytics. 6 6 Version: 1.0.0 7 7 Author: Geeky Software 8 Author URI: https://www. geeky.software/8 Author URI: https://www.ctrl.blog/topic/wordpress 9 9 License: GPLv3 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 39 39 (isset($_GET['utm_source']) ? 40 40 esc_attr($_GET['utm_source']) : 'Syndication'); 41 41 42 42 // Don't track if query is `?utm_medium=0&utm_source=0` 43 43 if (in_array('utm_medium=0', $utm_query) && in_array('utm_medium=0', $utm_query)) … … 45 45 46 46 $url = explode('?', $link); 47 47 48 48 // Merge query parameters 49 49 $utm_query_str = implode('&', $utm_query); -
utm-for-feeds/trunk/readme.txt
r1834879 r2008487 3 3 Tags: google analytics, syndication, feeds, atom, rss, dnt 4 4 Requires at least: 4.7 5 Tested up to: 4.9.45 Tested up to: 5.0.2 6 6 Stable tag: 1.0.0 7 7 License: GPLv3 … … 38 38 = Can I get a feed with custom tracking parameters? = 39 39 40 Yes. You can define the `utm_medium` and `utm_source` parameters in the request. E.g. if you want to track a feed-to-email-newsletter campaign powered by [MailChimp](http://eepurl.com/bLaE-5), you could set the parameters as follows:40 Yes. You can define the `utm_medium` and `utm_source` parameters in the request. E.g. if you want to track a feed-to-email-newsletter campaign, you could set the parameters as follows: 41 41 42 42 `https://www.example.com/feed?utm_medium=Email&utm_source=Email%20newsletter` … … 56 56 = What is up with the Vary: DNT header? = 57 57 58 Feed responses vary based on the DNT request header. See [Explaining the Vary HTTP response header](https:// ctrl.blog/entry/http-vary-explained) for details.58 Feed responses vary based on the DNT request header. See [Explaining the Vary HTTP response header](https://www.ctrl.blog/entry/http-vary-explained) for details. 59 59 60 60 = Does the plugin work with ugly URLs? and pretty ones too? = … … 64 64 = Do you make other plugins I can use to improve my syndication feeds? = 65 65 66 You, betcha! Check out the [Feed Delta Updates](https:// ctrl.blog/entry/wordpress-feed-delta-updates) and [Cache-Control](https://ctrl.blog/entry/wordpress-cache-control-plugin).66 You, betcha! Check out the [Feed Delta Updates](https://www.ctrl.blog/entry/wordpress-feed-delta-updates) and [Cache-Control](https://www.ctrl.blog/entry/wordpress-cache-control-plugin). 67 67 68 68 = Does this plugin work with other web analytics platforms? = -
utm-for-feeds/trunk/utm-for-feeds.php
r1632528 r2008487 2 2 /* 3 3 Plugin Name: UTM for Feeds 4 Plugin URI: https://www. geeky.software/wordpress-plugins/utm-for-feeds/4 Plugin URI: https://www.ctrl.blog/entry/wordpress-feed-utm-plugin 5 5 Description: Adds utm_medium and utm_source parameters to links in feeds for integration with Google Analytics. 6 6 Version: 1.0.0 7 7 Author: Geeky Software 8 Author URI: https://www. geeky.software/8 Author URI: https://www.ctrl.blog/topic/wordpress 9 9 License: GPLv3 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 39 39 (isset($_GET['utm_source']) ? 40 40 esc_attr($_GET['utm_source']) : 'Syndication'); 41 41 42 42 // Don't track if query is `?utm_medium=0&utm_source=0` 43 43 if (in_array('utm_medium=0', $utm_query) && in_array('utm_medium=0', $utm_query)) … … 45 45 46 46 $url = explode('?', $link); 47 47 48 48 // Merge query parameters 49 49 $utm_query_str = implode('&', $utm_query);
Note: See TracChangeset
for help on using the changeset viewer.