{"id":48462,"date":"2016-05-18T15:51:58","date_gmt":"2016-05-18T15:51:58","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/utm-switcher\/"},"modified":"2016-05-18T18:31:06","modified_gmt":"2016-05-18T18:31:06","slug":"utm-switcher","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/utm-switcher\/","author":14960369,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.2","stable_tag":"1.0.2","tested":"4.5.33","requires":"4.3","requires_php":"","requires_plugins":"","header_name":"UTM Switcher","header_author":"David Alberts and Jeff Shamley","header_description":"","assets_banners_color":"f4cd5e","last_updated":"2016-05-18 18:31:06","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/jeffshamley.com\/","header_plugin_uri":"https:\/\/wordpress.org\/plugins\/utm-switcher\/","header_author_uri":"https:\/\/jeffshamley.com","rating":5,"author_block_rating":0,"active_installs":40,"downloads":2759,"num_ratings":4,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":4},"assets_icons":{"icon-128x128.jpg":{"filename":"icon-128x128.jpg","revision":"1419752","resolution":"128x128","location":"assets"},"icon-256x256.jpg":{"filename":"icon-256x256.jpg","revision":"1419752","resolution":"256x256","location":"assets"}},"assets_banners":{"banner-1544x500.jpg":{"filename":"banner-1544x500.jpg","revision":"1419752","resolution":"1544x500","location":"assets"},"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":"1419752","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.1","1.0.2"],"block_files":[],"assets_screenshots":{"screenshot-1.jpg":{"filename":"screenshot-1.jpg","revision":"1419752","resolution":"1","location":"assets"},"screenshot-2.jpg":{"filename":"screenshot-2.jpg","revision":"1419752","resolution":"2","location":"assets"},"screenshot-3.jpg":{"filename":"screenshot-3.jpg","revision":"1419752","resolution":"3","location":"assets"},"screenshot-4.jpg":{"filename":"screenshot-4.jpg","revision":"1419752","resolution":"4","location":"assets"}},"screenshots":{"1":"UTM Switcher Add New page.","2":"When used with Contact Form 7, a UTM button appears that allows you to add the UTM fields in the form.","3":"When used with Contact Form 7, add the UTM shortcode into the Message body field.","4":"When emailed, the contact will receive the information obtained through the UTM shortcode"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[24188,63212],"plugin_category":[],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-48462","plugin","type-plugin","status-publish","hentry","plugin_tags-utm","plugin_tags-utm-switcher","plugin_committers-punchrockgroin"],"banners":{"banner":"https:\/\/ps.w.org\/utm-switcher\/assets\/banner-772x250.jpg?rev=1419752","banner_2x":"https:\/\/ps.w.org\/utm-switcher\/assets\/banner-1544x500.jpg?rev=1419752","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/utm-switcher\/assets\/icon-128x128.jpg?rev=1419752","icon_2x":"https:\/\/ps.w.org\/utm-switcher\/assets\/icon-256x256.jpg?rev=1419752","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/utm-switcher\/assets\/screenshot-1.jpg?rev=1419752","caption":"UTM Switcher Add New page."},{"src":"https:\/\/ps.w.org\/utm-switcher\/assets\/screenshot-2.jpg?rev=1419752","caption":"When used with Contact Form 7, a UTM button appears that allows you to add the UTM fields in the form."},{"src":"https:\/\/ps.w.org\/utm-switcher\/assets\/screenshot-3.jpg?rev=1419752","caption":"When used with Contact Form 7, add the UTM shortcode into the Message body field."},{"src":"https:\/\/ps.w.org\/utm-switcher\/assets\/screenshot-4.jpg?rev=1419752","caption":"When emailed, the contact will receive the information obtained through the UTM shortcode"}],"raw_content":"<!--section=description-->\n<h4>UTM Switcher<\/h4>\n\n<p>The UTM Switcher is a powerful tool to help you track <em>where<\/em> your site visitors are coming from and modify page elements based upon a utm_source GET variable in a url. It notes where a site visitor first lands, and then proactively changes targeted elements across your entire website to match that source.<\/p>\n\n<h4>Keep track of your leads<\/h4>\n\n<p>In digital marketing, it can be difficult to figure out which of your channels is getting the best results: whether it\u2019s Adwords, facebook paid advertising, blogging, or something else. For this reason, some companies use landing pages with different phone numbers to track the source of a lead. However, typical customers have multiple interactions with a site before following any call to action. They may click through several pages before making a decision. That\u2019s where UTM Switcher comes in.<\/p>\n\n<h4>How it works<\/h4>\n\n<p>UTM Switchers uses cookies to keep your lead-specific content consistent across all pages. The cookies are only destroyed once the website is closed. It works with all Wordpress sites and features integrations with Contact Form 7 and Contact Form DB. The information stored is taken from the URL's GET variables utm_source, utm_medium, and utm_campaign<\/p>\n\n<p>When a UTM Switcher finds a matching DOM element using jQuery, it replaces the content of that element with the value supplied in the switch. Each Switcher can be set to match a specific utm_source in the URL or stored as a cookie value to the specific DOM element. An example of this is if the utm_source value is Facebook change the value to 1234 and if the utm_source value is Twitter change the targeted element to 4321. Each Switcher can also be set to replace the value with a tel: anchor tag for use with a call tracking plugin.<\/p>\n\n<p>You can read more about the <a href=\"https:\/\/www.betoplocal.com\/call-tracking-plugin\/\">call tracking plugin here<\/a>.<\/p>\n\n<h4>Recommended PHP Version<\/h4>\n\n<p>PHP 5.4 or greater<\/p>\n\n<h4>Required plugins<\/h4>\n\n<p>None<\/p>\n\n<h4>Recommended plugins<\/h4>\n\n<p>Contact Form 7 - If you choose, the UTM information can be sent in your form email. This information will include the information gathered from the initial URL GET variables utm_source, utm_medium, and utm_campaign. These values are then passed along to the email via a shortcode, e.g. [utm-100]<\/p>\n\n<p>Contact Form DB - This extension is not required, but we do recommend it.<\/p>\n\n<h4>Usage<\/h4>\n\n<ol>\n<li><p>Under UTM Switchers, click Add New<\/p><\/li>\n<li><p>Enter an Identifier -- this is for internal use only. You could use it to keep track of what the switch does<\/p><\/li>\n<li><p>Enter an selector (an #ID or .classname or other selector) to target. This field uses <a href=\"http:\/\/api.jquery.com\/category\/selectors\/\">jQuery syntax<\/a><\/p><\/li>\n<li><p>Choose the Type. Phone Number Element will replace the whole element with an anchor link with a tel: attribute. Text replacement replaces all text in the above element<\/p><\/li>\n<li><p>Click \"Add Switcher\" under UTM Source Switchers. A matching value in the Campaign Source field to the utm_source GET variable will replace the above selector's content with the value in the Replacement Value field. HTML can be used. You may add multple switches for different UTM Sources<\/p><\/li>\n<li><p>Click Publish.<\/p><\/li>\n<\/ol>\n\n<h4>Contribute<\/h4>\n\n<p>To report any bugs, or to offer features, please use our <a href=\"https:\/\/github.com\/Shamley\/UTM-Switcher\">GitHub repository<\/a><\/p>\n\n<h3>Updates<\/h3>\n\n<p>The basic structure of this plugin was cloned from the <a href=\"https:\/\/github.com\/tommcfarlin\/WordPress-Plugin-Boilerplate\">WordPress-Plugin-Boilerplate<\/a> project.<\/p>\n\n<!--section=installation-->\n<h4>Minimum Requirements<\/h4>\n\n<ul>\n<li>WordPress 3.8 or greater<\/li>\n<li>PHP version 5.4 or greater<\/li>\n<li>MySQL version 5.0 or greater<\/li>\n<\/ul>\n\n<h4>Using The WordPress Dashboard<\/h4>\n\n<ol>\n<li>Navigate to the 'Add New' in the plugins dashboard<\/li>\n<li>Search for 'utm-switcher'<\/li>\n<li>Click 'Install Now'<\/li>\n<li>Activate the plugin on the Plugin dashboard<\/li>\n<\/ol>\n\n<h4>Uploading in WordPress Dashboard<\/h4>\n\n<ol>\n<li>Navigate to the 'Add New' in the plugins dashboard<\/li>\n<li>Navigate to the 'Upload' area<\/li>\n<li>Select <code>utm-switcher.zip<\/code> from your computer<\/li>\n<li>Click 'Install Now'<\/li>\n<li>Activate the plugin in the Plugin dashboard<\/li>\n<\/ol>\n\n<h4>Using FTP<\/h4>\n\n<ol>\n<li>Download <code>utm-switcher.zip<\/code><\/li>\n<li>Extract the <code>utm-switcher<\/code> directory to your computer<\/li>\n<li>Upload the <code>utm-switcher<\/code> directory to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin in the Plugin dashboard<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial commit.<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Update README.txt to include screenshots and link to Github repo.<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Update README.txt with more information.<\/li>\n<\/ul>","raw_excerpt":"The UTM Switcher is a powerful tool to help you track where your site visitors are coming from.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/48462","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=48462"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/punchrockgroin"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=48462"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=48462"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=48462"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=48462"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=48462"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=48462"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}