<?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 Declan Kay on Medium]]></title>
        <description><![CDATA[Stories by Declan Kay on Medium]]></description>
        <link>https://medium.com/@declan-kay117?source=rss-f2dd6d24828d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*i5zyXu1Q2s89mk5YU5BD2Q.jpeg</url>
            <title>Stories by Declan Kay on Medium</title>
            <link>https://medium.com/@declan-kay117?source=rss-f2dd6d24828d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 09:23:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@declan-kay117/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[Scrape Google Trends Data With PHP Using the G-Trends API]]></title>
            <link>https://declan-kay117.medium.com/scrape-google-trends-data-with-php-using-the-g-trends-api-5bd8b09a7618?source=rss-f2dd6d24828d------2</link>
            <guid isPermaLink="false">https://medium.com/p/5bd8b09a7618</guid>
            <category><![CDATA[php]]></category>
            <category><![CDATA[data-scraping]]></category>
            <category><![CDATA[g-trends]]></category>
            <category><![CDATA[google-trends]]></category>
            <category><![CDATA[interest-over-time]]></category>
            <dc:creator><![CDATA[Declan Kay]]></dc:creator>
            <pubDate>Fri, 21 Aug 2026 12:49:25 GMT</pubDate>
            <atom:updated>2026-08-21T12:49:25.061Z</atom:updated>
            <content:encoded><![CDATA[<h3>G-Trends by X-Fran — Unofficial Google Trends APIScrape Google Trends Data With PHP Using the G-Trends API</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9IDMt0QRd7tx9krqYtH3QQ.jpeg" /><figcaption>Scrape Google Trends Data With PHP Using the G-Trends API</figcaption></figure><p>Google Trends is an amazing tool which allows you to understand search interest in a specific topic over time. The ability to monitor these topics in specific regions is really useful for international content campaigns. It ultimately allows you to create engaging content by staying ahead of the curve and understand new trends as soon as they emerge.</p><p>Sadly, there is no official Google Trends API, so we will get the trend data from an alternative tool called <a href="https://github.com/x-fran/g-trends">G-Trends by X-Fran</a>. We will have a look over the various parts of the tool and how they can be used to obtain data from Google Trends. Specifically, we will be looking at the Interest Over Time feature and how looking back over historical data can be very useful when identifying patterns and seasonal trends to accurately predict trends of the future.</p><p>With some inspiration from some French patisserie, we can discuss some of the trends options available and make requests to the G-Trends API. The raw data we get will be in JSON format so you can use a development language of your choice thereafter. Then, we will format the raw data and then discuss some storage options. Finally, we will do some basic transformations of the data collected that will be applicable to your web application or research document.</p><h4>Introduction to a Google Trends Alternative</h4><p>As mentioned earlier, Google Trends does not currently have an official API. So if you want to make a web application with its data, an unofficial tool will be required. For this task, we will use <a href="https://github.com/x-fran/g-trends">G-Trends by X-Fran</a>, a great free tool that provides us with more than enough to get the data we need.</p><p>Let’s do a quick review of the tech we need for the project:</p><ul><li>G-Trends is written in PHP, so our initial request will use that.</li><li>NPM, Node Package Manager, will be required to install some applications.</li><li>G-Trends is installed using Composer, so this will also be needed.</li><li>As a server-side language is used, we will need a virtual server app like WAMP or MAMP.</li><li>Optional — You may want to store the data in a database, so a database app like Medoo could be useful.</li></ul><figure><img alt="G-Trends by X-Fran — Unofficial Google Trends API" src="https://cdn-images-1.medium.com/max/770/0*hr0xGej9tybweh4D.jpg" /><figcaption>G-Trends by X-Fran — Unofficial Google Trends API</figcaption></figure><p>Some of the features offered by G-Trends mirror the functions of the official Google Trends application. For example, G-Trends provides options to receive data for Related Queries and Suggestions Autocomplete — both of which are great for keyword inspiration in your relevant industry or topic.</p><p>We will be making use of the Interest Over Time feature of Google Trends because we will be looking retrospectively at the trend data for a specific keyword, in a specific country, over the course of six years. With the historical data, we can make a few assessments and spot seasonality and other trends, which give us an insight into future opportunities.</p><h4>Making the Interest Over Time G-Trends Request</h4><p>Create a new project in the development environment of your choice and open the command line. Enter the following command to install the packages used by G-Trends:</p><pre>composer require x-fran/g-trends</pre><p>Note — There can sometimes be SSL issues with local virtual servers. Please refer to the WAMP or MAMP guides on creating locally issued SSL certificates for your computer. Additionally, there may be interference with anti-virus apps blocking the download. To get round this, please refer to guides on your specific anti-virus software and how to allow WAMP / MAMP to be exempt from the security checks.</p><p>Running the command above with create the files for all the packages required as well as some composer configuration files. Inside this folder, we can make a subfolder and it can be called as appropriate — I will call it “example”. It is best to keep your working files separate from the folder with PHP packages for organisation and security reasons. Inside this folder, make an index.php file and add the line to include vendor’s autoload file. Then we include the GTrends class from the namespace to include G-Trends in our project.</p><p>Once installed, the <a href="https://github.com/x-fran/g-trends">GitHub repository</a> gives a nice example of setting up your options and deciding what data you want to collect. The example covers several of the controls seen on Google Trends, such as language, country, timeframe and time zone, as shown below.</p><pre>&lt;?php<br><br>// Composer autoloader<br>require_once &#39;../vendor/autoload.php&#39;;<br><br>// Unofficial Google Trends<br>use XFran\GTrends\GTrends;<br><br>// Search on Google Trends for the keyword, in the suitable country and language, for the last 6 years<br>$options = [<br>    &#39;geo&#39; =&gt; &#39;FR&#39;,<br>    &#39;hl&#39; =&gt; &#39;fr&#39;,<br>    &#39;time&#39; =&gt; &#39;2020-07-01 2026-07-31&#39;, <br>    &#39;category&#39; =&gt; 0,<br>    &#39;tz&#39; =&gt; 0,<br>];<br><br>// Pass the options to a new GTrends request<br>$gt = new GTrends($options);<br><br>// Make the &#39;Interest Over Time&#39; request with the specific keyword<br>$gTrendsResponse = $gt-&gt;getInterestOverTime ([&#39;croissants&#39;]);<br><br>echo &quot;&lt;pre&gt;&quot;;<br>echo json_encode($gTrendsResponse, JSON_PRETTY_PRINT);<br>echo &quot;&lt;/pre&gt;&quot;;<br><br>?&gt;</pre><p>Now, we will look at some of the specific options selected and a brief reason why they were chosen. The options were also tested in <a href="https://trends.google.com/explore?q=croissants&amp;date=2020-07-01%202026-07-31&amp;geo=FR">Google Trends</a> for illustration purposes.</p><ol><li>Country Code (Geo) — The first option to set is the country code. This is available in Google’s documentation or you can use Google Trends and grab the codes from the URL. For example, France would be selected with FR.</li><li>Language (HL) — Next is to select the language within the country. The language code is available in <a href="https://developers.google.com/workspace/admin/directory/v1/languages">Google’s documentation</a>. For example, standard French would be selected as fr.</li><li>Timeframe (Time) — Next, is to set the date range to a suitable period of time. Currently, it needs to be at least 6 years long in order to get the data split by each month. The range can be set by adding two dates in YYYY-MM-DD format e.g. 2020–07–01 2026–07–31.</li><li>Search Topic (Category) — I keep the category set to 0 so any trends data collected is as broad as possible.</li><li>Time Zone (TZ) — I also keep the time zone to 0 so it can default to the suitable time zone of the selected country. Also, because the timeline is over several years, the time zone does not come into play.</li></ol><p>Once the options are set up, we create a new G-Trends request by creating a variable and passing the options as a parameter to the G-Trends function. Looking at the documentation, the G-Trends function we are using is getInterestOverTime. We pass the keyword as a parameter to tie the keyword to a country at a specific date range.</p><p><strong>Data Review and Language Considerations</strong></p><p>Now we have made the request, we want to do some basic formatting so we can review the data. First, we can use HTML &lt;pre&gt; tags to ensure the text output maintains the same indents, line breaks and spaces so we can read it more easily. We can use the json_encode() function to convert the PHP array into JSON format. Finally, JSON_PRETTY_PRINT adds the line breaks and indentation that the &lt;pre&gt; tags are preserving. This way, we can see the data much more clearly and have a strong idea of what options are available.</p><figure><img alt="Using JSON Data For The First Time" src="https://cdn-images-1.medium.com/max/700/0*DwZLYMOtrxVTdpEa.jpg" /><figcaption>Using JSON Data For The First Time</figcaption></figure><p>It is at this point, you could store the JSON data and then switch to using a development language of your choice, if PHP is not your first pick. The way the data is processed depends on which development library is being used. The new format is universally compatible with other languages, including front-end languages such as JavaScript. Rather than using standard PHP, it is possible to use a PHP library such as CodeIgniter. The data could be processed and stored in a database using a PHP package such as Medoo. For the sake of simplicity and clarity, our example will use standard PHP.</p><h4>Processing the Raw Trends Data</h4><p>Using PHP, the data coming back from G-Trends is already a PHP array so we can start working with it right away. An array is a common method of processing API requests and is suitable for carrying out some manipulations later on. Next is to set a variable for the months data by looking inside the array we just created and reference the array keys of TIMESERIES, then data and finally timelineData. This way, we can focus our attention specifically on the part of the array which has the month scores we need.</p><p>To finish off the preparation, we can create an empty Trend Scores variable to store the score values in an array. Using the echo feature of PHP, we can create a heading on the page above the list of months and trend scores. Now the data has been reviewed, we can also comment out the &lt;pre&gt; tags we made earlier, as they are no longer required.</p><pre>&lt;?php<br><br>// Find the months data inside the response<br>$trendsDataMonths = $gTrendsResponse[&#39;TIMESERIES&#39;][&#39;data&#39;][&#39;timelineData&#39;];<br><br>// Create an empty array for the trend scores (only for testing)<br>$trendScores = [];<br><br>echo &quot;&lt;h1&gt;Monthly Trend Scores&lt;/h1&gt;&quot;;<br><br>// Loop through each trend data month<br>foreach($trendsDataMonths as $trendsDataMonth) {<br><br>    // Get the trend month - as yyyy-mm-dd<br>    $trendMonth = date(&quot;Y-m-d&quot;, $trendsDataMonth[&#39;time&#39;]);<br>    echo &quot;date: &quot; . $trendMonth . &quot;&lt;br/&gt;&quot;;<br><br>    // Get the trend score for the month - as integer<br>    $trendScore = $trendsDataMonth[&#39;value&#39;][0]; <br>    echo &quot;score: &quot; . $trendScore . &quot;&lt;br/&gt;&quot;;<br><br>    // Add the trend score to the array (only for testing)<br>    $trendScores[] = $trendScore;<br><br>    // Add the trend score to the array, using the month as the key (only for testing)<br>    // $trendScores[$trendMonth] = $trendScore;<br><br>    echo &quot;&lt;hr/&gt;&quot;;<br> <br>}<br><br>?&gt;</pre><p>Now we use the variable storing the trend array data and cycle through each individual month using a foreach loop. Inside the loop, the date of the month can be accessed by using “time” array key. To process the raw data for your application, it would be a good idea to turn the date into a suitable format by using the date function. In this case, “Y-m-d” provides the date in a YYYY-MM-DD format.</p><figure><img alt="French Croissants Trend Score Raw Data" src="https://cdn-images-1.medium.com/max/700/0*hZpMm8RCUnKSRfwo.jpg" /><figcaption>French Croissants Trend Score Raw Data</figcaption></figure><p>Similarly, the trend score for the month is accessible with the “value” array key. Adding both the month name and the suitable score to a pair of variables enables us to use the values again later in the application. For instance, we can use echo to display the values on the screen. Appending a line break after each value will make the content more manageable. Also, putting a &lt;hr&gt; before the end of the loop will add a horizontal row under each month and score combination.</p><p>Now the data is displayed on the page, the text can be copied into a spreadsheet for further analysis or stored in a database. If different combinations are required, then the options at the top of the script can be amended such as keyword, country, language etc. If you wanted to make a scalable, automated solution, the list of combinations could be stored in a database and the script could be amended to dynamically retrieve data depending on what combination was required.</p><p><strong>Do Not Burn API Credits, If You Do Not Have To</strong></p><p>Our example has been using the data directly from the G-Trends API and this works when retrieving fresh data for your chosen set of options. However, if you are working with the one set of sample data and editing a script to perform tests, it is not necessary to retrieve data from the API directly each time. You can create a variable with the sample raw data provided by G-Trends and perform tests on this data instead of making calls to the API each time. This way, we can cut down on the number of API credits being used. Being efficient with credits means you are less likely to be blocked by the application or can reduce costs if an API is not free.</p><p>To amend our script to be more efficient, we want to create a DEBUG_MODE constant below the “use XFran” line. If the debug is true, we are testing with the sample G-Trends data and not using any credits. If debug is false, testing is finished and we are getting data straight from the API. From there we can amend the script depending on whether debug is on or off. When debug mode is off, we can place the G-Trends request code inside the if statement e.g. vendor autoload, options such as language, country etc. We can also add the getInterestOverTime functions inside the if statement as it will only run when debug mode is off, as we only make API request if we are not testing. For when debug mode is on, we can copy the output of the JSON data in the &lt;pre&gt; tags and set this to the sample-data.json file. We can then set a second line where we convert the gTrendsResponse data to a PHP array using json_decode with the second parameter of true.</p><p>Now, we can switch debug mode on or off depending on whether live data is needed or not and API credits can be saved when doing some testing. The updated full script can be seen below with the additional debug checks added:</p><pre>&lt;?php<br><br>// Unofficial Google Trends<br>use XFran\GTrends\GTrends;<br><br>// Debug is true if using sample JSON data, false if using data from GTrends<br>define(&#39;DEBUG_MODE&#39;, true);<br><br>// If using live data from GTrends<br>if(!DEBUG_MODE){<br><br>    // Composer autoloader<br>    require_once &#39;../vendor/autoload.php&#39;;<br><br>    // Search on Google Trends for the keyword, in the suitable country and language, for the last 5 years<br>    $options = [<br>        &#39;geo&#39; =&gt; &#39;FR&#39;,<br>        &#39;hl&#39; =&gt; &#39;fr&#39;,<br>        &#39;time&#39; =&gt; &#39;2020-07-01 2026-07-31&#39;, <br>        &#39;category&#39; =&gt; 0,<br>        &#39;tz&#39; =&gt; 0,<br>    ];<br><br>    // Pass the options to a new GTrends request<br>    $gt = new GTrends($options);<br><br>    // Make the &#39;Interest Over Time&#39; request with the specific keyword<br>    $gTrendsResponse = $gt-&gt;getInterestOverTime ([&#39;croissants&#39;]);<br><br>}<br><br>// Use to display the data in JSON format<br>// echo &quot;&lt;pre&gt;&quot;;<br>// echo json_encode($gTrendsResponse, JSON_PRETTY_PRINT);<br>// echo &quot;&lt;/pre&gt;&quot;;<br><br>// If using sample JSON data<br>if(DEBUG_MODE){<br><br>    // Get the JSON data from the sample file<br>    $sampleJSONData = file_get_contents(&#39;sample-data.json&#39;);<br><br>    // Convert JSON into a PHP array<br>    $gTrendsResponse = json_decode($sampleJSONData, true);<br><br>    // If there is a problem with the JSON<br>    if (json_last_error() !== JSON_ERROR_NONE) {<br><br>        // Kill the script and show the suitable error<br>        die(&#39;Invalid JSON: &#39; . json_last_error_msg());<br><br>    }<br><br>}<br><br>// Find the months data inside the response<br>$trendsDataMonths = $gTrendsResponse[&#39;TIMESERIES&#39;][&#39;data&#39;][&#39;timelineData&#39;];<br><br>// Create an empty array for the trend scores (only for testing)<br>$trendScores = [];<br><br>echo &quot;&lt;h1&gt;Monthly Trend Scores&lt;/h1&gt;&quot;;<br><br>// Loop through each trend data month<br>foreach($trendsDataMonths as $trendsDataMonth) {<br><br>    // Get the trend month - as yyyy-mm-dd<br>    $trendMonth = date(&quot;Y-m-d&quot;, $trendsDataMonth[&#39;time&#39;]);<br>    echo &quot;date: &quot; . $trendMonth . &quot;&lt;br/&gt;&quot;;<br><br>    // Get the trend score for the month - as integer<br>    $trendScore = $trendsDataMonth[&#39;value&#39;][0]; <br>    echo &quot;score: &quot; . $trendScore . &quot;&lt;br/&gt;&quot;;<br><br>    // Add the trend score to the array (only for testing)<br>    $trendScores[] = $trendScore;<br><br>    // Add the trend score to the array, using the month as the key (only for testing)<br>    // $trendScores[$trendMonth] = $trendScore;<br><br>    echo &quot;&lt;hr/&gt;&quot;;<br> <br>}<br><br>?&gt;</pre><h4>Bonus: Sample Data Transformations</h4><figure><img alt="French Croissants Graph on Google Trends" src="https://cdn-images-1.medium.com/max/700/0*zGnp83CDe8ubvNnT.jpg" /><figcaption>French Croissants Graph on Google Trends</figcaption></figure><p>Now you have collected and processed the raw data; it is ready to be transformed and analysed as you see fit. The options selected from our <a href="https://trends.google.com/explore?q=croissants&amp;date=2020-07-01%202026-07-31&amp;geo=FR">previous Google Trends example</a> were used again for our data analysis. A quick note on the code is that anything starting with two slashes such as “//” is just a comment describing what the code is doing and the comments do not affect the code directly. There are a huge number of transformations that could be done; here are a few potential ideas to get you started.</p><p><strong>Six-Year Average (Median)</strong></p><p>First, we can look at the average in terms of the median value out of our monthly trend scores. This cuts out any short-term noise and gives a stronger understanding of the overall data set for the entire duration.</p><pre>&lt;?php<br><br>// Sort the trend scores into ascending order<br>sort($trendScores);<br><br>// Set the middle index by counting the months (73)<br>// Minus one because the index starts counting at zero, not one<br>// Divide by two to get the middle value<br>// Use floor to round down to the nearest whole number<br>$medianIndex = floor((count($trendScores) - 1) / 2);<br><br>// Select the middle number using the calculated index<br>$medianScore = $trendScores[$medianIndex];<br><br>echo $medianScore;<br><br>?&gt;</pre><p>The result in my data set is a median of 67 out of 100. A median score of 67 gives a baseline for comparing search interest where demand is notably higher or lower than the typical level we identified.</p><p><strong>Six-Year Average (Mean)</strong></p><p>Second, you could get the average mean over the six-year period by dividing the total of the scores by the number of months in question. This is similar but distinct from the average median because the mean takes into consideration any abnormal spikes or drops in popularity.</p><pre>&lt;?php<br><br>// Get the total of all the scores combined with array_sum<br>// Use the count function to get the total number of months<br>// Divide the sum of the scores by the number of months to get the average<br>// Wrap in number_format the average is rounded to a whole number<br>$allTimeAverage = number_format(array_sum($trendScores)/count($trendScores));<br><br>echo $allTimeAverage;<br><br>?&gt;</pre><p>The result in my data set is a mean of 68 out of 100. A mean score of 68 and median scores of 67 indicate the average search is representative of the typical level of interest across the timeframe. Had the scores been significantly different, there could have been some months with abnormally high scores.</p><p><strong>Highest, Lowest and Range Scores</strong></p><p>Another way of digesting the data is to get the lowest score, highest score and range in between. This method could allow you to see the range of trend scores and give a clearer understanding of the peaks and troughs of the data set.</p><pre>&lt;?php<br><br>// Use the min function to return the smallest score in the list<br>$lowestScore = min($trendScores);<br><br>// Use the max function to return the highest score in the list<br>$highestScore = max($trendScores);<br><br>// Get the range between the two values by deducting the highest score minus the lowest score<br>$rangeScore = $highestScore - $lowestScore;<br><br>echo $rangeScore;<br><br>?&gt;</pre><p>In my dataset, the max is 100 and the lowest is 48, giving a score range of 52. This shows that search interest has varied over the period, with some months experiencing higher interest than others. Had there been a larger difference, it would indicate large seasonality with some months having low popularity.</p><p><strong>Months Above a Specific Score</strong></p><p>Following on from the average mean example, we can use this figure to collect the months that are above the average. Alternatively, the threshold could be manually set to a higher score if you wanted to measure the best-performing months. This provides an opportunity to collect months performing at a higher level and insights can be gleaned based on the patterns of the months collected. To do this, we need to amend the trend scores array in the first foreach loop in the script so the month and the score are displayed e.g. “January 2026” → 88 and so on.</p><pre>&lt;?php<br><br>// Amend the trend scores inside the for each loop used previously<br>// Add the trend score to the array, using the month as the key (only for testing)<br>$trendScores[$trendMonth] = $trendScore;<br><br>// Use array_filter to select specific values out from the array<br>// Set the first parameter to the array of trend scores<br>// Set the second parameter to an anonymous function, which allows the list of months / scores to be looped through<br>// Assign a new variable for above a specific score months as a parameter in the function<br>// Use return to collect the scores / months above a number - in this case the mean of 68<br>$aboveSpecificScores = array_filter($trendScores, function($aboveSpecificScore){<br><br>    return $aboveSpecificScore &gt;= 68;<br><br>});<br><br>// Use count to display the number of months above the mean score<br>echo &quot;the number of months above the mean: &quot; . count($aboveSpecificScores) . &quot;&lt;br/&gt;&quot;;<br><br>// Loop through the months above the mean<br>// Add a double arrow to display the key and the value (month and score)<br>foreach ($aboveSpecificScores as $aboveSpecificScoreMonth =&gt; $aboveSpecificScore) {<br><br>    echo $aboveSpecificScoreMonth . &quot; &quot; . $aboveSpecificScore . &quot;&lt;br/&gt;&quot;;<br><br>}<br><br>?&gt;</pre><p>There were 36 months above the average mean and the months appear to be seasonal with the trend starting to increase around October / November and then dropping off around March / April the following year. Some reasons for this are because weather is colder is winter / autumn and demand for comfort food is higher. Conversely, some bakeries close down for holidays during the summer, so demand naturally drops from there.</p><p><strong>Top 5 Months</strong></p><p>Following on from the above average months example, an alternative action that could be taken is to get the top 5 scores and the suitable name of the month. This way, we can spot some seasonality if there are any patterns in the top months, more specifically than all months above a certain threshold. As mentioned in the previous example, we need to amend the trend scores array in the first foreach loop in the script so the month and the score are displayed e.g. “January 2026” → 88 and so on.</p><pre>&lt;?php<br><br>// Amend the trend scores inside the for each loop used previously<br>// Add the trend score to the array, using the month as the key (only for testing)<br>$trendScores[$trendMonth] = $trendScore;<br><br>// Use the arsort function to place the scores in descending order and preserve the array keys (name of the month)<br>arsort($trendScores);<br><br>// Use array_slice to get part of the array<br>// Use 0 and then 5 to get the top five scores<br>// Set the last parameter to true to preserve the key (suitable month)<br>$topFiveMonthScores = array_slice($trendScores, 0, 5, true);<br><br>// Loop through the top five month scores<br>// Add a double arrow to display the key and the value<br>foreach ($topFiveMonthScores as $topFiveMonth =&gt; $topFiveScore) {<br><br>    echo $topFiveMonth . &quot; &quot; . $topFiveScore . &quot;&lt;br&gt;&quot;;<br>    <br>}<br><br>?&gt;</pre><p>The top five months were December of 2025, 2022, 2023, 2024 and 2021. So, building on from our previous example, we can focus on the trend and say popularity increases in December each year. As France is a country of Christian heritage, it can also be understood that the trend is related to Christmas and the wider holiday season. This can be extended to patisserie celebrations such as Bûche de Noël where croissants can be paired with other desserts.</p><p>So, looking at the examples, we have worked out that most searches are in and around the average popularity for the year, meaning croissants have a solid baseline of popularity throughout the year. On top of this, we spotted croissants start to increase around autumn and winter, meaning if you want to sell croissants in France, the colder months are where you can make more money. Finally, we uncovered popularity spikes in December each year, meaning Christmas is the time to make mega bucks in the croissant industry — tasty!</p><h4>Conclusion</h4><p>Whilst we do not have an official Google Trends API, G-Trends by X-Fran is a great tool that gives us more than enough trend data for your web application or research document.</p><p>The beauty of the tool is being able to turn the data into JSON format. From there, you can use the development language of your choice. For easier analysis, I would recommend storing the data in a database or spreadsheet. From there, you can connect it to a visualisation tool such as Google Data Studio and start enhancing your trend data.</p><p>If you are running an ongoing commercial operation, it may be a plan to get the data from a commercial partner. G-Trends is great for a one-off data collection or for establishing a conceptual MVP. However, the creator acknowledges it is an unofficial tool and it can be smart to get a reliable data partner such as <a href="https://dataforseo.com/apis/google-trends-api">Data For SEO</a> or <a href="https://serpapi.com/google-trends-api">SERP API</a>, so you can access reliable data on a longer timescale.</p><p>Ultimately, the ability to conduct ongoing monitoring of various trends lets you stay ahead of the curve and make smart, informed business decisions. Enjoy your croissants! 🥐</p><h4>Useful Resources</h4><p><a href="https://github.com/x-fran/g-trends">G-Trends by X-Fran</a></p><p><a href="https://trends.google.com/explore?q=croissants&amp;date=2020-07-01%202026-07-31&amp;geo=FR">Google Trends Croissants Example</a></p><p><a href="https://github.com/declankay/scrape-google-trends-data-with-php">GitHub Repository</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5bd8b09a7618" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[5 Mobile UX Principles for Responsive Websites]]></title>
            <link>https://declan-kay117.medium.com/5-mobile-ux-principles-for-responsive-websites-7a405cc852c4?source=rss-f2dd6d24828d------2</link>
            <guid isPermaLink="false">https://medium.com/p/7a405cc852c4</guid>
            <category><![CDATA[mobile]]></category>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[responsive-website]]></category>
            <category><![CDATA[digital-design]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Declan Kay]]></dc:creator>
            <pubDate>Wed, 14 Aug 2024 12:04:25 GMT</pubDate>
            <atom:updated>2024-08-14T12:04:25.066Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NRZXexlOIVxXnGeikiA6Fw.jpeg" /></figure><p>The idea of mobile-responsive web design first rose to prominence with Apple’s release of the iPhone in 2007 and since then its usage has grown exponentially. In fact, worldwide mobile usage surpassed that of desktop in 2016 and the gap is only growing wider as time passes. Every day, companies are having their “mobile moment”, where mobile usage surpasses desktop.</p><p>With this in mind, it is critical that the design and development of new web apps truly consider the unique characteristics of mobile to ensure users have the best possible experience. In other words, if mobile devices are more popular, they need to be the primary focus during the website build.</p><p>So how can we best design and develop our websites to unleash the full potential of mobile? Here are 5 methods that can be used to give your mobile users a great experience on your website.</p><h4>Mobile-First or Desktop-First?</h4><p>When designing a web app for mobile and desktop, there are two key approaches: mobile-first and desktop-first. Mobile-first designs for the mobile screen size as the priority and then look to add elements as the screen width gets bigger. The process of gradually adding complexity is known as progressive enhancement. On the other hand, desktop-first is designed for laptop and desktop computer users first and then looks to remove elements without drastically changing the experience — this is also called graceful degradation.</p><p>I personally design and develop websites using mobile-first progressive enhancement. Primarily, the reason for this is that the majority of projects I work on have a mobile-first audience, so I want the project to align with my client’s user base. The second reason is it is easier to develop a mobile-first website as the static HTML structure of the page resembles the mobile version more closely than desktop.</p><p>Deciding which approach to use is important as it provides the foundation of your web strategy and highlights the strategic priorities of the organisation. Both methods have their merits and neither system is perfect. However, it is recommended to use audience analytics — both historical and forecast — and make a decision that best aligns with your audience.</p><h4>1 — Organise Your Navigation</h4><p>One of the critical parts of a good mobile user experience is to properly consider the user journey and build the navigation to support that sequence as well as possible.</p><p>Before creating a navigation, it is important to consider the main architecture of the website. As part of this, consider the purpose of the website and which pages the user is likely to proceed through to complete this process.</p><p>There are a few different models of navigation that can be used depending on the number of steps the user will go through to complete their objectives.</p><p><strong>a — Off-Canvas Navigation</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*7cyy7k28u1TNTnUB.jpg" /><figcaption>Off-Canvas Navigation On Desktop and Mobile</figcaption></figure><p>One issue on mobile is there is not enough space for larger, complex desktop navigation menus. A common solution to counter the lack of space is to create a slide-out, off-canvas navigation. With an off-canvas menu, the links are hidden from view and slide in when a navigation icon is clicked.</p><p>The links in the menu should be displayed vertically so as many links can be shown to the user on one screen. Each link should be sized and spaced to ensure the clickable area is easy for users to interact with. Considering the website’s critical pages is useful when deciding which links to include in the primary navigation menu.</p><p>More complex navigations with subsections can use an accordion style where the secondary links can be shown and hidden within the main menu. However, an accordion should only be used in exceptional cases as it adds complexity to the navigation and can hinder users from accessing critical pages.</p><p><strong>b — Tabs and Floating Navigation</strong></p><p>Some web applications have a more limited range of functionality, which allows the navigation to focus on a smaller selection of options. One option that can be used is a tab navigation with only the key pages included. Tabs mimic a native mobile app navigation as the links are fixed to the bottom of the page. The tab navigation is in view at all times, so maximises the accessibility for users to navigate to a specific page. Each link should have a descriptive, concise label and a graphical asset to make it easier for the user to distinguish each option.</p><p>Second, if the website is a single-use application, a floating navigation can be used. The navigation is located within a clickable button that is prominent in the design. By emphasising the navigation in this way, the user can easily carry out the main purpose of the app. Common single-use app actions are adding an event to a calendar, tracking a running duration or adding a task to a checklist.</p><p>The tab and floating options are specifically for web applications with limited options. If the website requires a larger range of options, an off-canvas menu may be more appropriate.</p><p><strong>c — Content as Navigation</strong></p><p>Some web applications can use the content of the page as part of the navigation. Content-orientated navigation is popular in consumption applications where users are looking for the new content provided e.g. social media and news websites.</p><p>Depending on the information, content as navigation can come in the form of a list, grid or thumbnail. Each content type provides a different hierarchy, which makes some elements more prominent, depending on the context. For instance, a thumbnail makes the image the largest element as it is key to converting the user. Alternatively, a list or grid has more prevalent text and a smaller image as the text is required to engage the user.</p><h4>2 — Size and Scale Typography</h4><p>Typography is a critical part of the mobile user experience as the information and guiding text are key to navigation and encouraging users to complete a specific action. It is therefore essential that the typography is sized so that users can read the text clearly as well as focus their attention on specific elements first. The approach to typography can be handled using two approaches: a typographic scale and fluid typography.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*zBhf1DymNhxxcjVx.jpg" /><figcaption>1.2 Minor Third Typographic Scale</figcaption></figure><p>A typographic scale is useful as it creates a visual hierarchy and allows users to focus on content in a specific order. We can style headings to be larger and draw the user’s attention initially. Medium-sized headings can then be used to provide secondary steps in the process and so on. With this in mind, we can channel the user in the direction of a specific user flow and increase the number of conversions on the website. To create a typographic scale of your own, go to <a href="http://typescale.com/">typescale.com</a>.</p><p>Second, fluid typography is when the font size increases gradually when the page is resized, which creates an illusion that it is fluid. Fluid typography works by setting a minimum size for mobile and a maximum size for desktop and transitioning between the two values. The main benefit of fluid typography is that font sizes are adapted specifically to the size of the device. One user could have an old iPhone 5 and another could have a newer iPhone 15 Pro. For each user, the font size is slightly different, which tailors the experience for each user’s device. I wrote an article about fluid typography where you can <a href="https://declankay.com/blog/size-and-scale-fluid-typography-with-css-clamp/">learn how it is created using CSS clamp</a>.</p><h4>3 — Create a Fluid Layout</h4><p>Similar to navigation, creating a content layout that scales is one aspect of responsive web design. Fluid layouts concern a range of considerations that decide how the website adjusts to the device and provides the best possible experience. One of the most common methods of creating a responsive website is to use a responsive grid structure. Content of a website can be laid out in a grid with multiple columns and the number of columns increases as the device gets larger. For example, mobile usually is single-column and the columns could progress to two on tablet and three on desktop. The responsive columns can be created using common frameworks such as Bootstrap or Tailwind. Finally, the columns of the website can be aligned with the 12-column grid used by designers, which means the design theory can be applied across different devices.</p><p>Another way the layout can scale effectively is to use aspect ratios on image assets. Quite often, images are a key part of a design as they are the focus of attention for the user and can guide them through an application. It is therefore essential that the images scale across different device sizes and do not skew or crop. One way this can be achieved is by using aspect ratios such as 16 / 9 so the image is the same shape on mobile and desktop. CSS has an aspect-ratio property which can define the proportion of the element. The property combines the width of an image with the aspect ratio to calculate the height. For example, an image that is 1000px wide with a 2 / 1 ratio would have a height of 500px.</p><p>Another method of creating a fluid layout is to use percentage values. For example, an off-canvas navigation menu can be set to 100% of the height of the device. Using a full-height navigation menu allows the user to fully focus on the navigation elements without getting distracted. The percentage value allows the navigation to adapt to the device. Alternatively, a fixed height could cause the navigation to cut off on larger devices and be too long for smaller devices. Finally, we mentioned fluid typography earlier and this is perfect for fluid layouts due to the gradual increase in font size. The font size is tailored to the screen width, which allows headings to be seen and tap targets can be clicked easily.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*6btR9_kogO9xJOJ6.jpg" /><figcaption>Fluid Layout on Desktop and Mobile</figcaption></figure><p>As we mentioned previously, organising the content of your website is an important step in directing users towards completing a specific goal. As mobile content is mostly single-column, the pages are longer and users are less likely to see content further down the page. With this in mind, the order of content on a page needs to be considered on mobile to ensure users view the most important content. One way content can be organised into a hierarchy is by switching the order of multiple-column layouts. For example, a two-column layout will break down into a single-column on mobile with the left column first, followed by the right column underneath. However, the order could be switched to show the right column first, if there is more important content to show the user.</p><h4>4 — Harness Native Capabilities</h4><p>The principles we have raised so far are suitable for responsive websites. However, there is a set of functions that are unique to a mobile device that can be used to enhance the user’s web experience. Starting with the camera, an image can be taken on a mobile device and then uploaded to a website. Additionally, AI can use the camera to scan a credit card and populate the details into a form on an e-commerce website. Both these features are more convenient than on desktop and provide a more efficient user experience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*f9otGIpWm2O-WB6u.jpg" /><figcaption>Native Mobile Dropdown Select UI for iOS</figcaption></figure><p>Speaking of forms, smartphones have built-in native user interfaces for dropdown select menus, radio buttons, checkboxes and date pickers. Whilst there is nothing wrong with applying a custom design to a desktop select field, I would recommend using the native interface on mobile devices for maximum accessibility. A final point about forms is that ensuring the correct input type is set can have a big impact on mobile user experience. For instance, setting the type to “number” allows the traditional number keypad to appear on mobile devices when a user is typing in a numerical value.</p><p>Another distinct feature of mobile is the use of GPS data. Mobile devices are connected to a remote network, meaning web apps can make use of the location data of their users. One way the GPS data can be used is to create a smart default based on the user’s location. For instance, a map application could set the starting point to the current location. Alternatively, a form dropdown with a list of countries could be set to the current location. International businesses could serve users with a translated version of their website, depending on which part of the world they are from. Please note smartphones require the user to give permission to use their current location.</p><p><strong>Native Gestures: Pinch Zooming and Horizontal Scrolling are Banned?</strong></p><p>Finally, the website can make use of the touchscreen by factoring in native gesture-based interactions. Two common mobile gestures are scrolling horizontally and pinch zooming. Despite this, there are plenty in the design community who initially frowned upon these interactions as though they should be avoided.</p><p>The main reason pinch zooming was outlawed in some situations is because the content of the website should be sized appropriately so that the user does not feel the need to zoom in. The idea is correct in the sense it encourages critical content such as navigation and typography to be easily read and understood. That said, there are some instances where it is acceptable to use pinch zooming. For example, map applications make use of the pinch zooming gesture to zoom into content in a more detailed view.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*jGuc0sbNTj3xPXHu.jpg" /><figcaption>Native Mobile Horizontal Scrolling Gesture</figcaption></figure><p>Similarly, horizontal scrolling gets a bad reputation because the content of a page should fit within the width of the screen. Therefore, having to scroll horizontally is extra work for the user and it could mean key content is missed. However, horizontal scrolling is making a comeback in a more considered form. For example, side-scrolling content has become more popular as it can allow several content cards to be displayed whilst previewing an additional card. The extra card can be swiped horizontally to come into view. Displaying content in this manner can group relevant content whilst keeping the overall length of the page short and concise. Bear in mind there is no hover on mobile, so the native gestures are a great way to add interactivity to your website.</p><h4>5 — Optimise for Fast Page Speed</h4><p>Page loading times are a major consideration of any website build and are a critical part of a website’s SEO strategy. More acutely, mobile users are more likely to access a website when they are on the go and will be using their mobile network data. As a result, page speed has a special consideration for mobile as the website must be efficient with the user’s data allowance.</p><p>One of the main culprits for bloating a page’s loading times are images and videos. Large banner images look great on desktop but the HD images are unnecessary on mobile. When creating images, there should be a mobile version that is much smaller in dimensions and file size. Ideally, an optimisation tool such as <a href="https://cloudinary.com/">Cloudinary</a> or <a href="https://www.twicpics.com/">TwicPics</a> can be used to generate a pixel-perfect image dynamically for smaller screens.</p><p>It is a similar story with videos as they are generally massive in file size and are overkill on mobile devices. Similar to images, different assets can be used for mobile and desktop so the mobile version is smaller in file size. Video and image assets below the fold can be lazy loaded so they do not load until they come into view. Lazy loading is most effective on mobile devices as the single-column layout makes the page longer and more assets are below the fold. The additional issue videos face is that some mobile operating systems disable auto-playing video, meaning the intended functionality can often break. To get around this, it would be better to use a still image on mobile and only use the auto-playing video on desktop.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*vl8BpC0KZsVk8yG7.jpg" /><figcaption>Content Delivery Network (CDN)</figcaption></figure><p>As mentioned previously, mobile users are more likely to access a website when they are out going places. In some cases, users can utilise their mobile to access a website from a remote location. A website can use a content delivery network (CDN) to speed up the performance of a website. Essentially, a CDN copies the files of a website to several servers all over the world. The page speed is enhanced because the website will load from a server that is physically closest to the user’s location. Feel free to check out my blog post for an <a href="https://declankay.com/blog/improve-the-page-speed-of-your-website-checklist/">in-depth look at page speed</a>.</p><h4>Bonus: Test, Then Test Again</h4><p>All of the points raised so far are broad principles that put your website in the right direction of providing a great mobile user experience. However, I want to change gear and approach mobile UX from a slightly different perspective. The truth is there is no one-size-fits-all approach to mobile UX. Different solutions can work in different situations, depending on the use cases. In terms of your website, there is only one way to be sure your mobile strategy is working as expected: testing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*YAB7KM_6BQJnzDy1.jpg" /><figcaption>Process of Creating a Mobile Web Strategy</figcaption></figure><p>Once we have implemented several key aspects of mobile design, we want to ensure our changes are working as intended for our mobile users. When developing a website, a good starting point is to use a browser mobile emulator to preview the website in mobile mode. The emulator allows developers to cost-effectively test the website on a range of different device sizes and identify any issues that occur.</p><p>Once the initial version of the website is complete, it would be a good idea to test it on a range of mobile devices. If possible, test on each of the major smartphone brands so different operating systems can be tested for any unique bugs. Testing on a real device allows the website to be checked more organically by giving users access to native controls. Also, giving users access to the real device allows the placement of key elements to be tested to see if they can be clicked easily.</p><p>More broadly, the best way to test a website is usability testing. Getting real users in front of the website and testing how effectively they can complete their objectives. Usability testing is the best way to uncover issues that users are having. The issues uncovered will likely be related to one of the five principles discussed previously. Once the issue has been uncovered and a solution has been put in place, test again to confirm the user can complete their tasks with as little friction as possible.</p><h4>Wrap Up</h4><p>Mobile usage is going to continue to grow rapidly and the principles discussed will put your website in the right direction. It is likely your “mobile moment” is coming in the near future — if it has not already happened. Putting in some initial groundwork to consider and order the key pages of your website can provide a solid platform for your mobile-first strategy going forward. It is also more than worth your while to conduct some usability testing to determine where improvements can be made.</p><p>Whilst each principle is distinct, there is plenty of overlap between them and they combine to create a robust mobile user experience. For instance, scaling typography can be part of the navigation when using content as navigation. Similarly, the choice of navigation menu can be part of a fluid layout that is tailored to each mobile device.</p><p>Coupling your website with the unique functionality of mobile can provide a great user experience and ultimately provide you with more positive outcomes. Gearing your website towards mobile is a great way to engage with the audience of today — and tomorrow.</p><h4>Useful Resources</h4><p><a href="https://typescale.com/">Typographic Scale Generator</a></p><p><a href="https://developer.apple.com/design/resources/#ios-apps">Apple Mobile Design Guidelines</a></p><p><a href="https://m3.material.io/">Google Mobile Design Guidelines</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7a405cc852c4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tory cranks who lost their seat / are no longer in parliament after the 2024 election.]]></title>
            <link>https://declan-kay117.medium.com/tory-cranks-who-lost-their-seat-are-no-longer-in-parliament-after-the-2024-election-6dc2211aef39?source=rss-f2dd6d24828d------2</link>
            <guid isPermaLink="false">https://medium.com/p/6dc2211aef39</guid>
            <dc:creator><![CDATA[Declan Kay]]></dc:creator>
            <pubDate>Fri, 05 Jul 2024 13:57:46 GMT</pubDate>
            <atom:updated>2024-11-17T20:06:10.432Z</atom:updated>
            <content:encoded><![CDATA[<h3>Tory cranks who lost their seat / are no longer in parliament after the 2024 election. The highlights:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*ay0feqExzgpyiCaI" /></figure><p>After a pretty wretched 14 years in office, the Tories were unceremoniously booted out of government in July’s election with several of the Conservative’s most well-known names losing their seats. Here are some of the highlights:</p><h3>1. Gillian Keegan</h3><p>The former Education Secretary is famous for describing the quality of her own work in glowing terms, whilst “everyone else has sat on their arse”. She also said she would have punched “rude” Ofsted inspectors. Feisty.</p><p>Whatever she does next, I am sure she will do a fucking good job.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WwZ-Uw6vIov9TGHx" /><figcaption>The hardest working Education Secretary ever, Gillian Keegan (probably)</figcaption></figure><h3>2. Penny Mordaunt</h3><p>At a first glance, Penny Mordaunt may seem more credible than the others. Then again, she did back Liz Truss for leader…</p><p>She has now been given the boot.</p><p>Also, there was this questionable approach to audience engagement at Tory party conference…</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FPKkx8LCCCNY&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DPKkx8LCCCNY&amp;image=http%3A%2F%2Fi.ytimg.com%2Fvi%2FPKkx8LCCCNY%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/ca0f7cec7f62b6f86d4afff0dfb4afcc/href">https://medium.com/media/ca0f7cec7f62b6f86d4afff0dfb4afcc/href</a></iframe><h3>3. Mark Harper</h3><p>A quick one on Mark Harper. He was working in the immigration department when he did not realise he had an illegal immigrant working as a cleaner in his house. Easy done.</p><p>Now his career has bit the buffers, he will have plenty of time to clean his house.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/455/0*KMzN222cZ1hKIzLe" /><figcaption>The Sparkly Clean Mark Harper</figcaption></figure><h3>4. Michelle Donelan</h3><p>Good old Michelle Donelan called a Heriot-Watt University lecturer a Hamas supporter and had to pay out £15,000 of justice. More specifically, we taxpayers had to stump up the cash.</p><p>Maybe, she will be more careful outside of parliament.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*s-x3lTJg7KhsHhgl" /><figcaption>Public Speaking Pro, Michelle Donelan</figcaption></figure><h3>5. Liz Truss</h3><p>Truss was the Prime Minister who was outlasted by a lettuce. Aside from that, she has a strange phobia of imported cheese. The crackers moment is at 55 seconds:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Faj49CogLemQ%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Daj49CogLemQ&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Faj49CogLemQ%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/e937bdb58fbb943a94674e5b0248bd24/href">https://medium.com/media/e937bdb58fbb943a94674e5b0248bd24/href</a></iframe><p>She now has more time to look into the “deep state”, or whatever it is she is doing.</p><h3>6. Douglas Ross</h3><p>Now, Wee Dougie. He backed Boris and then backed Liz Truss’ mad budget. Questionable.</p><p>He resigned as Scottish Tory leader at the election after taking advantage of a fellow Tory MP being very ill and pinched their seat. Sneaky.</p><p>Despite having a bigger majority to defend, D-Ross lost the seat and was caught offside this election.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*TX5FnX2cKkUuTiRKlGP9eA.gif" /><figcaption>Wee Douglas Ross Caught Offside</figcaption></figure><h3>7. Jacob Rees-Mogg</h3><p>Ah, the pantomime toff, the haunted pencil, Lil Moggie.</p><p>He was the Minister for Brexit Opportunities and then resigned because there weren’t any. He also voted against environmental protections whilst owning investments in oil and gas companies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bITe-Icb-ir7rrIw" /><figcaption>Rees-Mogg Campaigning in Fife with his Nanny in 1997 (yes, really)</figcaption></figure><p>Maybe now he has the spare time to build that time machine back to the 18th Century he has always wanted.</p><p>Some Tories said previously they were leaving parliament. Here are some big hitters:</p><h3>8. Theresa May</h3><p>A Former PM, May was known for creating the shameful Hostile Environment when she was the Home Secretary.</p><p>She also had some strange dance moves at party conference — when she was in charge of the country.</p><p>At least she has lots of time to run through fields of wheat now.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/976/0*fEa9Q1g3F9pYvhGw" /><figcaption>The May-Bot 🤖</figcaption></figure><h3>9. Kwasi Kwarteng</h3><p>Now we have Kami-Kwasi: Truss’ man behind the disastrous mini-budget where he scrapped the cap on banker’s bonuses and abolished the 45p rate.</p><p>He and Truss wiped around £30 billion off the British economy — in additional interest payments — after freaking the markets out with their policies.</p><p>Hope his pension has recovered from the economic shock.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/976/0*BF5a3ahfzkslSkvF" /><figcaption>The ever-cheery, Kami-Kwasi</figcaption></figure><h3>10. Michael Gove</h3><p>During the Covid-19 years, Cocaine Gove recommended Tory donor David Meller to the “VIP Lane”. Meller went on to win six PPE contracts worth a grand total of £164m of tax-payers money.</p><p>He has called it a day as an MP. However, 19 years in parliament is not to be snorted at.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MyPnvDI1s80fx0Ck" /><figcaption>Michael Gove, VIP Lane Expert</figcaption></figure><h3>11. Matt Hancock</h3><p>Health Secretary Matt Hancock was caught schnecking his aide behind his wife’s back and breaking his lockdown guidelines — before clearing off to the jungle.</p><p>After leaving parliament, he may have the taste for sheep’s vagina: rumour says he bought a season ticket at Aberdeen FC.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*lnl7h2w7Gyr2V3HF" /><figcaption>Sheep Vag Connoisseur, Matt Hancock</figcaption></figure><p>Some Tories were already booted out. Here are the lowlights:</p><h3>12. Neil Parish</h3><p>We have Neil Parish, the guy looking at tractor porn in parliament.</p><p>He said the only thing he regretted was “looking at it a second time”. To be fair, those massive tyres are irresistible.</p><p>We plough on…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/0*wAN6sNVsC7d_Vmb3" /><figcaption>Farmville and Chill Champ, Neil Parish</figcaption></figure><h3>13. Chris Pincher</h3><p>“Pincher by name, pincher by nature” is the quip for Chrissy boy.</p><p>BoJo (more on him later) tried to promote him to Chief Whip, even though he apparently had heard the stories about Pincher.</p><p>Hopefully, he is not feeling the pinch after losing out on the £90k+ MPs get every year.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tJuDmP3PAtBHm2WI" /><figcaption>Chief Pincher, Chris</figcaption></figure><h3>14. Nadine Dorries</h3><p>Next, good old Nadine Dorries. She went in the huff because she did not get added to the House of Lords.</p><p>She was the culture secretary when she conducted this bizarre interview on mild-mannered BBC Breakfast:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FsMFWT8HzsPg%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DsMFWT8HzsPg&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FsMFWT8HzsPg%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/659a65f3f2413289f8a1f49d42bf730b/href">https://medium.com/media/659a65f3f2413289f8a1f49d42bf730b/href</a></iframe><p>Dorries is done, in parliament, she is no more.</p><h3>15. Boris Johnson</h3><p>Boris, Where to start? Illegally proroguing parliament, PartyGate and THAT £350m a week EU whopper.</p><p>The guy who has been sacked more than once for lying famously said “Rules are for little people”, it turns out he is not as big as he thought.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/0*y7IIhRiU1qfd0KjQ" /><figcaption>The Eton Mess, Bo-Jo</figcaption></figure><p>He is the very definition of the corrupt, self-serving political class that Britain is in a far better place now we have seen the back of him and the rest of them.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6dc2211aef39" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Add an Instagram Feed to Your Website]]></title>
            <link>https://declan-kay117.medium.com/how-to-add-an-instagram-feed-to-your-website-e4273efe9de9?source=rss-f2dd6d24828d------2</link>
            <guid isPermaLink="false">https://medium.com/p/e4273efe9de9</guid>
            <category><![CDATA[instagram]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[behold]]></category>
            <category><![CDATA[widget]]></category>
            <category><![CDATA[feeds]]></category>
            <dc:creator><![CDATA[Declan Kay]]></dc:creator>
            <pubDate>Mon, 12 Feb 2024 15:18:52 GMT</pubDate>
            <atom:updated>2024-08-14T12:26:20.460Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HB44J9KF1rjCjiTyCrQfug.jpeg" /></figure><p>Instagram is one of the most popular social media platforms in the world. With over 1 billion monthly users, it provides a huge marketplace for businesses to set up and build a customer base.</p><p>A great way to build a cohesive digital strategy is to <a href="https://declankay.com/blog/how-to-integrate-social-media-content-into-your-website/">integrate your social media content into your website</a>. In particular, adding a feed of your latest Instagram photographs can add vibrancy and inject some fun content into your website. Instagram is especially useful as it allows you to showcase your brand to your customers with high-quality photographs. Using large social media companies like Instagram allows you to retain more customers and increase your number of conversions.</p><p>For this tutorial, I will be using a tool called <a href="https://app.behold.so/">Behold</a>, which will allow us to connect your Instagram account to your website. I will show you how to achieve this using two methods: a simple embed for non-technical users and a custom API for developers.</p><h4>Getting Started With Behold</h4><p>First of all, you will need to create an account with Behold. It is also worth pointing out that you will need your login details for your Instagram account. You may wish to log into your Instagram account on a separate tab in your browser to make it easier to connect it with Behold later on.</p><p>Once your account is created, you will get an email from Behold asking to confirm your email address. Go ahead and confirm your email address before setting up the feed as it can sometimes cause your account to be suspended if you are not verified.</p><p>Before we go ahead and finish setting up your account, I want to add a quick word about the subscriptions that are offered by Behold. You can create either a free account or sign up for the paid version. The paid package offers more images to be pulled from Instagram, a faster feed reload when new images are added to Instagram and protection from traffic spikes. Ultimately, the amount of traffic your website gets will decide which package to go for — the free package allows up to 1,200 page views per month.</p><p>Once set up inside Behold, you are presented with two sections called ‘Feeds’ and ‘Sources’. To clear these sections up, the source will be your Instagram account and the feed is the embed that will be placed into your website. Using Behold, one Instagram source can have more than one feed on your website. This can be useful if you want to have slightly different feeds on different pages of your website.</p><h4>Add a Source to Behold</h4><p>We will start with adding a new source by clicking the ‘Source’ tab and then clicking the ‘Add Source’ button.</p><figure><img alt="CONNECT AN INSTAGRAM SOURCE | BEHOLD" src="https://cdn-images-1.medium.com/max/700/0*wXlxDSmdmvsukC07.jpg" /><figcaption>CONNECT AN INSTAGRAM SOURCE | BEHOLD</figcaption></figure><p>In the next screen, we can set the source type to either basic or advanced. We will choose ‘Basic’ for our purposes as it provides us with images and links to your Instagram account. It will also mean we do not need to manually refresh our account every few months.</p><p>However, you can choose ‘Advanced’ if you want extra features such as comment count, link count and hashtag feeds. On the connect screen, click the ‘Connect’ button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*QkktuJ17WuyAWcli.jpg" /><figcaption>CONNECT AN INSTAGRAM ACCOUNT | BEHOLD</figcaption></figure><p>Behold will now redirect you to Instagram and ask permission to connect your account. If you signed in already, you are taken to the permission request screen. The ‘Profile Information’ checkbox is already checked. Be sure to also check the ‘Media (Optional)’ checkbox as well so we can add this content to your website feed. Then click ‘Allow’ to proceed.</p><p>You are now redirected back to Behold and you can now see your Instagram account in the list of sources.</p><h4>Add a Feed to Behold</h4><p>Next, we can create a feed that we can add to our website. Click the ‘Feeds’ tab on the left panel and then click the ‘Add a Feed’ button.</p><p>In the next screen, we can then choose a ‘User’ feed as we want a feed with image posts from a single Instagram account.</p><p>Under ‘Pick a Source for your Feed’, click your Instagram account that was just added.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*14C1NMacAPgLJDo4.jpg" /><figcaption>INSTAGRAM FEED WIDGET OR API | BEHOLD</figcaption></figure><p>Then in the next screen, we are given a choice between Widget or API. Non-techy users can pick ‘Widget’ as it allows you to add the feed to your website without knowing how to code. For developers, please skip ahead to the API section of this blog post.</p><h4>Embed an Instagram Feed to Your Website</h4><p><strong>Customise Your Embedded Feed</strong></p><p>Enter a name for your widget into the text box and then click ‘Create Feed’ to proceed. On the next screen, you get a first look at your shiny new Instagram feed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*sBhVT93PWA42DTTg.jpg" /><figcaption>INSTAGRAM WIDGET PREVIEW | BEHOLD</figcaption></figure><p>Several different options allow you to edit the appearance of your feed. For example, if you want three images instead of six, you can click the ‘Customise’ option on the left tab. In the ‘Number of Posts’ input, change the number to “3”. Please note that the feed is limited to six posts on the free tier of Behold.</p><p>This is just the beginning of the changes you can make. Here are a selection of other things that can be edited without using any code:</p><ul><li>Post types such as only displaying images, videos, albums etc.</li><li>Number of image columns i.e. images per row.</li><li>Visual effects such as rounded corners, hover background colour and hover transition.</li></ul><p>Then, click the ‘Save’ button in the top left to make your changes permanent.</p><p><strong>Embed the Feed to Your Website</strong></p><p>Once you have perfected the look of your Instagram feed, it is time to embed it into your website.</p><p>The website admin software example we will use is WordPress, but other software like Joomla or Umbraco work similarly.</p><p>First login to the WordPress admin area and then navigate to the page that is going to feature your Instagram feed.</p><p>Then, go to Behold and select the ‘Embed Code’ on the left panel and copy the code provided.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*r7ogDcbraAflSmMF.jpg" /><figcaption>INSTAGRAM WIDGET IN WORDPRESS ADMIN AREA</figcaption></figure><p>Back in WordPress, select the text editor where you want to add the Instagram feed and paste the embed code. Please note that you may need to switch the editor to ‘Text Mode’ before pasting the embed code, depending on which version of WordPress you are using.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*nXN5Mr45eoc5YRH4.jpg" /><figcaption>INSTAGRAM WIDGET EMBEDDED IN WORDPRESS</figcaption></figure><p>Click the ‘Save’ / ‘Publish’ button in WordPress to make your change permanent. Then go to the customer-facing part of your website and your feed should now display on the page. If you have any tweaks to make to your feed, you can edit the settings on Behold and the feed will update on your website without touching the embed code. If you are a non-techy user, you can now skip ahead to the wrap up section of this blog post.</p><h4>API — Build a Custom Instagram Feed Using JSON</h4><p>For developers, Behold allows access to the raw Instagram API data in the form of JSON. First, go to the ‘Feeds’ tab and click ‘Add Feed’ and then select the ‘User’ option, which suffices for our needs. After selecting your Instagram feed added earlier, select ‘JSON’ and then give your feed a suitable name.</p><p>In the next screen, you are given the raw Instagram data in a variety of different options such as JSON, the JSON URL and a preview of your feed. There are also a handful of options to edit your feed such as the number of images, types of media and domain whitelist protection etc. Please note these options only affect the data output, not the appearance of the feed — the visuals and interactivity are fully in our control as developers.</p><p>We will now go over a simple example that takes the JSON data and turns it into a responsive, four-column layout with a suitable hover effect. I will use PHP to create the markup, but JSON can be used with a language of your choice.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*6wqWbDdkUhM0_0tY.jpg" /><figcaption>INSTAGRAM API FEED DESKTOP VERSION</figcaption></figure><p>First of all, in the PHP file, set the ‘BeholdFeedURL’ variable to the URL provided by Behold. There is a simple check to see if the feed has any content and an error message is displayed if there are any connection issues.</p><p>The next step is to use a couple of simple PHP functions. The first function that we will use is ‘file_get_contents’, which allows us to collect data from the Behold URL. Second, we will use ‘json_decode’, which converts the JSON data into a PHP object. The next step is to create a foreach loop, so we can cycle through each of the Instagram posts.</p><p>When inside the loop, we can then access specific content by referencing the object names. For example, ‘permalink’ is used to access the link to the Instagram post and ‘mediaUrl’ allows access to the image URL. An example of a basic solution is below:</p><p><a href="https://gist.github.com/declankay/bb57e07e65de3d4fcb1d1768413cfbf0">https://gist.github.com/declankay/bb57e07e65de3d4fcb1d1768413cfbf0</a></p><p>You can see the full list of options available by viewing the JSON preview on Behold and get inspired by the range of content that is provided. For instance, the JSON also contains captions as well as hashtags. Alternatively, the media type option could allow a feed of video content to be created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*l_2Lhc73VgU4cPKL.jpg" /><figcaption>INSTAGRAM API FEED MOBILE VERSION</figcaption></figure><p>In the other file, we have some simple CSS that creates the four-column layout and a suitable hover effect. The layout is created using CSS flex but can be changed to a different method if preferred. There are a handful of sitewide styles controlling fonts, images and colours that can be amended to fit the theme of your website. The main purpose of this guide is to process the raw data from Instagram but you can access the CSS in my <a href="https://github.com/declankay/Instagram-Feed-for-Website">GitHub repository</a>.</p><h4>Wrap Up</h4><p>Whether you are a developer or have no coding experience at all, you now know how to add an Instagram feed to your website. Behold offers great flexibility by offering simple, free embeds for beginners as well as providing more advanced paid offerings for users with more bespoke needs.</p><p>I would be interested to see what creations people come up with, so feel free to post a link to your website in the comments below.</p><p><a href="https://www.instagram.com/">Instagram</a> is an excellent social media tool that allows you to showcase high-quality photographs of your brand to your customers. As discussed, Behold offers an easy way of integrating your social media content into your website and gives your customers a more cohesive online experience. Ultimately, this close-knit approach enables you to find and retain customers as well as increase the number of conversions on your website.</p><h4>Useful Resources</h4><p><a href="https://behold.so/docs/">Behold Documentation</a></p><p><a href="https://declankay.com/blog/how-to-integrate-social-media-content-into-your-website/">How to Integrate Social Media Content Into Your Website</a></p><p><a href="https://github.com/declankay/Instagram-Feed-for-Website">GitHub Repository for API Feed</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e4273efe9de9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Improve the Page Speed of Your Website Checklist]]></title>
            <link>https://declan-kay117.medium.com/improve-the-page-speed-of-your-website-checklist-19a018012581?source=rss-f2dd6d24828d------2</link>
            <guid isPermaLink="false">https://medium.com/p/19a018012581</guid>
            <category><![CDATA[page-speed]]></category>
            <category><![CDATA[image-compression]]></category>
            <category><![CDATA[browser-cache]]></category>
            <category><![CDATA[web-hosting]]></category>
            <category><![CDATA[cdn]]></category>
            <dc:creator><![CDATA[Declan Kay]]></dc:creator>
            <pubDate>Wed, 29 Nov 2023 14:29:03 GMT</pubDate>
            <atom:updated>2023-11-29T14:29:03.517Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ErgaLhH7wwARFWE6YOZJeA.jpeg" /></figure><p>Page speed is one of the methods used to rank websites in Google’s search results pages. Improving your page speed can have a significant impact on your organic search performance and drive more traffic to your website.</p><p>There are additional benefits for your customers when you improve your page speed. Firstly, having a page that loads quickly is more convenient as users access the suitable content sooner. Most users have little in the way of patience and up to 32% will close your website if it does not load within 3 seconds.</p><p>Second, if the customer accesses your website on mobile, you can save them precious mobile data when they are out and about using their 4G.</p><p>Most of the examples I discuss with be using WordPress, however, each of the major content management systems (CMS) have an equivalent tool that can be used instead.</p><h4>Benchmark the Page Speed of your Website with GTMetrix</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*HTTvImbT8iLWw5YN.jpg" /><figcaption>Benchmark Page Speed | GTMetrix</figcaption></figure><p>I will discuss ways that you can go about improving your page speed shortly, but first I want to mention a tool that will be useful for measuring the success of the project. You can use <a href="https://declankay.com/blog/using-gtmetrix-to-improve-your-websites-page-speed/">GTMetrix</a> or <a href="https://pagespeed.web.dev/">Page Speed Insights</a> by Google to measure the page speed of your existing website. It will provide insights such as page loading time, page file size and the total number requests your website makes. Scanning your website before starting to make changes allows you to benchmark the performance and you can get clearer insights into the success of the changes you have made.</p><h4>1. Optimise and Compress your Images</h4><p>I want to start by identifying one of the big hitters, in terms of page speed. More often than not, images are often the single biggest bloat on your website. The source of the problem is that photographs are commonly used to provide visually captivating shots that inspire your users. The banner images take up a large area of space on the page, so often web owners will upload a hi-res image that showcases their work or services as well as they possibly can.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*cp6QVR97oIh0TV3D.jpg" /><figcaption>Compress Your Images</figcaption></figure><p>The trouble is that the dimensions of the images are often far larger than they need to be. Images are often uncompressed, meaning the file size could be reduced without affecting the quality of the image.</p><p>There are a few tools that can be used, depending on the circumstance:</p><ol><li>First, if you are optimising in bulk, you can use <a href="https://tinyjpg.com/">TinyJPG</a>. They allow you to upload 20 images at one time and provide a quick calculation of how much the file size has been reduced.</li><li>If your images are too large and require a 1-to-1 compression, Google have made a tool called <a href="https://squoosh.app/">Squoosh</a>. The tool has a handy before and after slider, comparing the original image and the compressed image.</li><li>Most design software has a feature that compresses images when exported, such as Affinity Photo. In addition, Adobe Photoshop has a “Save for Web” feature that offers similar savings.</li><li>Using WordPress, several potential plugins can be used such as WP Smush and Speed Optimizer by SiteGround.</li><li>Finally, developer tools such as TwicPics and Cloudinary can be the ideal solution. These tools can compress and resize hi-res images automatically as the page loads — without any extra action required from the website owner.</li></ol><p>Aside from compression, there are some additional considerations for optimising images, such as selecting the correct format. For example, if an image does not have any transparent elements, a JPEG would be preferred to a PNG. There are also modern image file types such as WEBP, which use the latest compression techniques. There is also an approach called lazy loading, which means that an image will not be loaded until it comes into view. If you have a series of images at the bottom of your page, they could be lazy loaded so they do not affect page speed.</p><h4>2. Upgrade to Fast Web Hosting</h4><p>My next suggestion is slightly different as it is not a change to your website directly, rather it is about the platform that your website lives on. Your choice of hosting provider has a large impact on the speed of your website. Hosting providers give you the platform to put your website online. Essentially, hosting servers are computers that store the files for your website and give your customers access to them. Therefore, the server response time can make up a sizable chunk of page loading time. According to Cloudflare, an acceptable average response time is under 200 milliseconds (0.2 seconds) and the page should fully load by 2 seconds.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*ijVb2-2BBWtV6ToW.jpg" /><figcaption>Web Hosting Speed Comparison | Data From Cyber News 2023</figcaption></figure><p>There are a wide range of hosting providers that can accomplish the task of putting your website online. However, not all hosting servers are made equal and some hosting providers offer better performance in terms of speed. The general rule of thumb is that the better the performance, the more expensive the annual subscription will be. Overall, it is ultimately about striking a balance between performance and affordability.</p><p>The hosting providers that use software called cPanel — such as Bluehost and InterServer — generally do not perform at the top of the speed list. If you are looking for a middle-ground solution — with mid-level costs and performance — you can use hosting from 1&amp;1 Ionos or HostGator. On the other end of the scale, we have the top-performing hosting companies such as InMotion Hosting or Hostinger. If this solution is affordable for you, then they provide website owners with the best-in-class performance, security and features on the market.</p><p>Concerning hosting, I would recommend using dedicated hosting rather than shared hosting. Having your own server provides better performance and security as well as additional configurations that are not available with shared solutions.</p><h4>3. Use a Content Delivery Network (CDN)</h4><p>One key way to deliver faster page speed, especially if your website is international, is to use a Content Delivery Network (CDN). A CDN is a hosting service that allows you to offload the content of your website to high-performance servers that can speed up access to files such as images, videos and scripts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*pvoTrzuR1BwapwVr.jpg" /><figcaption>Content Delivery Network (CDN)</figcaption></figure><p>The way a CDN works is by essentially copying the files of your website and placing them onto different servers located all around the world. If an international user accesses your website, they will use a server closest to them. The shorter the distance between the customer and the server, the faster the page will load. For example, a company based in the United Kingdom, with a large customer base in the USA, would benefit from using a CDN with a server in North America. Using a free CDN can be particularly useful if you do not currently have the finances to upgrade your hosting provider.</p><p>The most common solution is <a href="https://www.cloudflare.com/">Cloudflare</a>, which is a free CDN that offers the international server utility that I mentioned previously. They offer free SSL security certificates and offer various security measures such as protection against Distributed Denial-of-Service attacks (DDoS) and blocking malicious bots. In addition, plugins offered by WordPress include Cloudflare, <a href="https://www.siteground.co.uk/wordpress-plugins/siteground-optimizer">Speed Optimizer</a> by SiteGround and <a href="https://wp-rocket.me/">WP Rocket</a> allow the larger assets of a website to be offloaded to faster servers and improve page speed.</p><h4>4. Limit the Use of 3rd-Party Apps</h4><p>Another common source of bloated loading times that I see on many websites is the use of unnecessary 3rd-party apps and plugins. Chatbots and social media walls are great and all — but unless they are absolutely required, they can contribute negatively to loading times. A general rule of thumb is that the more plugins that a website has, the more likely they will contribute to longer loading times. When the number of apps becomes unmaintainable and unmonitored, the risk increases of having out-of-date plugins on your website, which causes security issues.</p><p>The second issue that is given by 3rd-party apps is that they are external to your website and have to be retrieved from the wider internet. Any tool that uses embedded content such as comment sections or videos has to collect this content from another website, which takes longer for the page to retrieve and finish loading.</p><p>I would consider the purpose of each plugin and decide if it is required for your website’s objectives. For instance, if you have a social wall on your home page that is not driving conversions and is largely a gimmick, then it would maybe be best to remove it altogether. Another way to reduce the number of plugins on a website would be to look for plugins that offer more than one service, rather than have two separate plugins. For example, Speed Optimizer and WP Rocket both offer CDN, caching and front-end optimisation such as code minification rolled into one solution.</p><p>Finally, on custom builds with a developer, it is possible to only include plugins on the page templates that are required. For example, if only the contact page has a form, then the anti-spam plugin should only be included on that page — all the other pages can be spared from loading this unnecessary script. Using a developer would give you access to a wider range of options as they are not limited to what is offered by a plugin.</p><h4>5. Use Browser Caching</h4><p>Another method of bringing down page speed is to use the built-in caching services offered by your web browser (Chrome, Safari, Edge). Caching is when your web browser saves a copy of various files to your computer when it accesses a website for the first time. On the next visit, the page will load more quickly because your computer already has some of the required files. It only needs to download any new files that have been added to the website since your last visit. The types of files your browser can cache are images, videos and scripts.</p><p>For example, imagine you have a shopping list of 15 items and you know you already have 10 items in your home. This means when you go to the supermarket, you only have to collect the remaining 5 items, rather than all 15. You would be able to complete the shopping more quickly if the essentials are already taken care of.</p><p>There are two ways of carrying out the caching, depending on your technical experience:</p><ol><li>A developer can set the cache policy using a configuration file such as HTACCESS. The way the configuration works is to set the type of file — such as a PNG image — then set the length of time it should cache e.g. 30 days. This approach is ideal because it sets the cache policy at the server level, rather than being restricted by the features offered by a plugin.</li><li>If you do not have any technical experience, a WordPress plugin can be used such as WP Rocket, LiteSpeed Cache or Speed Optimizer. For most of the top optimisation plugins, it is usually a case of going to the cache tab in the settings and then checking a box for each file type you want to cache.</li></ol><h4>6. Bonus: Technical Considerations</h4><p>Some extra steps can be implemented to add the finishing touches to your page speed optimisation. Overall, the savings that can be made by implementing these changes are not as large as other changes such as optimising images or upgrading web hosting. However, larger businesses and smaller companies looking to expand will reap the benefit when these additional changes are made at scale. For businesses using developers, knowing the team is following these measures is a good indicator that other best practice is being followed elsewhere on the project.</p><h4>a. Limit the HTTP Requests</h4><p>When a page on your website is loaded, it has to collect several different files such as images, videos, scripts, fonts etc. The more files that your computer has to retrieve, the longer the page will take to load. To use the supermarket analogy again, imagine you went to the store on ten occasions to collect ten different items. In this case, it would be far more efficient to collect all ten items in one trip to the shop.</p><p>There are two ways that can be used to minimise requests made by your website. The first is to remove any unnecessary requests that are not required for the content of your website to load properly. For example, WordPress supports emojis by default — if they are not required, then this can be removed.</p><p>The second option is to try and combine multiple requests into one. For example, if your website has multiple Google fonts, then both can be included within one script tag, rather than two. The top optimisation plugins on WordPress — Speed Optimizer or WP Rocket — can help with more efficient use of resources. Also, WordPress has plugins that remove specific content from a website such as comments, emojis and entire sections of a page.</p><p>When you scanned your website at the beginning with GTMetrix, the report provided the total number of requests and detailed the types of files being requested. A developer could work through the requests and remove any additional plugins that are not required. Working with a developer is desirable as some optimisation-specific plugins are not required as the developer can make the changes with code instead.</p><h4>b. Limit Redirect Chains</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*HbVSYw-ePSZFNA2l.jpg" /><figcaption>Page Redirect Chains</figcaption></figure><p>Another common issue that can strain the performance of your web server is when page redirects are used excessively. In particular, chains of redirects can take some time to process and cause a page to take longer to load. For example, Page A is retired and redirected to Page B. Then in later months, Page B is retired and is redirected to Page C. In this example, Page A is redirected to Page B and then to Page C, whereas it would be more efficient to go from Page A to Page C. Now multiply this across several pages across the whole website and it starts to be an unnecessary strain on the server.</p><p>To manage this issue, pages should be redirected on a 1-to-1 basis, rather than using chains. A developer or digital marketer can use a free scanning tool like <a href="https://www.screamingfrog.co.uk/seo-spider/">Screaming Frog</a> to identify any existing chains. Then a developer could use a configuration file to redirect any pages in the future. This would be the ideal solution as server-based redirects can alter patterns in URLs across the entire website such as http to https. Alternatively, a WordPress plugin called Redirection can be used to complete any 1-to-1 redirects.</p><h4>c. Remove Render-Blocking JS</h4><p>One frequent issue that is flagged by page speed tools is the removal of render-blocking JavaScript. For those who are not developers, HTML and CSS are used to create the structure (known as the DOM) and the style/appearance of any page on your website. Once the page is rendered, JavaScript is then used for user interactions such as hover, click, scroll etc.</p><p>As most JavaScript is not required until the user completes a specific action, it often is not required when the page first loads. However, if the browser encounters a script tag in the DOM, it will by default load the file before displaying the page, which means it can take longer depending on how large the script file is.</p><p>A developer can alleviate the issue by adding a “defer” attribute to the script tag. This means that the file will not be loaded until after the DOM is ready to display and therefore does not block the page getting loaded. Alternatively, some plugins will achieve this goal by identifying and modifying any script tags on your website. If you are looking for a specific JavaScript defer plugin, then Autoptimize is an option. Alternatively, the reliable duo of either Speed Optimizer or WP Rocket can achieve this as part of their services package.</p><h4>d. Minify the Code</h4><p>Another common method of reducing a page’s loading times is to minify the code. In this instance, minifying is the method of removing spaces and line breaks from the code in order to reduce the size of script and style files.</p><p>The spaces that are present in the code are required for a human to read and understand. They exist throughout the file, so can make the file size larger than necessary. However, the spaces are not required for a computer to read and implement, meaning they can contribute to a larger file size of a web page unnecessarily.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*u2tjJGWT0vA6z9MB.jpg" /><figcaption>Be Miniature, Be Like Jerry</figcaption></figure><p>The code can be minified by a developer using a programming language of their choice. This way, the code is already optimised for fast page speed before being published live on the web. If you do not have access to a developer, most content management systems (CMS) such as WordPress have free plugins that can optimise the code for you — for example, Speed Optimizer or WP Rocket.</p><h4>Conclusion</h4><p>For those who are just beginning their page speed optimisation journey, I would generally recommend scanning your website on GTMetrix and addressing the two big hitters in image compression and web server upgrades. Continually scanning your website after each major change to your website will ultimately allow you to see which changes have the biggest benefit.</p><p>The other consideration for your approach is whether you want to pay the additional fees for the expert knowledge of a developer or if you want to use WordPress plugins. Both are plausible solutions and have their trade-offs as plugins can be more affordable for some businesses whereas other companies would rather hand control of the website to the expertise of developers.</p><p>If you work with a developer, I would recommend creating a testing/demo/staging version of your website to test potential solutions before going live. This is largely because any changes to central configuration files carry the risk of unintended consequences elsewhere on the website.</p><p>As far as WordPress is concerned, there are a plethora of tools that can help achieve better page speed. As mentioned earlier, look out for solutions that check multiple boxes for optimal performance such as Speed Optimizer by SiteGround or WP Rocket. Outside of WordPress and content management systems in general, we also have tools such as Screaming Frog and Cloudflare.</p><p>Finally, it would be beneficial to closely monitor new content and templates on your website to make sure they meet the high standards set elsewhere. You can keep up to date with the latest page speed guidelines on SEO blogs such as <a href="https://moz.com/">Moz</a> and <a href="https://searchengineland.com/">Search Engine Land</a>. Overall, if you implement the changes discussed, your customers can be provided with your web content more quickly. You could see your website rise up Google’s rankings — and save your customers some mobile data while you are at it.</p><h4>Useful Resources</h4><p><a href="https://declankay.com/blog/using-gtmetrix-to-improve-your-websites-page-speed/">GTMetrix Guide</a></p><p><a href="https://www.cloudflare.com/">Cloudflare CDN</a></p><p><a href="https://cybernews.com/best-web-hosting/">Best Web Hosting — Cyber News</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=19a018012581" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Size and Scale Fluid Typography with CSS Clamp]]></title>
            <link>https://declan-kay117.medium.com/size-and-scale-fluid-typography-with-css-clamp-d0abfeeaf065?source=rss-f2dd6d24828d------2</link>
            <guid isPermaLink="false">https://medium.com/p/d0abfeeaf065</guid>
            <category><![CDATA[fluid-typography]]></category>
            <category><![CDATA[responsive-web-design]]></category>
            <category><![CDATA[font-size]]></category>
            <category><![CDATA[css-clamp]]></category>
            <category><![CDATA[scale]]></category>
            <dc:creator><![CDATA[Declan Kay]]></dc:creator>
            <pubDate>Tue, 05 Apr 2022 16:33:10 GMT</pubDate>
            <atom:updated>2022-04-05T16:34:35.031Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Size and Scale Fluid Typography with CSS Clamp" src="https://cdn-images-1.medium.com/max/1024/1*drGpo9HT9U0H9lj9xe6CYQ.jpeg" /></figure><p>Responsive web design is now a prominent aspect of modern web design and development. For instance, global mobile web usage <a href="https://techcrunch.com/2016/11/01/mobile-internet-use-passes-desktop-for-the-first-time-study-finds/"><strong>surpassed</strong></a> that of desktop in 2016 and Google switched to a <a href="https://developers.google.com/search/mobile-sites/mobile-first-indexing"><strong>mobile-first</strong></a> website indexing process in 2019. With this in mind, creating a website that provides users with an optimised experience for all devices is more desirable than ever before.</p><p>One of the traditional ways that websites are developed responsively is by using a CSS feature called media queries. Essentially, this allows CSS to be applied to page elements within a specific breakpoint and be altered again as the screen size increases or decreases.</p><p>As good as the standard media query approach is, technology evolves and new and improved methods emerge. For example, more recent changes to CSS allow us to use a function called “clamp”. In a nutshell, fonts can be styled with one line of code and it scales as fluid typography.</p><h3>What is the Trouble with the Traditional Media Queries?</h3><p>Before we get to the new solution, let’s take a look at a couple of the issues of the older method that need addressing.</p><p>One issue with media queries is that they add extra lines of code to the CSS file. For instance, one heading could have a different font size for each of the five main Bootstrap breakpoints. Then multiply this by how many different headings a website could have. It becomes pretty lengthy in a short space of time, which is harder to read and harder to maintain.</p><p>Another area where the existing solution is not perfect is that the specified font sizes for different devices are limited to the number of breakpoints that exist. So, for example, if H1 was 30px on mobile and did not change until the SM (Phablet) breakpoint. This would mean that all mobile users would have the same font size whether they were using an old iPhone 5 or a newer iPhone 13 Pro. In other words, the font size is rigidly set to the breakpoint, not set fluidly to specific device sizes.</p><h3>What is CSS clamp?</h3><p>With these issues in mind, let’s see how can we use clamp to alleviate these problems.</p><p>CSS clamp uses three functions, two of which are existing min and max functions — in this instance to set a min and max font size. The middle value is set to a dynamic value that will change with the width of the screen, such as viewport width (vw).</p><p>A simple CSS declaration could be: “font-size: clamp(2rem, 5vw, 5rem);”.</p><p>In this instance, the font size is set to 5vw with a minimum of 2rem and a maximum of 5rem. In other words, the font size defaults to 5% of the screen width but it will not go below 2rem on mobile devices and will not go above 5rem on desktop.</p><p>This way, fonts can be styled responsively with a single line of code, with no need for multiple media queries for each breakpoint. It also means that every user will have fonts sized specifically to the size of their device — a tailored, optimised experience for every user.</p><p>The rest of this article is available on <a href="https://declankay.com/article/size-and-scale-fluid-typography-with-css-clamp">The Digital Den</a>.</p><p>Image credit: Tingey Injury Law Firm (Pexels), CSS Tricks</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d0abfeeaf065" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Create a Property Web Application with the Zoopla API]]></title>
            <link>https://declan-kay117.medium.com/how-to-create-a-property-web-application-with-the-zoopla-api-3dac4f5867a5?source=rss-f2dd6d24828d------2</link>
            <guid isPermaLink="false">https://medium.com/p/3dac4f5867a5</guid>
            <category><![CDATA[api]]></category>
            <category><![CDATA[zoopla]]></category>
            <category><![CDATA[property]]></category>
            <category><![CDATA[web]]></category>
            <category><![CDATA[application]]></category>
            <dc:creator><![CDATA[Declan Kay]]></dc:creator>
            <pubDate>Tue, 01 Jun 2021 16:22:12 GMT</pubDate>
            <atom:updated>2021-06-01T16:22:12.665Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0RJsC9WN64saqcF---f67A.jpeg" /></figure><p><a href="https://www.zoopla.co.uk/"><strong>Zoopla</strong></a> are one of the largest estate agents companies in the UK and have a vast network of information about current properties available for sale and rent. Aside from common information such as property rent and number of bedrooms, Zoopla also have access to extra information such as neighbourhood average property prices and average council tax value.</p><p>Handily for developers, Zoopla have opened up access to this data in the form of an extensive API. From this API, we can create property web applications for a client or personal projects. Here, I will go into detail on how we can create a developer account with Zoopla and start collecting data from the various options that are available. Finally, I will provide some guidance on using the data in a custom property web application.</p><p>Before I begin, I want to point out that I will use PHP to create the application. However, the raw data is in JSON or XML format, so you can use a programming language of your choice. Please also note, you will need basic HTML and CSS knowledge for you to build out your custom application.</p><h3>1. Set Up Zoopla Developer API Account</h3><p>The first port of call is to get set up with a <a href="https://developer.zoopla.co.uk/"><strong>Zoopla Developer account</strong></a>, which we will use to collect data from the API. Go to ‘Applications’ and click ‘Create a New Application’ and then enter your details about the project you are creating. There is a temptation to only provide the basic details, but the more information you provide at this stage will make it easier to get the application up and running and avoid any unexpected issues further down the line.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*-aRdS070IHwdDdGA.jpg" /></figure><p>Be sure to select ‘JSON’ in the ‘Preferred Output Format’ field, so you can follow on with this tutorial. Once created, be sure to take note of the API key, as this will be used to get authenticated access to the data from Zoopla.</p><p>It is at this point, we will run into the first issue that we will need to resolve. For unexplained reasons, Zoopla will deactivate your application after 24 hours. It will remain switched off indefinitely unless we carry out some preventative actions. You will need to contact Zoopla and explain the application that you are building and why they should switch it back on. It usually helps if you have a client that is paying them a monthly fee, for the reactivation process to go more smoothly. Depending on the volume of requests that Zoopla are dealing with, you should have access again within five working days.</p><p>In terms of getting set up, I wanted to quickly mention that there is <a href="https://developer.zoopla.co.uk/docs"><strong>documentation</strong></a> on the Zoopla Developer website, which covers the data requests that can be made. Sadly, the Zoopla Forum is no longer in use, however, <a href="https://stackoverflow.com/search?q=zoopla+api"><strong>Stack Overflow</strong></a> is available, if you want to see some historical questions on the subject. Also, be sure to give the Zoopla API ‘User Requirements’ a read so you are up to speed with the conditions that Zoopla asks developers to comply with. For example, Zoopla asks for a small ‘Powered by Zoopla’ image to appear beside your property listings.</p><p>The rest of this article is available on <a href="https://declankay.com/article/how-to-create-a-property-web-application-with-the-zoopla-api">The Digital Den</a>.</p><p>Image credit: Emese Pop (Pexels), Zoopla</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3dac4f5867a5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Improve Website Conversion Rates and UX Using Hotjar?]]></title>
            <link>https://declan-kay117.medium.com/how-to-improve-website-conversion-rates-and-ux-using-hotjar-50f644e1fdd5?source=rss-f2dd6d24828d------2</link>
            <guid isPermaLink="false">https://medium.com/p/50f644e1fdd5</guid>
            <category><![CDATA[conversion-rate]]></category>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[hotjar]]></category>
            <category><![CDATA[user-feedback]]></category>
            <category><![CDATA[heatmap]]></category>
            <dc:creator><![CDATA[Declan Kay]]></dc:creator>
            <pubDate>Wed, 30 Sep 2020 10:03:48 GMT</pubDate>
            <atom:updated>2020-09-30T10:03:48.596Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D-loecSILTuCHUVVrKk8pg.jpeg" /></figure><p><a href="https://www.hotjar.com/"><strong>Hotjar</strong></a> is an analytics tool that allows you to gather qualitative data and feedback that allows you to have a greater understanding of how visitors engage with your website. Using Hotjar’s terminology: they are an “all-in-one analytics and feedback” tool, which provides several essential analytics features and user feedback tools within the one platform.</p><p>Hotjar can be used to visualise what users do on your website so that processes can be optimised for a higher conversion rate. Hotjar also allows you to collate feedback in a report format that is quick and easy to understand. Hotjar is flexible enough to provide quick access to simplified reports to beginners who are just starting with their website in addition to well-established companies looking to optimise their existing website. In short, Hotjar can complement and enhance the data and insights that is provided by Google Analytics.</p><p>Some of the key analytics features that Hotjar offers, which will be discussed in more detail include heat maps, video recordings, conversion funnels and form analysis. Also, some types of feedback provided include user polls, incoming feedback and surveys.</p><h3>Setting Up Hotjar</h3><p>Setting up Hotjar is quick and easy. When signing up with Hotjar, they will provide a small amount of JavaScript which is the Hotjar tracking code. The tracking code is what Hotjar uses to set up all the analytics features they provide.</p><p>We want to add the tracking code to the &lt;head&gt; section on each page that we want to get data for. We would recommend installing the tracking code using Google Tag Manager, as this tool can provide event tracking for your website, with the additional benefit that you can add the code once to Google Tag Manager for your whole website. That said, if you want to install the tracking code for a specific platform you are using, then Hotjar has great <a href="https://help.hotjar.com/hc/en-us/articles/115009336727-How-to-Install-your-Hotjar-Tracking-Code"><strong>help guides</strong></a> on how to do this.</p><p>Please note that the tracking code will be unique to each website, so ensure this tracking code is used on one website. New tracking codes can be created later on if additional websites are required to have Hotjar tracking enabled. If there are concerns about Hotjar slowing your website down in the longer term, you can remove the tracking code once the data has been collected.</p><h3>Heat Maps</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*KVfvxJ72Sm3EnYvk.jpg" /></figure><p>One of the ways that Hotjar provides analytical insight is by using heat maps. The heat maps feature allows an additional visual understanding of how the user interacts with the website. The user’s motivation and desires are measured using clicks, moves and scrolls. The page elements are colour-coded from hot (red) to cold (blue) to indicate which are interacted with the most. Viewing the data in this manner allows the complex list of several interactions from the user to be understood quickly and easily.</p><p>Heat maps have three screens to show the interaction from your users. First, Click allows us to see the areas that the user clicks on, which allows us to see which content is most popular with the user such as a call to action. Allowing the clicks to be illustrated can indicate the motivations of the user on the website and content can be amended to optimise that process. Second, Move is the area of the page that the user moves the cursor over. This can be useful when identifying the areas of the website that the user is focussing attention in, without necessarily clicking on. Third, the Scroll view shows the area of the page where the users view when scrolling down the page, which can be useful for deciding the order of content on a page and stacking the most important above the fold.</p><p>Another feature is the data can be viewed per device type. For instance, the available device types are desktop, tablet and mobile. This feature enables the data to be broken down by device type and provides an opportunity to analyse performance for a specific medium. Having the opportunity to analyse each device allows optimisations to be made where the layout of the content will likely change.</p><p>Finally, hovering over each of the elements will show how many interactions that specific element has received. Also, the interactions will be shown as a percentage of the overall total for the page, which allows each element to be compared to see which is the most popular. The data can also be downloaded if additional analysis of the data is required at a later date.</p><h3>Visitor Recordings</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*X961tyhECtuMvOSi.jpg" /></figure><p>Another great analytics feature that HotJar provides is visitor recordings, which is a short video recording of the user’s journey on the website. In short, it eliminates the guesswork of user journeys and directly shows the real behaviour during the user’s session. Similar to the heat maps, the visitor recordings is another analytics feature from Hotjar that reports the insights visually. Displaying the data in this manner allows complex information to be understood and actioned quickly and effectively.</p><p>With visitor recordings, it can be seen exactly how the user interacts with elements on the page. For instance, how users scroll, where users move their mouse or tap the touch screen. The ability to view the user’s behaviour directly allows usability issues to be uncovered. If the user takes longer than expected to complete a specific task, some of the issues that are shown in the video can be priceless when looking to amend the page to meet their requirements more effectively. Having a better understanding of the user’s issues allows more effective solutions to be put in place to address them.</p><p>Within the Hotjar interface, the video recordings are listed in table format. For each video, information is provided such as the session duration, the number of pages visited, device, browser and operating system. The data provided by Hotjar can complement the existing data that is commonly provided by 3rd party analytics providers such as Google Analytics. The video listings can be filtered by date if two versions of the same page need to be compared. Additional available filters include sessions with a specific entry and exit page, a specific number of total pages, operating system and browser. These additional filters make it easy to compare how users interact with specific areas of the website.</p><h3>Conversion Funnels</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*IXXzVHyqjHzyiy6V.jpg" /></figure><p>Diving deeper into the analytics tools provided by Hotjar, another feature provided is conversion funnels. The objective of conversion funnels is to analyse the conversion process and flag any areas where the user completion of a specific step drops off unexpectedly. The conversion funnel is created by listing a series of pages that the user will access when completing a specific task. Then, Hotjar will provide insights in the form of total sessions on each step. From there, Hotjar will report the percentage of users that complete each stage as well as the entire process as a whole. Hotjar allows the creation of multiple conversion funnels so multiple conversion processes could be analysed at once such as a product checkout process, completing an enquiry form, subscribing to a mailing list etc.</p><p>To summarise, highlighting each stage of the conversion process and analysing the completion rate can uncover issues which cause the user to not complete the process. Uncovering specific areas of concern allows targeted action to be taken against troublesome areas of the process and therefore increase the number of conversions accordingly. Furthermore, the visitor recordings feature mentioned previously can be used in tandem with conversion funnels so that recordings of the attempted conversions can be viewed and analysed at a later date.</p><p>Overall, the conversion funnel is a good start when analysing the conversion process. It can provide some insight into where issues lie and suggest where the process could be improved. However, the analytics provided is fairly basic when compared to more all-encompassing analytics tools, which provide additional insight such as goals and events analysis.</p><h3>Form Analysis</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*Tam_-MpbYC65QF5I.jpg" /></figure><p>Similar to conversion funnels, Hotjar also provides an analytical feature that it calls form analysis. This feature works by analysing the interaction the user has with each form input. Each report lists each of the form inputs and provides a table of data, which breaks down the total number of interactions each input has received. Breaking the form down by each input can highlight issues with specific inputs where users have difficulty and cause the form to be abandoned. Highlighting specific problematic fields allows targeted action to be taken and form conversion to be optimised as a result.</p><p>Furthermore, the report highlights the total amount of time spent on each input. Again, a longer amount of time could suggest an issue with a specific input as perhaps the objective of the field is not clear to the user. Having the form reported back at an input level allows changes to be made to that specific input such as changing the input type, change the input label or updating supporting validation messaging. Finally, the report provides a final form completion figure which totals the number of successful form submissions from the user. The successful conversion figure can be saved when making comparisons in the future to measure the effectiveness of any changes made to the form.</p><p>Overall, the analytical capabilities of the form analysis is a solid start to optimising the conversion process of the forms. That said, the entire analytical insight provided by Hotjar does feel limited compared to more encompassing analytics platforms. Similar to conversion funnels, Hotjar is a useful supplementary analytics tool that should be used with more extensive analytics software.</p><h3>Feedback Tools</h3><p>Feedback is an essential part of the evaluation process and one of the best types available is user feedback. This form of feedback is a method that enables users to directly document their experiences on the website — in their own words. As mentioned previously, understanding the issues that the users face enables changes to be made to the website that addresses the issue directly.</p><p>Hotjar provides user feedback in three primary methods: incoming feedback, opinion polls and surveys. Each method is described in more detail below, however, it is worth noting that each method allows feedback to be gathered effectively and efficiently. The process of providing feedback is guided and simple, meaning the user is likely to provide more detailed feedback. Hotjar then collates the feedback and provides the data in reporting screens, which allows understanding the feedback to be quicker and easier.</p><p><strong>Incoming Feedback</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*gLJcMsmnriDtQwVm.jpg" /></figure><p>One of the methods of user feedback is incoming feedback, which is where the user can report back on any issue that is encountered. They can also provide a screenshot of the specific issue. This form of open-ended feedback is great for uncovering a wide range of issues, as the user is not limited to specific questions or specific areas of the website. Having a wider range of issues uncovered means greater scope for optimising the website as a whole.</p><p>Incoming feedback would best be used on either a smaller website that has a limited number of pages or used on a specific process that has several individual steps. The reason for this is because larger websites may get overwhelmed with a vast array of different problems on different areas of the website, whereas a smaller website can allow more targeted action to be taken against a specific issue. Also, a conversion process with many steps is better suited to incoming feedback as there are more areas where issues could be uncovered and open-ended feedback is more effective in this case.</p><p><strong>Opinion Polls</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*uiebSizUJE4HpF0T.jpg" /></figure><p>Another method of feedback that Hotjar provides is opinion polls. The main feature is that the questions and answers are prewritten and then deployed on a specific area of the website. This predefined approach allows questions to be constructed with a specific issue in mind. Again, it is a targeted action to a specific issue. The answers can be multiple choice, a rating from 1 to 5 etc.</p><p>The main benefit of this approach is that the user can be asked a specific question and insight can be provided to directly address a known issue. In addition, the multiple-choice answers make it easy for users to quickly provide an answer, compared to open-ended questions where users may decide not to fill in the form because of time constraints.</p><p>Multiple polls can be created at one time so that several conversion processes can be monitored at once. Hotjar provides analytics on the feedback received, such as charts and tables, which visualise the answers given by the users. Having a visual aide in this manner allows a complex range of answers to be displayed in a way that is easy to understand and act accordingly.</p><p><strong>Surveys</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*o-eEnK2dyCqw72Tz.jpg" /></figure><p>The final feedback method provided by Hotjar is the surveys feature. Building on the polls features mentioned previously, surveys allow the user to provide feedback on a much broader range of questions. Rather than getting presented with a series of quick-fire questions in the polls, users are encouraged to provide more lengthy responses and provide a more detailed account of experiences on the website. Inline with common form design conventions, the user can get provided with a series of input types such as long and short text inputs, multiple-choice, checkboxes, 1 to 5 rating etc.</p><p>The main benefit of the surveys is that they provide more detailed responses from the user. The additional details can be pivotal in identifying issues on the website and how to solve them. Due to the increase in detail provided by this method of feedback, the average user is not as likely to contribute. However, this form of feedback can be useful when involving specific stakeholders, such as clients, other members of the team or specially selected users. The surveys can be accessed via invitation, which enables specific people to access the survey. As the users can be specially selected, then the user participation can be expected to be more extensive and additional insight can be received.</p><h3>Pricing Plans</h3><p>Hotjar is a freemium tool, meaning that it allows a sample of the tools main features for free. The free version allows 2,000 page views per day, 100 video recordings and data storage for up to a year. The free version also allows access to the polls, incoming and surveys feedback tools and reports. Hotjar allows several websites to run in the same account, so many websites can be tracked simultaneously on the free plan. Above the free tier, there are various pricing options available for personal, business and agency accounts, meaning that Hotjar can be priced to suit specific website requirements and budgets.</p><h3>Conclusion</h3><p>With all Hotjar’s features considered, it is clear that Hotjar is a very powerful tool when it comes to optimising the conversion rate on your website. The key features of heat maps and video recordings break down complicated data sets and present the insights in a clear and accessible manner, which can then inform positive change on the website. Whilst the funnel and form features may lack the in-depth analysis in isolation, the insights provided can supplement a pre-existing 3rd-party analytics tool.</p><p>Hotjar also provides great feedback tools that enable the collection of priceless insight directly from users. The incoming feedback, polls and surveys offer the flexibility of extracting information from a wide range of users in an effective manner. The feedback is especially well organised in the reporting feature Hotjar provides, which makes collating large amounts of feedback as easy and efficient as possible.</p><p>The generous free plan and tiered pricing structure is another benefit, in a long list of gains that Hotjar provides. Whether the user is a seasoned digital veteran or a complete novice and whether the website is brand new or well established, Hotjar can be a priceless tool in maximising user conversion and collating customer feedback.</p><h3>Extra Reading</h3><p><a href="https://www.hotjar.com/tour/">https://www.hotjar.com/tour/</a></p><p>Image credit: HotJar</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=50f644e1fdd5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How To Prepare For The Google Chrome Samesite Cookie Update]]></title>
            <link>https://declan-kay117.medium.com/how-to-prepare-for-the-google-chrome-samesite-cookie-update-ce923cb68b34?source=rss-f2dd6d24828d------2</link>
            <guid isPermaLink="false">https://medium.com/p/ce923cb68b34</guid>
            <category><![CDATA[samesite]]></category>
            <category><![CDATA[cookies]]></category>
            <category><![CDATA[chrome]]></category>
            <dc:creator><![CDATA[Declan Kay]]></dc:creator>
            <pubDate>Wed, 30 Sep 2020 09:52:23 GMT</pubDate>
            <atom:updated>2020-09-30T09:57:48.945Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZRDt3f0I0VrUPqe1WjAYFA.jpeg" /></figure><p>Google is updating the cookie settings for Chrome V80 on the 4th February 2020. The updates could potentially affect cookie-reliant functionality on your website.</p><p>Cookies without adequate preparation won’t work in the Chrome browser, which has 64% of the overall browser market, according to Stacounter.</p><h3>Background Information About Cookies</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*hUzaSfKINLXQ8JqZ.jpg" /></figure><p>Cookies that are set in the browser have several different properties such as Name, Value, Domain, Expiry and Size etc. However, the two properties that we are interested in are SameSite and Secure.</p><p>The SameSite cookie flag is designed to determine what data is getting sent with reach request. At the moment, all cookie data is getting sent per request.</p><p>Hence the security risk as CRSF tokens gets sent with each request. Setting the flag of None, Lax or Strict defines to how accessible you want your cookie values to be.</p><p>For instance:</p><p><strong>Strict:</strong><br>Cookies wouldn’t be shared with any 3rd parties and all the 3rd party cookie requests are nullified. Only the site that sets the cookie can access it; on the same domain e.g. your-website.com.</p><p><strong>Lax:</strong><br>The new default from February, cookies are only set when the domain in the URL of the browser matches the domain of the cookie (1st party cookies) and also <a href="https://publicsuffix.org/list/"><strong>specified subdomains</strong></a> within your domain.</p><p><strong>None:</strong><br>This setting allows you to have 1st Party (cookies from your website) and 3rd party (cookies from any external websites). This is the default before the update on the 4th of February.</p><p>Note there is a slight anomaly with Google Analytics — as they are creating 1st party cookies through a 3rd party script.</p><p>Finally, the Secure attribute should be enabled to ensure cookies are set and sent over HTTPS.</p><h3>What Is The Change?</h3><p>Google first announced in May last year that cookies that do not include the “SameSite=None” and “Secure” labels won’t be accessible by third parties, such as ad tech companies, in Chrome version 80 and beyond.</p><p>In other words, the default setting is changing from None (which allows 3rd party cookies) to Lax (which does not allow 3rd party cookies). All 3rd party cookies must be secure to ensure they are using HTTPS requests.</p><p>The official launch day is February 4th (Tuesday), 2020.</p><h3>Why Is The Change Happening?</h3><p>The use of 3rd party cookies can make websites vulnerable to attacks such as malicious tracking, leaking of sensitive data and are susceptible to cross-site request forgery (CSRF) attacks.</p><p>“In order to move the web ecosystem to a more healthy place, we are changing the default behaviour for when SameSite is not specified to automatically default to a more secure option rather than a less secure option” said a Google spokesperson.</p><p>Mozilla’s Firefox and Microsoft’s Edge say they will also adopt the SameSite=Lax default.</p><h3>What Are The Risks Of Not Acting Now?</h3><p>There are a few scenarios where failure to adhere to the new guidelines could affect your website:</p><p><strong>1 — Single-sign on and Subscription Platforms</strong><br>Companies that use 3rd party cookies for functionality such as membership platforms, subscription management and single sign-on across multiple websites will need to create an alternative solution. This is because the new Chrome update may require users to sign in multiple times, which would be a frustrating experience.</p><p><strong>2 — Frequency Capping</strong><br>Advertisers currently use a cross-domain user ID to manage the number of ads shown across various websites. If access to the 3rd party cookie is no longer available, then we will likely see an increase in consumers getting ads for products that they have already bought.</p><p><strong>3 — Audience Analytics</strong><br>In 2019, Apple shortened the life span of third-party cookies on Safari to seven days after updating its Intelligent Tracking Protection policy. This meant third-party audience analytics software, like Google Analytics, were at risk of having inflated audience numbers.</p><h3>What Do We Need To Do To Prepare?</h3><p>Publishers can begin testing whether their sites are affected by going to chrome://flags and enabling #same-site-by-default-cookies and #cookies-without-same-site-must-be-secure to see whether anything breaks. They should also migrate to HTTPS secure pages if they haven’t done so already.</p><p>Google is encouraging publishers to review the alerts in their developer tools to check whether vendors, including ad tech and analytics providers, are setting or accessing third-party cookies on their sites without the correct labelling.</p><p>For companies who set 1st Party cookies that are used on other domains that they own, the cookies should be updated to follow the new guidelines.</p><p>To view the list of cookies a website has:</p><ul><li>Right-click the page and click Inspect.</li><li>Then click the Application tab.</li><li>Then under Storage &gt; Cookies, select your current domain.</li></ul><p>You can then see a breakdown of all the cookies on your website.</p><p>Please note, that any cookies with the same domain as your website are 1st party cookies and any cookies with a different domain are 3rd party cookies. We want to ensure that all cookies have the SameSite set to either None or Strict and ensure that the Secure attribute is checked.</p><p>Again, any 1st party cookies should have the settings updated to match the guidelines. For 3rd party cookies, please contact the relevant provider to update the settings.</p><p><strong>Google’s response:</strong><br>“With Chrome 80 in February, Chrome will treat cookies that have no declared SameSite value as SameSite=Lax cookies. Only cookies with the SameSite=None; Secure setting will be available for external access, provided they are being accessed from secure connections. The Chrome Platform Status trackers for SameSite=None and Secure will continue to be updated with the latest launch information.”</p><p>“Some providers (including some Google services) will implement the necessary changes in the months leading up to Chrome 80 in February; you may wish to reach out to your partners to confirm their readiness.”</p><p>Google Labs have <a href="https://github.com/GoogleChromeLabs/samesite-examples"><strong>released a fix</strong></a> for 1st Party cookies, where developers can update the cookie settings using a development language of their choice.</p><h3>Final Thoughts</h3><p>The industry is divided as to whether the SameSite update is a precursor to Google tightening wider cookie policy in the future, in a similar vein to Apple’s Intelligent Tracking Prevention and Firefox’s Enhanced Tracking Protection.</p><p>Similarly to when Doubleclick had to update its measurement protocol due to regulation from ITP2 from Apple, the implications for ad campaigns, attribution models (that include post-impression data) and audiences should be minimal, as it is in the best interests of the networks to address the solution on your behalf.</p><p>Some of the rhetoric around the subject online seems to mix up the change present in Chrome 80 with Google’s announcement that they will phase out 3rd party cookies by 2022, which is much bigger because a lot of DMP/DSP/programmatic real-time bidding technology is underpinned by the 3rd party cookie.</p><p>In any case, the new Chrome update will ensure that the user’s data is safer than before and safeguards against cross-site request forgery (CSRF) attacks.</p><p>Chrome already offers users the ability to block third-party cookies and to clear all their cookies. The SameSite change should allow users more nuanced control of their privacy settings as first-and third-party cookies will be more accurately designated — so they can clear ad-tracking cookies but leave their on-site login details and preferences unaffected.</p><h3>Extra Reading</h3><p><a href="https://www.chromium.org/updates/same-site">https://www.chromium.org/updates/same-site</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ce923cb68b34" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Integrate Social Media Content Into Your Website]]></title>
            <link>https://declan-kay117.medium.com/how-to-integrate-social-media-content-into-your-website-a56e546a87fc?source=rss-f2dd6d24828d------2</link>
            <guid isPermaLink="false">https://medium.com/p/a56e546a87fc</guid>
            <category><![CDATA[integration]]></category>
            <category><![CDATA[social]]></category>
            <category><![CDATA[social-media]]></category>
            <category><![CDATA[declan-kay]]></category>
            <category><![CDATA[website]]></category>
            <dc:creator><![CDATA[Declan Kay]]></dc:creator>
            <pubDate>Thu, 14 Nov 2019 18:54:52 GMT</pubDate>
            <atom:updated>2020-02-11T21:10:57.857Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V3BkPUjE_e3xO0cxlKYwUw.jpeg" /></figure><p>Digital marketers quite often will have social media at the heart of their marketing campaigns. Social media is a great way to get your ideas out to a wider audience. One of the best ways to showcase the social presence of a brand is via its website.</p><p>When it comes to integrating your social content onto your website, it is just a case of adding a few social icons to your navigation and you are done, right? Not quite.</p><p>The content of your website and social media accounts can be blended to unify your brand online. Having a seamlessly connected digital presence on social media and your website can increase traffic and improve meaningful interactions you have with customers.</p><p>Here I will discuss how to get your website and social media content working together in the direction of one common goal.</p><h3>Create Social Media Icons</h3><p>As I touched on earlier, one of the most well knows ways of integrating social media onto your website is by including social media icons throughout your website. Whilst it should not be the limit of your social integration, it is a good start.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*BU6waFc0AprkOwiRdeiRtA.jpeg" /></figure><p>Social media icons can be added consistently and subtly throughout your website, to provide users with easy access to your social platforms. Common areas to include social icons are the main navigation bar, footer, contact and product pages. Social icons can also be placed above social content feeds, which I will touch on later. Creative Bloq have ample social media icons on their blog, such as the navigation links shown above.</p><p>You should also note that social icons are most effective when paired with a call to action, such as “connect with us”, which gives the user more context about your intentions. There are several free icon providers out there such as <a href="https://fontawesome.com/"><strong>Font Awesome</strong></a> and <a href="https://iconmonstr.com/"><strong>IconMonster</strong></a> amongst others.</p><h3>Follow and Share Buttons</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*DjW0TCUV0qVZ8HEm.jpg" /></figure><p>Similar to general social icons, the follow and share buttons provide another link for your users to access your social media platforms. Firstly, the “follow” buttons allow the users to get directly invited to follow a page that you manage. As a result, they are signed up to your account and will be able to receive updates in the future.</p><p>The total number of followers that each page has is a good barometer of how successfully each social platform is performing. It is also a good way of understanding which platforms are popular among your users.</p><p>Share buttons allow the user to share the content of your website onto a social platform of their choice. This allows your content to get distributed out to their followers. Allowing customers to share your content can broaden the reach of your brand online and reach new potential customers.</p><p>Share buttons should not be liberally applied to every page, rather it would be more effective to have share buttons in content that is most likely to be shared by your users. Most popular shared content are blog posts, events and product pages. Additionally, sharing functionality can be added to multimedia, such as a video. A good example of this is on Social Media Today, who allow us to share their blog posts onto Twitter, Facebook and LinkedIn.</p><p>Understanding which social platforms are popular with your customers can be useful when choosing which platforms you can share your content on, which I will touch on later on.</p><h3>Social Live Feeds</h3><p>Another key method of social integration is to have a social feed, which inserts content from your social media accounts into your website. The main benefit of having a content feed is that, if the social media profile is regularly updated, it can allow the content of your website to remain fresh and inviting. It is worth noting, that new content is the key to maximising retention of user traffic in the future.</p><p>The best way to integrate social media onto your website is by seamlessly including social content within your existing design. This means it is better to try and include social content using the same colours, fonts, imagery and layouts as the rest of the website. Social media integration is done best when it smoothly fits in with the rest of the website. For this reason, we should try and avoid using a Facebook or Twitter embed, as it is often quite jarring and does not tie in very well with the rest of the site.</p><p>One of the most commonly embedded social content is videos from YouTube or Vimeo. This can be done by copying and pasting the embed code from the relevant platform. Embedding content in this way is useful as it allows visually engaging content to quickly and easily be implemented into your website. The additional benefit is that the servers used by YouTube and Vimeo are better than the standard commonly provided by hosting companies, which therefore allows the deliverance of the videos to be optimised for quick page loading times.</p><p>One of the best ways to implement a social feed is by using a WordPress plugin such as <a href="https://en-gb.wordpress.org/plugins/instagram-feed/"><strong>Instagram Feed</strong></a> by Smash Balloon. The plugin allows the content of your Instagram account to appear on your website. However, it also allows the content to be styled to fit with the rest of your website.</p><p>One of the other ways social content can be integrated into your website is by using an API. An Application Program Interface is when a company opens up access to their raw data, that can be used to build applications or websites. APIs are provided by Facebook, Twitter, Instagram and Google amongst others. The content provided by the API is just raw data, which means it by styled to fit seamlessly in with the rest of the content on the website. Please note you will either need programming experience or the help of a developer to make use of this capability.</p><h3>Open Graph and Twitter Cards</h3><p>Earlier, we discussed the benefits of allowing users to share the content of your website and covered how specific parts of your website can be set up to be shared with potential new customers.</p><p>When our users share content onto their social platforms, we can help maximise its reach by ensuring that the post contains a relevant image and title. A post on social media with an eye-catching image will catch the attention of users and allow it to stand out from the crowd. A good example of this is the Editors music website, as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*IIJyhpJh8GRgGYOa.jpg" /></figure><p>This content can automatically get pulled in when a user posts a link to your website onto their social media, by using the power of OG Tags. The OG (Open Graph) Tags are meta information that can be inserted into the &lt;head&gt; section of a webpage.</p><p>The beauty of OG Tags is that most of the major social media platforms can use them. This means you set them up on your website once, and several social platforms will pull this content automatically. It would be worth finding out what social platforms are popular for your users and making sure the OG Tags are set up to work on that platform. The one notable exception is Twitter, as they require some specific tags of their own, called Twitter Cards.</p><p>The required OG Tags are the following:</p><pre>&lt;meta property=&quot;og:title&quot; content=&quot;Title of the webpage.&quot;&gt;<br>&lt;meta property=&quot;og:description&quot; content=&quot;Description of the webpage.&quot;&gt;<br>&lt;meta property=&quot;og:image&quot; content=&quot;https://your-website.com/thumbnail-image.jpg&quot;&gt;<br>&lt;meta property=&quot;og:url&quot; content=&quot;https://your-website.com/name-of-the-blog-post/&quot;&gt;<br>&lt;meta name=&quot;twitter:card&quot; content=&quot;summary_large_image&quot;&gt;</pre><p>I would highly recommend that the title, description and image is unique for each product page, rather than use a single one size fits all image for all products. The benefit of having a unique image is that it allows the social reach to extend as far as possible when customers share a particular product.</p><h3>User Generated Content</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*1acLkUKVEtssPQkv.jpg" /></figure><p>Another key benefit of social media is the ability to gain access to user-generated content. This can be any content that came from a source that is out with your organisation. One common example of user-generated content is comments. Comments can provide additional information about a service or a product, that could be used for enhancing your organic search presence online. Comments can be added to a website at the bottom of a blog post by using the built-in commenting features of WordPress, or by installing an external plugin such as <a href="https://disqus.com/"><strong>Disqus</strong></a>.</p><p>Another key part of user-generated content is reviews and testimonials. Customers can provide ratings and reviews on social media such as Facebook. The reviews provide credibility as they are unbiased comments from real people who have had success with your product or service. Aside from social media reviews, the contact form of a website can get set up to allow customers to submit reviews. Once collected, reviews can be shown in a specific section of a website. If there are several reviews, it may be suitable to display them in a carousel. A great example of this is the bedroom furniture store, <a href="https://casper.com/uk/en/mattresses/reviews/"><strong>Casper</strong></a>.</p><h3>Links from Social Media to Your Website</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*FJ694GdD75k1LdLq1AtN9w.jpeg" /></figure><p>Most of the points so far in this article are ways to increase the number of links on your website that sends users to your social media. However, providing a seamless experience online for your customers also requires good quality links from your social media accounts to your website. A good starting point would be to make sure you link to each of the main pages of your website. For instance, the main pages that should be given a post on social media would be home, about, services and contact.</p><p>One common link to your website that can be posted to social media is new product pages. When a new product launches, give the new page a boost by posting on social media the name, description for the new product and an image. Social posts are more effective when they have an eye-catching image, so be sure to have OG Tags set up correctly, as I mentioned earlier.</p><p>Other key pages that are great for posting on social media are content that is likely to get shared. One example of this is blog posts, as they often contain content that compels users to share amongst their followers. For instance, a blog post can entertain and/or educate the reader, therefore, will be more inclined to share amongst their followers as a result.</p><h3>Analytics</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*cQgNNAZdUd12qKu4.jpg" /></figure><p>One of the lesser-known tools for social media and website content planning is analytics. Now, analytics does not create new content itself, nor does it integrate social content on your website. However, utilising analytics to the full can enable you to make informed content decisions on social media and your website that are aimed at your target audience. Common analytics tools are <a href="https://analytics.google.com/analytics/web/"><strong>Google Analytics</strong></a> and analytics for specific social media platforms such as Facebook and Twitter.</p><p>The first thing to check on analytics is the demographics of your users. Common information that you can discover is age, gender, location and interests. By having a greater understanding of your audience, you can tailor your content to suit their needs.</p><p>Furthermore, analytics can be useful in determining how users arrive on your website. In particular, analytics can provide a breakdown of the most popular social media platforms within your audience. This can be useful when deciding which platforms you should be active on. It can also be useful when deciding which social icons and share buttons to add, as mentioned previously.</p><p>Finally, another area of analytics that can be useful is user behaviour. For instance, we get to see which time of day that your users are most active on social media. As a result, you can learn when the most effective time is to post content on your social media and therefore maximise the reach of your content. You can also get a traffic breakdown for all your pages, which lets you pinpoint popular content. Having an understanding of popular content informs which type of content you create in the future.</p><h3>Conclusion</h3><p>Overall, social media is a great tool that can be utilised to enable your brand to as many potential customers as possible. When deciding which platforms to create an account on, I would highly recommend that you do some research and evaluate how each platform matches the objectives of your brand. Analytics of your website can also be priceless at this critical stage of selecting social platforms to be active on.</p><p>When taking the steps that I have discussed, you can smoothly blend your social content and your website into one unified space, and provide your customers with a seamless experience online. Therefore, social media and your website are not thought of as two separate entities, rather one unified online space for your customers to discover your brand.</p><h3>Extra Reading</h3><p><a href="https://ogp.me/">https://ogp.me/</a></p><p>Image credit: Web Designer Depot, Social Media Today, Editors Music, Disqus, Creative Bloq, Google Analytics</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a56e546a87fc" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>