<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by James Bavington on Medium]]></title>
        <description><![CDATA[Stories by James Bavington on Medium]]></description>
        <link>https://medium.com/@bavington?source=rss-9a18d0e4228------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*iw-QrnTo_xbHMdXYXURcBg.jpeg</url>
            <title>Stories by James Bavington on Medium</title>
            <link>https://medium.com/@bavington?source=rss-9a18d0e4228------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 13:52:32 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bavington/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Goal Tracking for Contact Form 7 (CF7) with DOM Events & Google Tag Manager]]></title>
            <link>https://medium.com/strategiq/goal-tracking-cf7-dom-events-google-tag-manager-490f620733c1?source=rss-9a18d0e4228------2</link>
            <guid isPermaLink="false">https://medium.com/p/490f620733c1</guid>
            <category><![CDATA[marketing-attribution]]></category>
            <category><![CDATA[google-analytics]]></category>
            <category><![CDATA[seo]]></category>
            <category><![CDATA[google-tag-manager]]></category>
            <category><![CDATA[wordpress-web-development]]></category>
            <dc:creator><![CDATA[James Bavington]]></dc:creator>
            <pubDate>Wed, 09 Aug 2017 17:47:56 GMT</pubDate>
            <atom:updated>2017-10-13T15:20:06.028Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<blockquote>TL;DR — A step-by-step tutorial for tracking Contact Form 7 submissions as Goals in Google Analytics using Google Tag Manager and the new CF7 DOM Events.</blockquote><p>Following on from <a href="https://bavington.co.uk/goal-tracking-for-contact-form-7-in-google-analytics-e6097c1320a5">my post last year</a> about tracking Goals in Google Analytics <em>(GA)</em> for Contact Form 7 <em>(CF7)</em> submissions, it’s time to share an updated tutorial for using CF7’s new DOM events to trigger our goals via Google Tag Manager <em>(GTM)</em>.</p><p><em>Why?</em> Two reasons:-</p><ol><li>I deploy GA via Google Tag Manager now and you should too.</li><li>The authors of CF7 <a href="https://contactform7.com/2017/06/07/on-sent-ok-is-deprecated/">recently announced</a> the deprecation of their beloved ‘<a href="https://contactform7.com/additional-settings/">on_sent_ok</a>’ action hook, which most people are using to track their goals at the moment.</li></ol><h3>Prerequisite</h3><p>In an attempt to streamline this article I’m going to assume that you already have Google Universal Analytics deployed via Tag Manager and that it’s all working fine. If not, <a href="https://support.google.com/analytics/answer/6163791">Google’s own article</a> is a good starting point. You also need to have version <a href="https://contactform7.com/2017/03/03/contact-form-7-47/">4.7</a> of Contact Form 7 (or above), as the new DOM events we’re going to be using were added in this release.</p><h3>I. Set-up your Goal in Google Analytics</h3><p>To begin setting up your Contact Form Goal, simply head to your desired GA View, click on the admin-cog in the bottom left and hit the +New goal button:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7k7U2upeoAavg7JCN-nKzQ.gif" /></figure><p>The goal that we’ve just set-up is now ready and waiting for us to send an Event that matches the custom Category and Action conditions we’ve defined.</p><h3>II. CF7’s new DOM Events</h3><p>In order to send this Event to GA via GTM to activate our new goal, we can utilise the new DOM events in CF7 that fire automatically in the following five scenarios:</p><ol><li><strong>wpcf7invalid<em> </em></strong>— fires when the user has submitted the form with errors, typically when not all mandatory fields are entered.</li><li><strong>wpcf7spam</strong> — if the submission has been identified as potential spam and the email hasn’t been sent.</li><li><strong>wpcf7mailfailed</strong> — if the form was correctly completed but the email wasn’t sent due to a failure.</li><li><strong>wpcf7submit</strong> — when the form has been completed successfully, irrespective of other incidents.</li><li><strong>wpcf7mailsent</strong> — when the form has been completed successfully and the email has been sent.</li></ol><p>Because we wish record instances of the form being successfully completed without error, we’re going to use the <strong>wpcf7mailsent</strong> event to trigger our event.</p><blockquote>It’s worth noting the other four DOM events may be useful to track as events if you’re analysing your forms for Conversion Rate Optimisation.</blockquote><p>Because these DOM Events occur automatically in the background since version 4.7 of CF7, we don’t have to modify anything further in the plugin, it’s all over to Google Tag Manager (GTM) now.</p><blockquote>I should also point out, that if you were previously using the on_sent_ok Action Hook within the additional settings, and you’re upgrading to this method, don’t forget to remove these settings within that tab.</blockquote><h3>III. Implementing an Event Handler</h3><p>In order to fish-out and do something with the chosen DOM Event when it fires, you can set-up a simple JavaScript Event Handler within a Custom HTML Tag in GTM.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3e7325083c901259551a513a0a8777e0/href">https://medium.com/media/3e7325083c901259551a513a0a8777e0/href</a></iframe><p>Before we use our Listener to push the Event onto GA, try implementing the above JavaScript alert first in GTM, to check that your Event Handler is working as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FdEHtbbQ8eNlUHqlhZ6RQQ.gif" /></figure><p>Once you’ve created your Custom HTML Tag, you’ll notice in the animation above, I’ve limited the trigger to only fire on the contact page itself, which is the only place where my form is. If your form is site-wide you can choose to use the default ‘All Pages’ trigger.</p><h3>IV. Testing the Event Handler</h3><p>Now that your Custom HTML Tag and trigger are in place, you can test that your Event Handler is working within GTM’s preview mode, or publish to live. Like in the GIF below, navigate to your form and complete a submission.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VRefe9PVneLoITINBuh8Ig.gif" /></figure><p>You should see the JavaScript alert appear only, when you successfully complete the contact form. Pretty cool right!</p><h3>V. Push the event into the Data Layer</h3><p>Next we’re going to use this Event Handler to push a completely new GTM Event into the GTM Data Layer.</p><p>Let’s call our new GTM Event: cf7.contact-page.mailsent</p><p>Now go back to your Custom HTML Tag for the Event Handler, and modify the function on line 3 so that we can push our new Event into the Data Layer:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ca01d6fbc93007506b24cfc2be4de3ce/href">https://medium.com/media/ca01d6fbc93007506b24cfc2be4de3ce/href</a></iframe><p>In summary, we now have a custom JavaScript Event Handler that we’re deploying onto our Contact Page via Google Tag Manager. Whenever our CF7 form is successfully completed, our Event Handler is pushing a new event called cf7.contact-page.mailsent into the GTM Data Layer.</p><h3>VI. Triggering the GA Event within GTM</h3><p>We can now use this Data Layer Event to trigger an actual Google Analytics Event within GTM that in-turn will ping our Goal that we set up in part 1.</p><p>To do this, start by creating a new Tag within GTM:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FvU5QL4GGDklajLNh7Qlsg.gif" /></figure><h3>VII. Testing your configuration</h3><p>The easiest way to test if your Event is registering within Google Analytics, is to view your contact page in GTM’s Preview mode, and you should see:</p><ol><li>Your Event Handler Custom HTML fire when the page loads</li><li>Your GA Event Tag fire when the form is successfully completed</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rh-xIbcfQS3E8pgnec8fkg.gif" /></figure><p>You can also then head over to Google Analytics, and navigate to the ‘Realtime’ reports and click on the Event’s tab. Here you should see your event firing within the Realtime chart:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jij2iu3GdEzwRQvXqORqsQ.png" /></figure><p>Providing that your Event Category and Action values match those you defined in your Goal, you should be able to check back on your Conversion reports to see your goals triggering.</p><h3>Conclusion</h3><p>Setting up GA Goal Tracking for Contact Form 7 using the new DOM Events and Google Tag Manager might seem a cumbersome and daunting prospect; but it’s a scalable and solid process for marketers without needing to modify the source code of the website.</p><p>Please let me know your thoughts and feedback on the article, I’m no doubt going to refine the article over the coming days, so do let me know if you have any tips for making it even better.</p><p>James.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=490f620733c1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/strategiq/goal-tracking-cf7-dom-events-google-tag-manager-490f620733c1">Goal Tracking for Contact Form 7 (CF7) with DOM Events &amp; Google Tag Manager</a> was originally published in <a href="https://medium.com/strategiq">StrategiQ</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Goal Tracking for Contact Form 7 in Google Analytics]]></title>
            <link>https://medium.com/bavington/goal-tracking-for-contact-form-7-in-google-analytics-e6097c1320a5?source=rss-9a18d0e4228------2</link>
            <guid isPermaLink="false">https://medium.com/p/e6097c1320a5</guid>
            <category><![CDATA[wordpress]]></category>
            <category><![CDATA[seo]]></category>
            <category><![CDATA[contact-form-7]]></category>
            <category><![CDATA[google-analytics]]></category>
            <dc:creator><![CDATA[James Bavington]]></dc:creator>
            <pubDate>Mon, 17 Oct 2016 18:40:53 GMT</pubDate>
            <atom:updated>2017-08-09T17:53:14.083Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<blockquote>Please note that the technique used in this tutorial will no longer work at the end of 2017. I would highly recommend reading and implementing my <a href="https://blog.strategiq.co/goal-tracking-cf7-dom-events-google-tag-manager-490f620733c1">new tutorial</a> that utilises CF7’s new DOM events and Google Tag Manager.</blockquote><p>In this quick blog post, I wanted to share a quick-start guide that I personally use for tracking Contact Form 7 form submissions as Goals within Google Analytics. Within this post, I’ll share the method for both standard Universal Analytics integration and also deployment via Google Tag Manager.</p><p>For many of my small business clients, a website form enquiry is a quality, macro conversion that I track to monitor the performance and engagement of the website and marketing. Because CF7 doesn’t take users to a separate ‘thank you’ page and processes the submissions via AJAX, we can trigger our goal a different way by posting an event to GA.</p><h3>Step 1. Setting up your Goal within GA</h3><p>In order to track form completions, whether you’ve installed Google Analytics directly on your website or via Tag Manager, start by setting up a brand new goal within the GA Admin tab as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JM3l_MMi09Jk-5V0tWAxjQ.gif" /><figcaption>Setting up your Goal within the Google Analytics Admin Tab</figcaption></figure><p>Choose a relevant name for your new goal, and be sure to select the ‘Event’ Type.</p><p>In order to trigger this Custom Event (and therefore register a goal completion), we’re going to ask Contact Form 7 to push an event to Google Analytics using the hitType of ‘event’ when our form is successfully posted.</p><h3>Step 2. Triggering the event from CF7</h3><p>Within every CF7 form created, you have the ability to add <a href="http://contactform7.com/additional-settings/">additional settings</a> for applying advanced customisations. The particularly handy ‘on_set_ok’ Action Hook allows us to run a script once the form has been successfully posted.</p><h4>Opt 1. Implementing for standard Universal Analytics Integrations</h4><p>If you’ve installed Universal Analytics within your site either manually or through a plugin, we can send an Event Hit directly to GA by adding the following code:</p><pre>on_sent_ok: &quot;ga(&#39;send&#39;, &#39;event&#39;, &#39;CF7 Form&#39;, &#39;Submission&#39;, &#39;Contact Page&#39;);&quot;</pre><p>Simply navigate to the ‘Additional Settings’ tab like in the animation below and paste it in:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PMmpo2nOoD_uI3RqB4k1Lw.gif" /></figure><p>Be sure to match up the eventCategory (<em>CF7 Form</em>), eventAction (<em>Submission</em>) and eventLabel (<em>Contact Page</em>) with the values you entered when setting up your own goal.</p><h4>Opt 2. Implementing with Google Tag Manager</h4><p>If (like me), you prefer to deploy Google Analytics from Google Tag Manager, you’ll need to follow my separate article <a href="https://blog.strategiq.co/goal-tracking-cf7-dom-events-google-tag-manager-490f620733c1"><em>Goal Tracking for Contact Form 7 with Google Tag Manager</em></a>.</p><h3>Step 3. Testing your implementation</h3><p>The easiest way to test that your Event is being passed into GA straight-away is to use the Realtime Events Report. Complete a test submission of your form, and irrespective of whether it matches up and triggers your goal, you should immediately see the event punch through on the Events timeline like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aGPiw_WmOXecuEpOy1EfNQ.gif" /><figcaption>The Events tab will show you immediately if your test event comes through</figcaption></figure><p>And that’s it! So long as your Event Labels match your goal you’ll be pinging the goal in addition to logging the submission as an event.</p><h3>But it’s not working for me?</h3><p>In my original 2013 blog about tracking Goals in Contact Form 7, a lot of people reported in the comments that they had issues in correctly firing their goals. Here’s a summary of common issues and oversights to check for:</p><ol><li>Incorrectly using the Universal GA Event trigger whilst using the legacy <a href="https://developers.google.com/analytics/devguides/collection/gajs/">Classic GA embedding method</a>.</li><li>Malformed or accidental removal of parts of the code snippet</li><li>Event values not matching those defined in the Goal set-up</li><li>JavaScript errors preventing CF7 from firing the Action Hook</li></ol><p>If you’re still having any issues at all with your implementation, do get in touch with me via the comments or on <a href="https://twitter.com/bavington">Twitter</a> and I will endeavour to help.</p><p>James.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e6097c1320a5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bavington/goal-tracking-for-contact-form-7-in-google-analytics-e6097c1320a5">Goal Tracking for Contact Form 7 in Google Analytics</a> was originally published in <a href="https://medium.com/bavington">James Bavington’s Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to get WordPress loading in a tenth of a second out-of-the-box]]></title>
            <link>https://medium.com/bavington/4-secret-ingredients-for-a-fast-wp-theme-305ff50f47d9?source=rss-9a18d0e4228------2</link>
            <guid isPermaLink="false">https://medium.com/p/305ff50f47d9</guid>
            <category><![CDATA[wordpress]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[seo]]></category>
            <dc:creator><![CDATA[James Bavington]]></dc:creator>
            <pubDate>Fri, 17 Jun 2016 09:26:06 GMT</pubDate>
            <atom:updated>2016-06-20T08:35:02.838Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<p>A few months ago the web development team at StrategiQ and I decided to really focus our efforts on page speed and performance for our WordPress builds. And I’m not talking ‘just a few milliseconds’.</p><p>In this post I wanted to share how we start all WordPress projects with a boilerplate theme that loads in a tenth of a second by using good hosting, two plugins and a couple of basic functions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qheUybVShrpJRYQAURfZ2A.jpeg" /><figcaption>My starting point makes only 2 requests, is 6.5KB in size and typically loads in a tenth of a second on <a href="https://tools.pingdom.com/">Pingdom</a>.</figcaption></figure><p>It’s easier to stay lean than it is to lose weight. Having the fastest possible starting point means that you can benchmark performance from the get-go.</p><p>It’s also worth mentioning that our starting point will also score 100/100 on <a href="https://developers.google.com/speed/pagespeed/insights/">Google PageSpeed Insights</a>, but necessary theme additions (like Google Analytics) will sacrifice the coveted 100/100 clean-sheet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ps8jEcAJR-6rPj_hWzijOQ.jpeg" /><figcaption>My boilerplate installation achieves 100/100 on the <a href="https://developers.google.com/speed/pagespeed/insights/">Google PageSpeed Insights</a> test.</figcaption></figure><p>The process we defined is simply made-up of four component parts that together streamline the initial installation and prepare us for maintaining a lightweight website.</p><h4>Start with good hosting</h4><p>Choosing the right hosting partner is essential. If you’re a developer you’ll know just how much performance can suffer when you move from your local environment to the staging or live server.</p><p>Having done substantial research into affordable, scalable WordPress hosting, we’ve partnered with <a href="https://wpengine.com/">WPEngine.com</a> for the following reasons:</p><ol><li>Built-in inclusive Content Delivery Network (CDN) via MaxCDN</li><li>Their proprietary EverCache architecture is scalable, reliable and offers an impressive <a href="https://moz.com/blog/improving-search-rank-by-optimizing-your-time-to-first-byte">time to first byte</a>.</li><li>Built-in caching engine that negates the need for third-party plugins</li><li>Premium tier installations for as low as £4 per site per month</li></ol><p>Changing hosting isn’t always an immediately viable option, but choosing a hosting partner who exclusively specialise in WordPress is always worth considering.</p><h4>Start with a super lightweight theme</h4><p>Choosing the right theme as your starting point is an overlooked, crucial decision for developers.</p><p>For the past two years, I’ve used the starter theme ‘<a href="http://underscores.me/">_s</a>’ (underscores) which is overseen by the lovely people at Automattic (you know the guys behind WordPress). You can download the theme from <a href="http://underscores.me/">the website</a>, or find it over on <a href="https://github.com/automattic/_s">GitHub</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fa0p5lfYqhXPMdc0LR9G5A.png" /></figure><p>Whilst it’s always tempting to build on a more developed theme, using a starter theme like _s gives you just right amount of lean, well-commented, modern, HTML5 templates to build your site.</p><h4>Remove unnecessary scripts</h4><p>Whether you’re building a new theme from scratch, or using this post to streamline your existing one, I’d recommend reviewing the following functions and applying those that apply:</p><p><strong>Limit Post Revisions<br></strong>More of a good house-keeping tip, i’d recommend limiting the revision history of your posts. By default, WordPress will keep an infinite number of revisions which builds up over time and can bloat the database. You can limit the number of revisions for posts (say to 3) by adding the following line to your <a href="https://codex.wordpress.org/Editing_wp-config.php">wp-config</a> file.</p><pre>define( ‘WP_POST_REVISIONS’, 3 );</pre><p><strong>Remove Emoji Support</strong><br>By default, <a href="https://codex.wordpress.org/Emoji">Emojis</a> are enabled on your WordPress installation. If don’t want to use Emojis on your posts and comments, we can remove the script and stylesheet that are called into your theme. Simply add the following two lines to your theme’s functions.php file:</p><pre>remove_action( &#39;wp_head&#39;, &#39;print_emoji_detection_script&#39;, 7 );<br>remove_action( &#39;wp_print_styles&#39;, &#39;print_emoji_styles&#39; );</pre><p><strong>Remove the Comment Reply Script</strong><br>If you’re not using the built-in post commenting system, or if you’re using a better platform like DISQUS, you can remove the redundant comment script. In the first instance, remove where it’s initially being enqueued on your theme’s functions.php file. If you can’t find it, add the following code to your functions.php:</p><pre>function remove_comment_reply_script(){<br>wp_deregister_script( &#39;comment-reply&#39; );<br>}<br>add_action(&#39;init&#39;,&#39;remove_comment_reply_script&#39;);</pre><p><strong>Remove Query Strings for static resources</strong><br>A lot of page-speed analysis tools will pull you up on having unnecessary query strings when you call scripts and styles into your theme. You can solve this for all instances, by adding the following function to your functions.php:</p><pre>function _remove_script_version( $src ){<br>$parts = explode( &#39;?ver&#39;, $src );<br>return $parts[0];<br>}<br>add_filter( &#39;script_loader_src&#39;, &#39;_remove_script_version&#39;, 15, 1 );<br>add_filter( &#39;style_loader_src&#39;, &#39;_remove_script_version&#39;, 15, 1 );</pre><p><strong>Remove oEmbed Scripts</strong><br>Since WordPress 4.4, oEmbed is installed and available by default. WordPress assumes you’ll want to easily embed media like tweets and YouTube videos so includes the scripts as standard. If you don’t need oEmbed, you can remove it by installing <a href="https://wordpress.org/plugins/disable-embeds/">this accredited plugin</a> or by adding the following function to functions.php:</p><pre>function speed_stop_loading_wp_embed() {<br>if (!is_admin()) {<br>wp_deregister_script(&#39;wp-embed&#39;);<br>}<br>}<br>add_action(&#39;init&#39;, &#39;speed_stop_loading_wp_embed&#39;);</pre><h4>4. Utilise these Plugins</h4><p>Alongside unoptimised images, plugins are a frequent culprit of poor performance. There are two however that I’d recommend installing from the get-go for performance and maintaining a lean website.</p><p><strong>WP Smush</strong><br>This essential plugin will trim, shear and crop all images uploaded to the media library to optimise their delivery on the front-end and keep storage sizes in-check:</p><p><a href="https://en-gb.wordpress.org/plugins/wp-smushit/">WP Smush - Image Optimization</a></p><p><strong>Autoptimize</strong><br>This lesser known all-in-one minimiser is really worth installing. With minimal set-up Autoptimize can concatenate, compress and minify all of your scripts and styles. It even minifies the HTML code itself, helping you save those extra bytes and achieve those elusive points with page-speed tools.</p><p><a href="https://wordpress.org/plugins/autoptimize/">Autoptimize</a></p><p><strong>But what about a caching plugin?</strong><br>If like me you’re using WP Engine to host your website, there’s no need for a caching plugin. WP Engine include their own caching engine as standard and actually prohibit the installation of third party caching plugins due to their redundancy.</p><h4>Conclusion</h4><p>Focusing on performance from the moment you start building a new WordPress theme allows you to benchmark the minimum, fasted starting point and truly monitor your website’s payload.</p><p>This post is a work-in-progress so please do let me know your boilerplate recommendations, scripts and plugins for building a fast theme.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=305ff50f47d9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bavington/4-secret-ingredients-for-a-fast-wp-theme-305ff50f47d9">How to get WordPress loading in a tenth of a second out-of-the-box</a> was originally published in <a href="https://medium.com/bavington">James Bavington’s Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A simple JSON-LD Local Business Schema Boilerplate]]></title>
            <link>https://medium.com/bavington/a-simple-json-ld-local-business-schema-boilerplate-69b213f84f17?source=rss-9a18d0e4228------2</link>
            <guid isPermaLink="false">https://medium.com/p/69b213f84f17</guid>
            <category><![CDATA[json-schema]]></category>
            <category><![CDATA[local-seo]]></category>
            <category><![CDATA[seo]]></category>
            <dc:creator><![CDATA[James Bavington]]></dc:creator>
            <pubDate>Thu, 18 Feb 2016 21:50:57 GMT</pubDate>
            <atom:updated>2016-06-18T07:45:10.113Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<p>When it comes to <a href="https://developers.google.com/structured-data/">structured data</a> and the Schema.org vocabulary, Google have been increasingly supportive of JSON-LD as the method of execution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eo-Gk_EuTYMfQi9ANz9XoA.jpeg" /><figcaption>Notably on <a href="https://developers.google.com/structured-data/local-businesses/">Google’s Local Business guidelines for structured data</a>, they promote JSON-LD as the best method.</figcaption></figure><p>As I work with a lot of local businesses, I took some time to research and construct a boilerplate for the properties I felt relevent for most local businesses, specifically in the UK.</p><p>Take note that within this example, I’ve used the local-business specific type of ‘Restaurant’ and also included restaurant specific properties on lines 70 and 71 as an example. Here’s a <a href="https://goo.gl/tvMVHf">great resource</a> for finding the most specific type for your business.</p><p>Avoid common mistakes that I’ve learnt by reading the comments within the Gist below. Don’t forget to minify and <a href="https://developers.google.com/structured-data/testing-tool/">test your mark-up</a>! Enjoy.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/082e0b35d64b0d41a07f43513549c614/href">https://medium.com/media/082e0b35d64b0d41a07f43513549c614/href</a></iframe><p>I welcome any contributions or recommendations to the boilerplate.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=69b213f84f17" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bavington/a-simple-json-ld-local-business-schema-boilerplate-69b213f84f17">A simple JSON-LD Local Business Schema Boilerplate</a> was originally published in <a href="https://medium.com/bavington">James Bavington’s Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>