<?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 Aye Cofalka on Medium]]></title>
        <description><![CDATA[Stories by Aye Cofalka on Medium]]></description>
        <link>https://medium.com/@ayecofalka?source=rss-ca9274767a6a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ag8q0X_aDqGmKOacawEcLA.png</url>
            <title>Stories by Aye Cofalka on Medium</title>
            <link>https://medium.com/@ayecofalka?source=rss-ca9274767a6a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 23:13:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ayecofalka/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[Building a Microsite Publishing Service with Contentful and AMP.]]></title>
            <link>https://medium.com/jung-von-matt-tech/building-a-microsite-publishing-service-with-contentful-and-amp-dbe392f2f1de?source=rss-ca9274767a6a------2</link>
            <guid isPermaLink="false">https://medium.com/p/dbe392f2f1de</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[marketing]]></category>
            <category><![CDATA[contenful]]></category>
            <category><![CDATA[amp]]></category>
            <category><![CDATA[headless-cms]]></category>
            <dc:creator><![CDATA[Aye Cofalka]]></dc:creator>
            <pubDate>Thu, 08 Aug 2019 11:16:09 GMT</pubDate>
            <atom:updated>2019-08-08T15:04:46.034Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lOgEmSgzbXLJSf_BL8oeqg.png" /></figure><h3>Build what matters</h3><p>As lined out in “<a href="https://medium.com/jung-von-matt-tech/leveraging-amp-and-contentful-for-a-flawless-customer-experience-1cad1b06f2ab">Leveraging AMP and Contentful for a flawless Customer Experience</a>” Marketing needs and IT infrastructure is shifting towards a decoupled architecture to serve different touchpoints and marketeer requirements.</p><p>Software architects and developers need to adapt to those challenges by delivering not only a higher business value but also to manage costs and build future proof systems which are able to cope with new touchpoints and highly accelerated content production pipelines.</p><p>Let’s explore building a part of the previously proposed architecture. As a real-world-use-case marketing content needs to be distributed to be used in different touchpoints to contribute to a flawless customer experience. In this paper we explore in depth how this part of the architecture can be implemented.</p><p>We’ll use <strong>node.js</strong> with <strong>express</strong> as part of our stack, <strong>AMP</strong> (originally an acronym for Accelerated Mobile Pages) for the frontend and <strong>contentful</strong> to serve as our backend-as-a-service.</p><p><a href="https://amp.dev/"><strong>AMP</strong></a> is an open source web component framework and a website publishing technology introduced by Google. <strong>AMP</strong> offers support for building websites, ads, interactive stories and for the creation of interactive emails in the near future.</p><p><a href="https://contentful.com/"><strong>Contentful</strong></a> is a headless CMS, a backend only CMS designed from ground up as an agnostic content repository that exposes content via an API for display on any device and touchpoint.</p><h3>Let’s dive in</h3><p>We’ll build a microsite service with AMP and Contentful. This setup could be part of a larger installment but to simplify things, we just think about a smaller part of the whole IT landscape.</p><h3>Building a content model</h3><p>First thing we need to do is to come up with is a proper content model for our microsites. Let’s say we want build a simple page containing a headline, a copy text and an image to go with it. Also, a call to action might come in handy.</p><p>After registering a plan with Contentful (<a href="https://www.contentful.com/">https://www.contentful.com/</a>) we login and add a content model. For the sake of simplicity, we call it <em>Microsite</em> and hit create. In production, you may want to think a bit longer about choosing this name. A more generic approach for describing this collection of fields might be suitable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*seHJGdXIJYag4969If05xQ.png" /></figure><p>After creating the model we need to add all the fields we planned earlier. We only use the basic types for our project, but there are a lot of specialized types we could leverage for a more sophisticated editing experience. However, we use Short text and Media for this example.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QwngcX3eZ3vfVTk2OtTzcg.png" /></figure><p>Having everything set up we’re good to go to add some content for our microsite. Let’s promote AMP here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TROiou8pqztDiyG9DzSadw.png" /></figure><p>Don’t forget to publish the content, we’ll need to have it available for rendering. If you do like to learn more about Contentful, just head over to the documentation page <a href="https://www.contentful.com/developers/">https://www.contentful.com/developers/</a></p><h3>Setting up the AMP page template</h3><p>We will need an AMP template to render our content. AMP is a collection of web components we could use to build a page many of them with advanced functionalities. But as said, we will keep things simple here.</p><p>We’re are starting off with some AMP code:</p><pre>&lt;!doctype html&gt;<br>&lt;html ⚡&gt;<br>&lt;head&gt;<br>&lt;meta charset=”utf-8&quot;&gt;<br>&lt;script async src=”https://cdn.ampproject.org/v0.js&quot;&gt;&lt;/script&gt;<br>&lt;link rel=”canonical” href=”&lt;%= microsite.url %&gt;”&gt;<br>&lt;meta name=”viewport” content=”width=device-width,minimum-scale=1,initial-scale=1&quot;&gt;</pre><pre>&lt;style amp-boilerplate&gt;body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}&lt;/style&gt;&lt;noscript&gt;&lt;style amp-boilerplate&gt;body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}&lt;/style&gt;&lt;/noscript&gt;</pre><pre>&lt;style amp-custom&gt;body{ margin: 0; padding: 0; font-family: sans-serif; font-size: 16px; color: #fff; background: #000; overflow-x: hidden; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } section{ margin:30px } h1{ font-size: 31px; display: block; color: #45dca5; } a{ margin-top: 30px; font-family: sans-serif; font-size: .9375em; cursor: pointer; background-color: transparent; border: 2px solid #45dca5; display: inline-block; color: #45dca5; padding: 10px 0 7px; box-sizing: border-box; text-transform: uppercase; text-align: center; width: 100%; transition: background-color 0.2s, color 0.2s, font-weight 0.2s; text-decoration: none; transition: background-color 0.2s, color 0.2s, font-weight 0.2s; }a:hover{ font-weight: bold; background-color: #45dca5; color: #000; }&lt;/style&gt;</pre><pre>&lt;title&gt;&lt;%= microsite.title %&gt;&lt;/title&gt;</pre><pre>&lt;/head&gt;</pre><pre>&lt;body&gt;</pre><pre>&lt;! — microsite content →</pre><pre>&lt;section&gt;</pre><pre>&lt;h1&gt;&lt;%= microsite.headline %&gt;&lt;/h1&gt;</pre><pre>&lt;amp-img src=”&lt;%= microsite.image.fields.file.url %&gt;”</pre><pre>width=”1080&quot;</pre><pre>height=”610&quot;</pre><pre>layout=”responsive”&gt;&lt;/amp-img&gt;</pre><pre>&lt;%= microsite.copy %&gt;</pre><pre>&lt;a href=”&lt;%= microsite.linkUrl %&gt;”&gt;&lt;%= microsite.linkText %&gt;&lt;/a&gt;</pre><pre>&lt;/section&gt;</pre><pre>&lt;! — /microsite content →</pre><pre>&lt;/body&gt;</pre><pre>&lt;/html&gt;</pre><p>In this code several noteworthy things are happening, but let’s go through bit by bit.</p><p>The doctype definition, as well as the html attribute (html amp works also) is required.</p><p>Next the runtime needs to be loaded which is done via the script tag in the header. Also, all styles need to be inlined for performance reasons.</p><p>What’s important is that the canonical tag should point to the original HTML site. In our case there is none, so the URL points to itself.</p><p>If you want to learn more about AMP go and check out the project’s comprehensive website <a href="https://amp.dev/">https://amp.dev</a>.</p><p>We’re going to use ejs (<a href="https://ejs.co/">https://ejs.co</a>) as a template engine. To access objects we use the following notation.</p><pre>&lt;%= object.attribute %&gt;</pre><p>We’ll take a look into populating the values with a node.js express app in the next chapter.</p><h3>Gluing it all together</h3><p>We’ll set up a simple express app which will fetch the content and render it. In a real-life-scenario, this could be extended with caching and scaled horizontally or be set up to run as a serverless function.</p><p>To access our microsite, we’ll use the ID of the entry. After retrieving the key and the space ID from contentful (Settings -&gt; API Keys) we need to setup our express app.</p><p>First, we need to install express-generator to scaffold a simple express app with ejs support:</p><pre><em>npm install -g express-generator</em></pre><pre><em>npx express-generator — view=ejs</em></pre><pre><em>npm install — save contentful</em></pre><pre><em>npm start</em></pre><p>With the basic app scaffolded we can open routes/index,js and edit the file.</p><pre>const contentful = require(‘contentful’)</pre><pre>const express = require(‘express’);</pre><pre>const router = express.Router();</pre><pre>const SPACE_ID = ‘the space ID goes here’</pre><pre>const ACCESS_TOKEN = ‘your access token goes here’</pre><pre>/* GET home page. */</pre><pre>router.get(‘/:microsite’, function(req, res, next) {</pre><pre>const client = contentful.createClient({</pre><pre>// This is the space ID. A space is like a project folder in Contentful terms</pre><pre>space: SPACE_ID,</pre><pre>// This is the access token for this space. Normally you get both ID and the token in the Contentful web app</pre><pre>accessToken: ACCESS_TOKEN</pre><pre>})</pre><pre>client.getEntry(req.params.microsite)</pre><pre>.then(function(entry){</pre><pre>res.render(‘index’, {microsite: entry.fields});</pre><pre>res.end();</pre><pre>})</pre><pre>.catch(err =&gt; console.log(err));</pre><pre>});</pre><pre>module.exports = router;</pre><p>After restarting the app we can access the microsite via <a href="http://localhost:3000/Entry-ID">http://localhost:3000/Entry-ID</a>. The Entry ID can be retrieved by clicking the info button on the record in Contentful.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iFTZoxXFLBdMVb7Fk_uTHw.png" /></figure><h3>Conclusion</h3><p>It’s super easy to retrieve content and push it to different touchpoints. The same content could be used on the web to populate a teaser, to fuel an ad or could be integrated in a newsletter. AMP helps to build frontends quickly and make them easily deployable. Contentful can be used to manage all that content in a single place and expose it via a unified API.</p><p>There is no need to anticipate future requirements as new touchpoints can be added without new integration efforts.</p><p>Overall, a quick time to market to connect a new touchpoint can be achieved with a modest effort.</p><h3>JvM/TECH</h3><p>Jung von Matt/TECH is a data-driven and technology focused boutique within the Jung von Matt group. Jung von Matt is — in terms of awards for both creativity and efficiency — the most successful advertising agency group in German-speaking countries. The agency helps their clients and partners to be digital pioneers by using technology plus data to develop digital platforms, products and services that create momentum. Jung von Matt was founded in Hamburg in 1991 and today, 27 years later, acts as a non-listed corporation with agencies in Germany, Austria, Switzerland, Sweden, Poland, the Czech Republic and China. There are many big names amongst their list of customers such as adidas, BMW, Deutsche Post, DFB, Edeka, Faz, innogy</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dbe392f2f1de" width="1" height="1" alt=""><hr><p><a href="https://medium.com/jung-von-matt-tech/building-a-microsite-publishing-service-with-contentful-and-amp-dbe392f2f1de">Building a Microsite Publishing Service with Contentful and AMP.</a> was originally published in <a href="https://medium.com/jung-von-matt-tech">Jung von Matt TECH</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Leveraging AMP and Contentful for a flawless Customer Experience.]]></title>
            <link>https://medium.com/jung-von-matt-tech/leveraging-amp-and-contentful-for-a-flawless-customer-experience-1cad1b06f2ab?source=rss-ca9274767a6a------2</link>
            <guid isPermaLink="false">https://medium.com/p/1cad1b06f2ab</guid>
            <category><![CDATA[amp]]></category>
            <category><![CDATA[marketing]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[headless-cms]]></category>
            <dc:creator><![CDATA[Aye Cofalka]]></dc:creator>
            <pubDate>Thu, 08 Aug 2019 10:52:28 GMT</pubDate>
            <atom:updated>2019-08-12T07:48:27.707Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AR2SQEm_f5fHk0EkvbpuIw.png" /></figure><h3>Build what matters</h3><p>In today’s world of integrated communication through different channels and the universal demand of a frictionless customer experience (CX) IT architectures are shifting from monoliths to loosely coupled services. The demand of distributing an organizations content through different touchpoints rises, as marketers need more personalized content for more touchpoints in higher frequencies to fulfill the promise of a flawless CX.</p><p>Software architects need to adapt to those challenges by delivering not only a higher business value but also to manage costs and build future proof systems which are able to cope with new touchpoints and highly accelerated content production pipelines.</p><p>Traditionally, an Enterprise CMS forms the backbone of most marketing infrastructures. Webward facing, it deals with publishing content to HTML pages and does a decent job when content needs to be translated and rolled out on a web site. However, new touchpoints besides the web presence emerge rapidly but the content is mostly locked to the Web. But nowadays content demand comes from landing pages, AMP versions of web pages, apps, newsletter cycles and flights, ads and a fragmented landscape of devices ranging from POS infrastructure to watches. Even traditional corporate publishing is introduced to today’s marketing toolset with the same demand for fresh content.</p><p>All of these touchpoints are now hard to integrate with a traditional CMS due to it’s very nature as a system designed for building web pages. So, thinking of content as a service might be a solution to overcome this dilemma. To face these challenges and better integrate with the new marketing toolset and IT architecture a new breed of CMS emerged: The headless CMS.</p><h3>Contentful</h3><p>A headless CMS, is a backend only CMS designed from ground up as an agnostic content repository that exposes content via an API for display on any device and touchpoint. From here, the leap to a full fledged enterprise content infrastructure is just a short one, but probably mission critical.</p><p>The introduction of c<strong>ontent infrastructure</strong> is taking the idea of decoupling even one step further. This is achieved by introducing a truly presentation agnostic content model. This approach solves the problem that in traditional CMS systems content is organized around page-like structures which is not helpful when thinking in multi-device touchpoint delivery. By leveraging a content infrastructure, content can be distributed in very granular structures just right for the consuming touchpoint.The most prominent and powerful commercial headless CMS which supports content infrastructure out of the box is <a href="https://contentful.com/"><strong>Contentful</strong></a>, which is used as a reference in this article.</p><h3>AMP</h3><p>But it’s not done with just fixing the pipelines. To deliver a compelling CX through all touchpoints several factors need to be considered.</p><p>First, performance is a key factor to drive conversion and to improve CX over all touchpoints. Secondly, not being forced to reinvent the wheel every time a new requirement to deliver content is coming up, is mission critical.</p><p>Last but not least, leveraging a similar technology for all touchpoints for delivering content will help to speed up development and significantly lower time to market.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*94KgZm02J4o_i80nVy_NeQ.jpeg" /><figcaption>Logo of the AMP project</figcaption></figure><p>This is where <strong>AMP</strong> shines. <strong>AMP</strong> (originally an acronym for Accelerated Mobile Pages) is an open source web component framework and a website publishing technology emphasized by Google. <strong>AMP</strong> offers support for building websites, ads, interactive stories and for the creation of interactive emails in the near future. Also, it’s supported by Microsoft Bing and Twitter as cached content. <strong>AMP</strong> is basically a collection of pre-build components which can be used as individually styled building blocks, will render blazingly fast and as a bonus will be pre-cached by Google’s CDN and other services like Twitter which support AMP. You can learn more about AMP at <a href="https://amp.dev/">amp.dev</a>.</p><h3>The system landscape</h3><p>Let’s take a closer look at the overall system landscape and all the systems which might be involved with a focus on our proposed marketing content pipeline.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/742/1*0XQteGxeCvB__4CO5CMpag.png" /></figure><p>In this sketch Contentful serves as the central provider and single source of truth for content distribution. Once content is published, the API can either notify other systems via a webhook (push) or serve the content on request (pull).</p><p>All 3rd party systems might access content via a common API, all business logic (e.g. filtering for content they might specifically need) is implemented on the consumer side.</p><h3>Conclusion</h3><p>With having an API driven system as the central part of the content pipeline, touchpoints can be integrated via a common API with keeping their own business logic. Adding and dropping touchpoints is easy, as all systems are loosely coupled and have zero dependencies on each other. Maintaining or upgrading of parts of the landscape is much easier compared to a monolith approach.</p><p>But the biggest plus here is that all touchpoints depend on a single source of truth. All content is managed and published in one system.</p><p>There is also no need to anticipate future requirements as new touchpoints can be added without integration efforts.</p><p>Overall, a quick time to market to connect a new touchpoint can be achieved with a modest effort. By implementing this stack, marketers and IT managers have a powerful toolset at hand to overcome the rapidly increasing challenge of coping with integration and maintaining a constantly growing device and touchpoint landscape.</p><h3>JvM/TECH</h3><p>Jung von Matt/TECH is a data-driven and technology focused boutique within the Jung von Matt group. Jung von Matt is — in terms of awards for both creativity and efficiency — the most successful advertising agency group in German-speaking countries. The agency helps their clients and partners to be digital pioneers by using technology plus data to develop digital platforms, products and services that create momentum. Jung von Matt was founded in Hamburg in 1991 and today, 27 years later, acts as a non-listed corporation with agencies in Germany, Austria, Switzerland, Sweden, Poland, the Czech Republic and China. There are many big names amongst their list of customers such as adidas, BMW, Deutsche Post, DFB, Edeka, FAZ, innogy, MINI, Nikon, Nivea, Otto, Sixt, Sparkasse, tipico and Vodafone.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1cad1b06f2ab" width="1" height="1" alt=""><hr><p><a href="https://medium.com/jung-von-matt-tech/leveraging-amp-and-contentful-for-a-flawless-customer-experience-1cad1b06f2ab">Leveraging AMP and Contentful for a flawless Customer Experience.</a> was originally published in <a href="https://medium.com/jung-von-matt-tech">Jung von Matt TECH</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>