<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0" xml:base="http://online-behavior.com">
<channel>
 <title>Online Behavior - Marketing Measurement &amp; Optimization</title>
 <link>http://online-behavior.com</link>
 <description>A source of knowledge for professionals looking to understand how their online customers behave.</description>
 <language>en</language>
<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/Online-Behavior" /><feedburner:info uri="online-behavior" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.0/</creativeCommons:license><image><link>http://online-behavior.com</link><url>http://online-behavior.com/sites/default/files/imagecache/Content/articles/onlinebehavior.jpg</url><title>Online Behavior</title></image><feedburner:emailServiceId>Online-Behavior</feedburner:emailServiceId><feedburner:feedburnerHostname>https://feedburner.google.com</feedburner:feedburnerHostname><feedburner:feedFlare href="https://add.my.yahoo.com/rss?url=http%3A%2F%2Ffeeds.feedburner.com%2FOnline-Behavior" src="http://us.i1.yimg.com/us.yimg.com/i/us/my/addtomyyahoo4.gif">Subscribe with My Yahoo!</feedburner:feedFlare><feedburner:feedFlare href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2FOnline-Behavior" src="http://www.newsgator.com/images/ngsub1.gif">Subscribe with NewsGator</feedburner:feedFlare><feedburner:feedFlare href="http://feeds.my.aol.com/add.jsp?url=http%3A%2F%2Ffeeds.feedburner.com%2FOnline-Behavior" src="http://o.aolcdn.com/favorites.my.aol.com/webmaster/ffclient/webroot/locale/en-US/images/myAOLButtonSmall.gif">Subscribe with My AOL</feedburner:feedFlare><feedburner:feedFlare href="http://www.bloglines.com/sub/http://feeds.feedburner.com/Online-Behavior" src="http://www.bloglines.com/images/sub_modern11.gif">Subscribe with Bloglines</feedburner:feedFlare><feedburner:feedFlare href="http://www.netvibes.com/subscribe.php?url=http%3A%2F%2Ffeeds.feedburner.com%2FOnline-Behavior" src="//www.netvibes.com/img/add2netvibes.gif">Subscribe with Netvibes</feedburner:feedFlare><feedburner:feedFlare href="http://fusion.google.com/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2FOnline-Behavior" src="http://buttons.googlesyndication.com/fusion/add.gif">Subscribe with Google</feedburner:feedFlare><feedburner:feedFlare href="http://www.pageflakes.com/subscribe.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2FOnline-Behavior" src="http://www.pageflakes.com/ImageFile.ashx?instanceId=Static_4&amp;fileName=ATP_blu_91x17.gif">Subscribe with Pageflakes</feedburner:feedFlare><feedburner:feedFlare href="http://www.plusmo.com/add?url=http%3A%2F%2Ffeeds.feedburner.com%2FOnline-Behavior" src="http://plusmo.com/res/graphics/fbplusmo.gif">Subscribe with Plusmo</feedburner:feedFlare><feedburner:feedFlare href="http://www.thefreedictionary.com/_/hp/AddRSS.aspx?http%3A%2F%2Ffeeds.feedburner.com%2FOnline-Behavior" src="http://img.tfd.com/hp/addToTheFreeDictionary.gif">Subscribe with The Free Dictionary</feedburner:feedFlare><feedburner:feedFlare href="http://www.bitty.com/manual/?contenttype=rssfeed&amp;contentvalue=http%3A%2F%2Ffeeds.feedburner.com%2FOnline-Behavior" src="http://www.bitty.com/img/bittychicklet_91x17.gif">Subscribe with Bitty Browser</feedburner:feedFlare><feedburner:feedFlare href="http://www.live.com/?add=http%3A%2F%2Ffeeds.feedburner.com%2FOnline-Behavior" src="http://tkfiles.storage.msn.com/x1piYkpqHC_35nIp1gLE68-wvzLZO8iXl_JMledmJQXP-XTBOLfmQv4zhj4MhcWEJh_GtoBIiAl1Mjh-ndp9k47If7hTaFno0mxW9_i3p_5qQw">Subscribe with Live.com</feedburner:feedFlare><feedburner:feedFlare href="http://mix.excite.eu/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2FOnline-Behavior" src="http://image.excite.co.uk/mix/addtomix.gif">Subscribe with Excite MIX</feedburner:feedFlare><feedburner:feedFlare href="http://www.webwag.com/wwgthis.php?url=http%3A%2F%2Ffeeds.feedburner.com%2FOnline-Behavior" src="http://www.webwag.com/images/wwgthis.gif">Subscribe with Webwag</feedburner:feedFlare><feedburner:feedFlare href="http://www.podcastready.com/oneclick_bookmark.php?url=http%3A%2F%2Ffeeds.feedburner.com%2FOnline-Behavior" src="http://www.podcastready.com/images/podcastready_button.gif">Subscribe with Podcast Ready</feedburner:feedFlare><feedburner:feedFlare href="http://www.wikio.com/subscribe?url=http%3A%2F%2Ffeeds.feedburner.com%2FOnline-Behavior" src="http://www.wikio.com/shared/img/add2wikio.gif">Subscribe with Wikio</feedburner:feedFlare><feedburner:feedFlare href="http://www.dailyrotation.com/index.php?feed=http%3A%2F%2Ffeeds.feedburner.com%2FOnline-Behavior" src="http://www.dailyrotation.com/rss-dr2.gif">Subscribe with Daily Rotation</feedburner:feedFlare><feedburner:browserFriendly>You are awesome! Thanks for subscribing to Online Behavior. We hope you will find tons of insights in our posts.</feedburner:browserFriendly><item>
 <title>"Statistics are no substitute for judgement"</title>
 <link>http://feedproxy.google.com/~r/Online-Behavior/~3/k3djAgteFlE/statistics-judgement</link>
 <description>&lt;div class="field field-type-text field-field-ca-author"&gt;
    &lt;div class="field-items"&gt;
            &lt;div class="field-item odd"&gt;
                    LOR        &lt;/div&gt;
        &lt;/div&gt;
&lt;/div&gt;
&lt;div class="field field-type-filefield field-field-ca-image"&gt;
    &lt;div class="field-items"&gt;
            &lt;div class="field-item odd"&gt;
                    &lt;a href="/cartoons/statistics-judgement" class="imagefield imagefield-nodelink imagefield-field_ca_image"&gt;&lt;img  class="imagefield imagefield-field_ca_image" width="800" height="582" title="&amp;quot;Statistics are no substitute for judgement&amp;quot;" alt="&amp;quot;Statistics are no substitute for judgement&amp;quot;" src="http://online-behavior.com/sites/default/files/image_field/ca_image/statistics-judgement.jpg?1499340979" /&gt;&lt;/a&gt;        &lt;/div&gt;
        &lt;/div&gt;
&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/Online-Behavior?a=k3djAgteFlE:Gm1m6vxEc2Y:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Online-Behavior?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Online-Behavior?a=k3djAgteFlE:Gm1m6vxEc2Y:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Online-Behavior?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Online-Behavior?a=k3djAgteFlE:Gm1m6vxEc2Y:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Online-Behavior?i=k3djAgteFlE:Gm1m6vxEc2Y:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Online-Behavior/~4/k3djAgteFlE" height="1" width="1" alt=""/&gt;</description>
 <pubDate>Thu, 06 Jul 2017 11:36:19 +0000</pubDate>
 <dc:creator>LOR</dc:creator>
 <guid isPermaLink="false">721 at http://online-behavior.com</guid>
<feedburner:origLink>http://online-behavior.com/cartoons/statistics-judgement</feedburner:origLink></item>
<item>
 <title>Revamping Your App Analytics Workflows</title>
 <link>http://feedproxy.google.com/~r/Online-Behavior/~3/DhA_yVn8U3Y/app-workflows</link>
 <description>&lt;a href="/analytics/app-workflows" class="imagefield imagefield-nodelink imagefield-field_thumbnail"&gt;&lt;img  class="imagefield imagefield-field_thumbnail" width="450" height="300" title="Revamping Your App Analytics Workflows" alt="Revamping Your App Analytics Workflows" src="http://online-behavior.com/sites/default/files/thumbnails/Revamping-App-Analytics-Workflows.png?1498470963" /&gt;&lt;/a&gt;&lt;p&gt;Every mobile app professional today uses mobile app analytics to track their app. Yet there are some key elements in their analytics workflows that are naturally flawed. The solution is out there, and you might have missed it.&lt;/p&gt;
&lt;p&gt;The flaw, and a fairly big one at that, is in the fact that app analytics pros sometimes focus solely on quantitative analytics to optimize their apps. Don't take this the wrong way – quantitative analytics is a very important part of app optimization. It can tell you if people are leaving your app too soon; if they're not completing the signup process, how often users launch your app, and things like that. However, it won't give you the answer as to why people are doing it, or why certain unwanted things are happening in your app. And that's the general flaw.&lt;/p&gt;
&lt;p&gt;The answer lies in expanding your arsenal – adding &lt;a href="https://www.appsee.com/ebooks/qualitative-guide" target="_blank"&gt;qualitative analytics&lt;/a&gt; to your workflow. Together with quantitative analytics, these tools can help you form a complete picture of your app and its users, identify the main pain points and user experience friction, helping you optimize your app and deliver the ultimate product.&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;So today, you are going to learn how to totally revamp your analytics workflow using qualitative analytics, and why you should do it in the first place. You'll read about the fundamentals of qualitative analytics, and how it improves one's analysis accuracy, troubleshooting and overall workflows. And finally, you'll find two main ways to use qualitative analytics which can help you turn your app(s) into mobile powerhouse.&lt;/p&gt;&lt;/blockquote&gt;
&lt;h2&gt;Exploring the qualitative&lt;/h2&gt;
&lt;p&gt;Qualitative analytics can be split into two main features: heatmaps and user session recordings. Let's dig a little deeper to see what they do.&lt;/p&gt;
&lt;h3&gt;Touch heatmaps&lt;/h3&gt;
&lt;p&gt;&lt;img src="/sites/default/files/imagecache/Content/articles/touch-heatmaps.png" alt="Touch heatmaps" title="Touch heatmaps" class="imagecache-Content" /&gt;&lt;/p&gt;
&lt;p&gt;This tool gathers all of the gestures a user does in every screen of the app, like tapping, double-tapping, or swiping. It then aggregates these interactions to create a visual touch heatmap. This allows app pros to quickly and easily see where the majority of users are actually interacting with the app, as well as which parts of an app are being left out.&lt;/p&gt;
&lt;p&gt;Another important advantage of touch heatmaps is the ability to see where users are trying to interact, without the app responding. These are called unresponsive gestures, and they are extremely important because they're very annoying and could severely hurt the user experience.&lt;/p&gt;
&lt;p&gt;Unresponsive gestures can be an indication of a bug or a flaw in the design of your user interface. Also, it could show you how your users think they should move through the app. As you might imagine, being bug-free and intuitive are two very important parts of a successful app, which is why tackling unresponsive gestures can make a huge difference in your app analytics workflow.  &lt;/p&gt;
&lt;h3&gt;User session recordings&lt;/h3&gt;
&lt;p&gt;&lt;img src="/sites/default/files/imagecache/Content/articles/user-recording_0.png" alt="User session recordings" title="User session recordings" class="imagecache-Content" /&gt;&lt;/p&gt;
&lt;p&gt;User session recordings are a fundamental feature of qualitative app analytics. They allow app pros to see just what their users are doing, as they are progressing through the app. That means every interaction, every sequence of events, on every screen in the app, gets recorded. This allows app pros an unbiased, unaltered view of the user experience.&lt;/p&gt;
&lt;p&gt;With such a tool, you'll be able to better understand why users sometimes abandon an app too soon, why they decide to use it once and never again, or even why the app crashes on a particular platform or device.&lt;/p&gt;
&lt;p&gt;Through video recordings, it becomes much easier to get to the very core of any problem your app might be experiencing. A single recording can shine light on a problem many users are struggling with. Obviously, the tool doesn't just mindlessly record everything – app pros can choose different screens, different demographics, mobile devices or their operating systems to record from. It is also important for this tool to work quietly in the background and not leave a strain on the app's performance.&lt;/p&gt;
&lt;h2&gt;Standard workflows- totally revamped&lt;/h2&gt;
&lt;p&gt;&lt;img src="/sites/default/files/imagecache/Content/articles/app-analytics-workflows.png" alt="App Analytics Workflows" title="App Analytics Workflows" class="imagecache-Content" /&gt;&lt;/p&gt;
&lt;p&gt;Qualitative analytics is too big of a field to be covered in a single article. Those looking to learn more might as well take a free course via &lt;a href="https://courses.appsee.com/qualitative101/" target="_blank"&gt;this link&lt;/a&gt;. For all others, it's time to discuss two main workflows where they can be used - ‘Data-fueled Optimization' and ‘Proactive Troubleshooting'.&lt;/p&gt;
&lt;h3&gt;Data-fueled optimization&lt;/h3&gt;
&lt;p&gt;Both qualitative analytics and quantitative analytics tools are 'attacking' the same problem from different angles. While both are tasked with helping app pros optimize their mobile products, they have different, even opposite approaches to the solution. That makes them an insanely powerful combo, when used together.&lt;/p&gt;
&lt;p&gt;Employing inherently opposite systems to tackle the same problem at the same time helps app pros form a complete picture of their app and how it behaves 'in the wild'. While quantitative analytics can be used as an alarm system, notifying app pros to a condition or a problem, qualitative analytics can be used to analyze the problem more thoroughly.&lt;/p&gt;
&lt;p&gt;For example, using quantitative analytics tools you are alerted to the fact that a third of your visitors abandon their shopping cart just before making a purchase. You identify it as a problem, but cannot answer the question as to why this is happening.&lt;/p&gt;
&lt;p&gt;With tools like user session recordings, you can streamline your optimization workflow and learn exactly where the problem lies. You could try to fix a problem without insights from qualitative data, but you'll essentially be "&lt;a href="https://www.quora.com/What-is-the-size-of-the-mobile-analytics-market" target="_blank"&gt;blindly taking a stab&lt;/a&gt;".&lt;/p&gt;
&lt;p&gt;By watching a few user session recordings, you realize that the required registration process prior to making a purchase is simply too long. Users come halfway through it and just quit. By shortening the registration process and making checkout faster, you can lower the abandonment rate. Alert, investigate, resolve. This flow can easily become your "lather, rinse, repeat."&lt;/p&gt;
&lt;h3&gt;Proactive Troubleshooting&lt;/h3&gt;
&lt;p&gt;Can you truly be proactive in your troubleshooting? Especially when using analytics? Well, if you rely solely on quantitative analytics, probably not. After all, you need a certain amount of users to actually be using the app for some time before you can get any numbers out, like app abandonment rates or crash rates. Only then will you be able to do anything, and at that point – you're only reacting to a problem already present. With qualitative analytics, that's not the case.&lt;br /&gt;
By watching real user session recordings and keeping an eye out on touch heatmaps, you can spot issues with your app's usability or user experience long before a bigger issue arises, therefore proactively troubleshooting any problems.&lt;/p&gt;
&lt;p&gt;For example, by watching user session recordings you notice that people are trying to log into Twitter through your app and post a tweet. However, as soon as they try to log in, the app crashes. Some users decide to quit the app altogether. Spotting such an issue helps you fix your app before it witnesses a bigger fallout in new user retention.&lt;/p&gt;
&lt;p&gt;Not being proactive about looking for bugs and crashes doesn't mean they won't happen – it means they might go longer unattended. By the time you spot them through quantitative analytics, they will have already hurt your user experience and probably pushed a few users your competitor's way.&lt;/p&gt;
&lt;h2&gt;Wrap-up&lt;/h2&gt;
&lt;p&gt;They say new ideas are nothing more than old ideas with a fresh twist, and if that's true, than qualitative analytics are the ‘fresh twist' of mobile app analytics. Combining quantitative and qualitative analytics  is a simple process that has incredible potency in terms of your workflows and app optimization. Plus, when you understand the reasons behind the numbers on your app, you are able to make crucial decisions with more confidence.&lt;/p&gt;
&lt;div class="field field-type-filefield field-field-image"&gt;
      &lt;div class="field-label"&gt;image&amp;nbsp;&lt;/div&gt;
    &lt;div class="field-items"&gt;
            &lt;div class="field-item odd"&gt;
                    &lt;img  class="imagefield imagefield-field_image" width="650" height="650" title="Touch heatmaps" alt="Touch heatmaps" src="http://online-behavior.com/sites/default/files/articles/touch-heatmaps.png?1498470963" /&gt;        &lt;/div&gt;
              &lt;div class="field-item even"&gt;
                    &lt;img  class="imagefield imagefield-field_image" width="650" height="650" title="Online Behavior" alt="Online Behavior" src="http://online-behavior.com/sites/default/files/articles/user-recording_0.png?1498470963" /&gt;        &lt;/div&gt;
              &lt;div class="field-item odd"&gt;
                    &lt;img  class="imagefield imagefield-field_image" width="470" height="337" title="App Analytics Workflows" alt="App Analytics Workflows" src="http://online-behavior.com/sites/default/files/articles/app-analytics-workflows.png?1498470963" /&gt;        &lt;/div&gt;
        &lt;/div&gt;
&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/Online-Behavior?a=DhA_yVn8U3Y:urPXAARZhSI:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Online-Behavior?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Online-Behavior?a=DhA_yVn8U3Y:urPXAARZhSI:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Online-Behavior?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Online-Behavior?a=DhA_yVn8U3Y:urPXAARZhSI:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Online-Behavior?i=DhA_yVn8U3Y:urPXAARZhSI:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Online-Behavior/~4/DhA_yVn8U3Y" height="1" width="1" alt=""/&gt;</description>
 <category domain="http://online-behavior.com/tag/analytics-articles">Analytics Articles</category>
 <category domain="http://online-behavior.com/tag/articles">Articles</category>
 <category domain="http://online-behavior.com/tag/marketing-measurement">Marketing Measurement</category>
 <category domain="http://online-behavior.com/tag/marketing-optimization">Marketing Optimization</category>
 <pubDate>Mon, 19 Jun 2017 09:45:26 +0000</pubDate>
 <dc:creator>Hannah Levenson</dc:creator>
 <guid isPermaLink="false">720 at http://online-behavior.com</guid>
<feedburner:origLink>http://online-behavior.com/analytics/app-workflows</feedburner:origLink></item>
<item>
 <title>150 Years of Marriages and Divorces in the UK</title>
 <link>http://feedproxy.google.com/~r/Online-Behavior/~3/djgYR000v8I/marriages</link>
 <description>&lt;a href="/analytics/marriages" class="imagefield imagefield-nodelink imagefield-field_thumbnail"&gt;&lt;img  class="imagefield imagefield-field_thumbnail" width="450" height="300" title="Marriage and Divorce Trends" alt="Marriage and Divorce Trends" src="http://online-behavior.com/sites/default/files/thumbnails/marriage-divorce-trends_0.png?1497349543" /&gt;&lt;/a&gt;&lt;p&gt;Have you ever wondered how divorce and marriage rates have trended over the last 150 years? Or what reasons husbands and wives give when getting a divorce? Fortunately these, and other questions, can be answered with data. The UK Office for National Statistics make available two extremely interesting and rich datasets on &lt;a href="https://www.ons.gov.uk/peoplepopulationandcommunity/birthsdeathsandmarriages/marriagecohabitationandcivilpartnerships/datasets/numberofmarriagesmarriageratesandperiodofoccurrence" target="_blank"&gt;marriages&lt;/a&gt; and &lt;a href="https://www.ons.gov.uk/peoplepopulationandcommunity/birthsdeathsandmarriages/divorce/datasets/divorcesinenglandandwalesnumberofdivorcesageatdivorceandmaritalstatusbeforemarriage" target="_blank"&gt;divorces&lt;/a&gt;, providing data for the last 150 years. &lt;/p&gt;
&lt;p&gt;Following the discovery of these datasets, I decided to uncover trends and patterns in the numbers, working with my colleague &lt;strong&gt;&lt;a href="https://www.linkedin.com/in/lizzie-silvey-131abb51/" target="_blank"&gt;Lizzie Silvey&lt;/a&gt;&lt;/strong&gt;. Two important questions were in our minds when exploring the data:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Who wants a divorce and why?&lt;/li&gt;
&lt;li&gt;How do wars and the law impact marriage and divorce rates in the UK?&lt;/li&gt;
&lt;/ol&gt;
&lt;blockquote&gt;&lt;p&gt;We discuss our findings in this article, but you can also drill down into the data using &lt;a href="https://datastudio.google.com/open/0B-rCydtEraEOaHNOeWt0cTBqb1E" target="_blank"&gt;this interactive visualization&lt;/a&gt; that we created using Google Data Studio.&lt;/p&gt;&lt;/blockquote&gt;
&lt;h2&gt;Divorce petitioners and their reasons&lt;/h2&gt;
&lt;p&gt;The ratio of petitioners has been stable since around 1974 (70% women and 30% men), the time at which both genders started having the same rights and divorce could be attained more easily.&lt;/p&gt;
&lt;p&gt;In the charts below we see the trends for 'Adultery' and 'Unreasonable behaviour', the two most common reasons provided (out of &lt;a href="https://www.gov.uk/divorce/grounds-for-divorce" target="_blank"&gt;five possible&lt;/a&gt;) - each line shows the number of divorces granted to the husband or wife for a specific reason.&lt;/p&gt;
&lt;p&gt;&lt;img src="/sites/default/files/imagecache/Content/articles/adultery-uk.png" alt="Divorce reasons UK" title="Divorce reasons UK" class="imagecache-Content" /&gt;&lt;/p&gt;
&lt;p&gt;In order to use Adultery grounds the petitioner must prove that the partner had sexual intercourse with someone else, which might not be simple. We can see in the chart that Adultery follows the exact same pattern for husbands and wives, but analyzing the statistics further we see that, on average, 40% of the adultery divorces are granted to husbands - since only 30% of total divorces are petitioned by husbands, it seems adultery is a particularly strong reason for men to file for a divorce.&lt;/p&gt;
&lt;p&gt;The second chart, showing 'Unreasonable behaviour', is more enigmatic. While husbands were granted divorces in an increasing pace for behavioural reasons, and while the lines seem to be converging, there is a strange hump in the wives line. Why were wives granted a massive amount of divorces up to 1992 based on unreasonable behaviour? Could that be related to a “backlog” of cases of domestic violence (classified as a behavioural reason) that came to light after women could divorce based on those grounds more easily? Unfortunately we could not find data showing possible reasons for that.&lt;/p&gt;
&lt;h2&gt;The impact of laws &amp;amp; wars on marriage and divorces&lt;/h2&gt;
&lt;p&gt;When looking at the marriage and divorce trends since 1862, there were a few clear turning points. &lt;/p&gt;
&lt;p&gt;&lt;img src="/sites/default/files/imagecache/Content/articles/uk-marriages-divorces.png" alt="UK Marriage Divorce rates" title="UK Marriage Divorce rates" class="imagecache-Content" /&gt;&lt;/p&gt;
&lt;p&gt;The wars seemed to affect marriages quite significantly. Around the beginning of World War I &amp;amp; II we see spikes in marriages, maybe as a result of young men wanting to vow their love before going to fight. Then, during the wars, the marriages plunged as soldiers went away, and up again when they came back home. &lt;/p&gt;
&lt;p&gt;As for divorces influenced by the wars, we can only look at World War II, as women had a limited ability to divorce after World War I. It seems the &lt;a href="https://en.wikipedia.org/wiki/Matrimonial_Causes_Act_1937" target="_blank"&gt;Matrimonial Causes Act 1937&lt;/a&gt;, which made other grounds legal (e.g. drunkenness and insanity), coupled with premature weddings (discussed above) and possibly a estrangement due to separation led to a spike in divorces starting in 1946 - &lt;em&gt;who would have the heart to divorce in war times?&lt;/em&gt; &lt;/p&gt;
&lt;p&gt;But what seems to be the strongest influence in divorces in the history of the UK is the Divorce Reform Act 1969 (&lt;a href="http://www.legislation.gov.uk/ukpga/1969/55/pdfs/ukpga_19690055_en.pdf" target="_blank"&gt;link to PDF&lt;/a&gt;), which came into effect in 1971. This act states that divorce can be granted on the grounds that the marriage has irretrievably broken down, and it is not essential for either partner to prove an offense. While that explains the strong increase in divorce, we could not find a strong reason for the decline in marriages at the same time - we invite possible explanations in the comments section.&lt;/p&gt;
&lt;h2&gt;Closing Thoughts&lt;/h2&gt;
&lt;p&gt;While we couldn't bring answers as to why trends are going in a certain direction and predict upcoming changes, we believe that the data can shed new light into the British society and family relations. Hopefully with new releases of data in the future we will also be able to dive deeper and answer more existential questions.&lt;/p&gt;
&lt;p&gt;If you are interested in exploring the data further, check &lt;a href="https://datastudio.google.com/open/0B-rCydtEraEOaHNOeWt0cTBqb1E" target="_blank"&gt;the interactive visualization&lt;/a&gt;, created with Google Data Studio, you will find more context and charts showing trends and pattern on marriage and divorce in the UK.&lt;/p&gt;
&lt;div class="field field-type-filefield field-field-image"&gt;
      &lt;div class="field-label"&gt;image&amp;nbsp;&lt;/div&gt;
    &lt;div class="field-items"&gt;
            &lt;div class="field-item odd"&gt;
                    &lt;img  class="imagefield imagefield-field_image" width="841" height="439" title="Divorce reasons UK" alt="Divorce reasons UK" src="http://online-behavior.com/sites/default/files/articles/adultery-uk.png?1497349543" /&gt;        &lt;/div&gt;
              &lt;div class="field-item even"&gt;
                    &lt;img  class="imagefield imagefield-field_image" width="1322" height="605" title="Online Behavior" alt="Online Behavioriage Divorce rates" src="http://online-behavior.com/sites/default/files/articles/uk-marriages-divorces.png?1497349543" /&gt;        &lt;/div&gt;
        &lt;/div&gt;
&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/Online-Behavior?a=djgYR000v8I:FlvKYgSTAxg:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Online-Behavior?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Online-Behavior?a=djgYR000v8I:FlvKYgSTAxg:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Online-Behavior?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Online-Behavior?a=djgYR000v8I:FlvKYgSTAxg:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Online-Behavior?i=djgYR000v8I:FlvKYgSTAxg:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Online-Behavior/~4/djgYR000v8I" height="1" width="1" alt=""/&gt;</description>
 <category domain="http://online-behavior.com/tag/analytics-articles">Analytics Articles</category>
 <category domain="http://online-behavior.com/tag/articles">Articles</category>
 <category domain="http://online-behavior.com/tag/data-visualization">Data Visualization</category>
 <pubDate>Tue, 13 Jun 2017 10:17:30 +0000</pubDate>
 <dc:creator>Daniel Waisberg</dc:creator>
 <guid isPermaLink="false">719 at http://online-behavior.com</guid>
<feedburner:origLink>http://online-behavior.com/analytics/marriages</feedburner:origLink></item>
<item>
 <title>Tracking Forms Effectively in Google Analytics</title>
 <link>http://feedproxy.google.com/~r/Online-Behavior/~3/2-76_IOyono/form-tracking</link>
 <description>&lt;a href="/analytics/form-tracking" class="imagefield imagefield-nodelink imagefield-field_thumbnail"&gt;&lt;img  class="imagefield imagefield-field_thumbnail" width="450" height="300" title="Tracking Forms Effectively in Google Analytics" alt="Tracking Forms Effectively in Google Analytics" src="http://online-behavior.com/sites/default/files/thumbnails/tracking-forms-google-analytics.png?1495636234" /&gt;&lt;/a&gt;&lt;p&gt;Quick wins, low-hanging fruits - we're all looking for the shortest, most effective route to improve sales. As optimizers, it's what we do.&lt;/p&gt;
&lt;p&gt;Think of the most important actions a customer can take on your website. Registering for a new account, making an inquiry about a product, filling out billing and shipping information - each of these vitally important actions are made through forms, which means: &lt;strong&gt;Optimizing those forms can have a big effect on your conversion funnel&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Of course, to optimize these forms, you have to understand how visitors are reacting to them, and what their behaviors indicate. And to do that, you have to measure their activity on your website or app.&lt;/p&gt;
&lt;p&gt;Form analytics data is, perhaps, the most important information you can have to understand how your conversion funnel works. When you have access to this type of user data, you can start to see where you're losing potential customers, determine why they drop off, and create concrete steps towards funnel improvements that will reap huge rewards. All of this begins in Google Analytics and Google Tag Manager with Tracking Forms. &lt;/p&gt;
&lt;p&gt;This article will show you how to create events in Google Tag Manager that will allow you to track the behavior of visitors interaction with forms. Having this data will enable you to optimize the forms to fit it with visitor expectations and increase the form conversion rate.&lt;/p&gt;
&lt;h2&gt;Find your ideal form to fit the purpose&lt;/h2&gt;
&lt;h3&gt;Purpose 1: Simple data collection&lt;/h3&gt;
&lt;p&gt;Simple data collection forms are just used to gather basic data on visitors, like name and email address - common examples are newsletter subscriptions and short surveys. Data gathered can be used to personalize web and marketing efforts, and contribute to customer research. These types of forms can be considered micro conversions and can give important indicators of visitors' motivations (like how confident they are in your site, and whether your site looks credible enough to merit their time and attention).&lt;/p&gt;
&lt;p&gt;&lt;img src="/sites/default/files/imagecache/Content/articles/Contact%20form.png" alt="Contact Form " title="Contact Form " class="imagecache-Content" /&gt;&lt;/p&gt;
&lt;h3&gt;Purpose 2: Lead generation&lt;/h3&gt;
&lt;p&gt;Lead generation forms are the bread and butter of B2B websites. To be really useful, lead generation forms must enable the sales department to quickly and effectively identify the strongest prospects. &lt;/p&gt;
&lt;p&gt;&lt;img src="/sites/default/files/imagecache/Content/articles/Lead%20generation%20form.png" alt="Lead generation form" title="Lead generation form" class="imagecache-Content" /&gt;&lt;/p&gt;
&lt;p&gt;Lead generation forms ask for more information, and typically offer something of value in return, like a free ebook, study, or e-course. The amount of value offered is directly related to how many form fields you can expect people to fill out. &lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;"According to FormStack's research, only 6% of users will fill out an average of 19 (!) form fields on an order page, but people entering a contest will go nearly to the ends of the earth to submit, tolerating 10 form fields with a 28% submission rate." - Crazyegg, &lt;a href="https://www.crazyegg.com/blog/form-conversion-facts/" target="_blank"&gt;Little Known Form Facts That Can Increase Conversion Rates&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;It's a delicate balance to strike. Ideally you want only qualified leads to fill out the form, but if you add too many qualifiers, even motivated visitors may drop out or leave the form unfilled. &lt;/p&gt;
&lt;p&gt;To avoid this outcome, you can use form analytics to determine the forms effectiveness and eliminate or change the questions that cause visitors to skip or drop out. &lt;/p&gt;
&lt;h3&gt;Purpose 3: Shipping &amp;amp; billing&lt;/h3&gt;
&lt;p&gt;Finally and most importantly, you need to track shipping and billing forms. For the most part, the content of these forms is mandatory. However, accurate form analytics can tell us if there are areas we need to improve.&lt;/p&gt;
&lt;p&gt;&lt;img src="/sites/default/files/imagecache/Content/articles/Shipping_billing.png" alt="Shipping &amp;amp; billing form" title="Shipping &amp;amp; billing form" class="imagecache-Content" /&gt;&lt;/p&gt;
&lt;p&gt;For example, if you realize that many of the visitors drop out at shipping, it may indicate that the shipping options offered are inadequate. Visitors may need more of them, consider them too expensive, or are unpleasantly surprised at the shipping estimate.&lt;/p&gt;
&lt;p&gt;Large dropout rates in billing forms often indicate a lack of trust in the security of the site, making customers unwilling to leave their billing information. Think of it this way: hese people want to be your customers, hey wouldn't reach your billing page if they didn't, which means that if you can fix these issues, they are sure wins.&lt;/p&gt;
&lt;p&gt;Often, form issues are low-hanging fruits that, if fixed, can result in instant (and large) conversion increases. And to solve them, we need to track our forms and see what our users are really up to. We can do this in Google Analytics.&lt;/p&gt;
&lt;h2&gt;The Nitty-Gritty How-to: Tracking HTML Forms in Google Analytics&lt;/h2&gt;
&lt;p&gt;Tracking HTML forms is relatively easy. All you need to do is to establish events for every form. You can go through the forms in your code and add the following line at the submission button code:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;ga(&amp;#039;send&amp;#039;, &amp;#039;event&amp;#039;, [eventCategory], [eventAction], [eventLabel], [eventValue], [fieldsObject]);&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;This will result in reporting an event every time a user clicks the submission button. &lt;/p&gt;
&lt;p&gt;However, what we really want to do is to track the completion of each individual field, not just when the entire form is submitted.&lt;/p&gt;
&lt;p&gt;To achieve this, we need to insert a custom code into the form code. You can find an excellent solution for this on the &lt;a href="http://www.lunametrics.com/blog/2012/11/13/track-form-abandonment-google-analytics/" target="_blank"&gt;LunaMetrics blog&lt;/a&gt;. It is easy to implement and you only need to change a few lines, such as the name of the form you use (the formId line).&lt;/p&gt;
&lt;p&gt;When you implement this code on your website, it fires an event every time a visitor fills in a form field or skips it. These events enable you to track the completion and abandonment of your forms. &lt;/p&gt;
&lt;h2&gt;Tracking AJAX forms - it's a li'l more complicated&lt;/h2&gt;
&lt;p&gt;AJAX is an acronym for Asynchronous Javascript and XML - it's a way for web applications, like forms, to send and receive data from the server asynchronously, without having to reload the entire page. For example, you might use AJAX forms so that if a user fails to fill out all the necessary fields, the incomplete ones will be marked in red - without erasing all of the other information they did put in. &lt;/p&gt;
&lt;p&gt;The problem with AJAX forms is that by dynamically creating content on the same page, it makes tracking harder; the page information is rewritten every time the event happens, deleting the data layer. &lt;/p&gt;
&lt;p&gt;So how do we track AJAX events?&lt;/p&gt;
&lt;p&gt;For this we're going to need &lt;a href="http://online-behavior.com/analytics/google-tag-manager"&gt;Google Tag Manager&lt;/a&gt; (GTM), and for illustration purposes, we're also going to use &lt;a href="https://www.gravityhelp.com/downloads/" target="_blank"&gt;Gravity Forms&lt;/a&gt;, a plugin for WordPress (and websites that use Wordpress hosting). Don't have that exact setup? Don't worry, this use case will likely also work with minor modifications for other types of AJAX forms and other types of forms that use single page.&lt;/p&gt;
&lt;p&gt;First off, you need to ensure that your AJAX pages populate the data layer with variables that enable you to put triggers on your tags. The easiest way to do this is to open the configuration tab of the plugin in Wordpress' admin panel. There you can set the plugin to send variables to data layers or even directly to Google Analytics.&lt;/p&gt;
&lt;p&gt;&lt;img src="/sites/default/files/imagecache/Content/articles/Gravity%20forms%20settings.png" alt="Gravity forms setting" title="Gravity forms setting" class="imagecache-Content" /&gt;&lt;/p&gt;
&lt;p&gt;If you have only one form you care about, this solution may be the easiest way to accomplish basic tracking. &lt;/p&gt;
&lt;p&gt;But you might want to put in your own values in those event definition fields so you have more control over reporting. If you want to create your own events in GTM, configure the plugin to populate the data layer with variables. This is the option you can find in the plugin settings in the form of a check box. The checkboxes are located immediately below the fields shown in the previous image.  If checked it will create Tag Manager variables you can use as trigger conditions to set up event tracking.&lt;/p&gt;
&lt;p&gt;Once you configure the plugin, it is time to open Google Tag Manager. In order to configure the tags correctly, you should go into preview mode. To do this, simply click the ‘Publish' button in the interface and select ‘preview.'&lt;/p&gt;
&lt;p&gt;Go to the page on your website that contains the form you want to track. Once you open it, you should see the bottom part of the page populating with events, such as:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Message&lt;/li&gt;
&lt;li&gt;Page View&lt;/li&gt;
&lt;li&gt;DOM Ready&lt;/li&gt;
&lt;li&gt;Window Loaded&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;You might see other events too, depending on your individual configuration in Tag Manager. &lt;/p&gt;
&lt;p&gt;To determine which variable should be the trigger to your tag, go into the first field of your form. If you have enabled Google Tag Manager tracking correctly in the Admin panel, you should see the following:&lt;/p&gt;
&lt;p&gt;&lt;img src="/sites/default/files/imagecache/Content/articles/form%20tracking%20variables%20in%20datalayer%20list.PNG" alt="Form tracking datalayer" title="Form tracking datalayer" class="imagecache-Content" /&gt;&lt;/p&gt;
&lt;p&gt;Google Tag Manager for the Wordpress plugin has created the #19 event highlighted in grey. It populates the data layer with following variables:&lt;/p&gt;
&lt;p&gt;&lt;img src="/sites/default/files/imagecache/Content/articles/form%20tracking%20variables%20in%20datalayer.PNG" alt="Form tracking datalayer" title="Form tracking datalayer" class="imagecache-Content" /&gt;&lt;/p&gt;
&lt;p&gt;To start tracking individual events, such as form fields being filled, you just need to create a new tag, make it an event, and add triggers containing inputID or inputName values. That way, every time the visitor goes from one field to the other, an event hit will be reported to Google Analytics and you will be able to track each field directly. &lt;/p&gt;
&lt;p&gt;Of course, you need to give the event definition values so that it is easy for you to understand and track what is happening.&lt;/p&gt;
&lt;h2&gt;Once Tracking is Enabled on your Forms, the Optimization Fun Begins&lt;/h2&gt;
&lt;p&gt;Your own users will show you where to focus first in your optimization journey, but while they'll show you where something has gone wrong, they won't tell you why - not without further research and A/B testing to verify your hypotheses. &lt;/p&gt;
&lt;blockquote class="bg-blue"&gt;&lt;p&gt;A few form best practices may give you a jumpstart to reaching some of those quick wins.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Use a clean, clear form design that visually stands out, and is consistent with your brand.&lt;/li&gt;
&lt;li&gt;Keep it simple - the simpler the form, the better your odds of completion.&lt;/li&gt;
&lt;li&gt;Avoid two-column forms - they just don't get filled out at the rates single-columns do.&lt;/li&gt;
&lt;li&gt;Asking for user age reduces conversion rates by 3%, phone numbers reduces it by 5% - avoid too-personal questions.&lt;/li&gt;
&lt;li&gt;Don't label your "submit" button "Submit." Instead, label it with what the user will get in return for giving you their information, like "Send me my ebook!"&lt;/li&gt;
&lt;/ol&gt;
&lt;/blockquote&gt;
&lt;p&gt;The most common issues that prevent visitors from completing forms are the format requirements themselves (too many or too personal), unclear instructions for how to fill out the form, and unclear expectations for what they will get if they do. &lt;/p&gt;
&lt;p&gt;But, by and far, the issue that kills conversions fastest is this: Credibility. Users won't give you any information if they don't trust you. This lack of trust must be addressed much further up the conversion funnel, long before the visitor encounters the form. Trust indicators like posting user reviews on product pages and displaying security badges can help.&lt;/p&gt;
&lt;p&gt;Of course, there are alternative ways to track data and analyze forms - there are dedicated pieces of software that do an excellent job. These are mostly paid software-as-a-service solutions, but you can't beat the ROI of tracking through the Google Analytics interface. &lt;/p&gt;
&lt;p&gt;Even though it initially requires some effort, Google provides these insights free of charge. Not to mention that implementing form tracking this way has the advantage of everything being in one place.&lt;/p&gt;
&lt;div class="field field-type-filefield field-field-image"&gt;
      &lt;div class="field-label"&gt;image&amp;nbsp;&lt;/div&gt;
    &lt;div class="field-items"&gt;
            &lt;div class="field-item odd"&gt;
                    &lt;img  class="imagefield imagefield-field_image" width="304" height="212" title="Contact Form " alt="Contact Form " src="http://online-behavior.com/sites/default/files/articles/Contact%20form.png?1495636234" /&gt;        &lt;/div&gt;
              &lt;div class="field-item even"&gt;
                    &lt;img  class="imagefield imagefield-field_image" width="524" height="303" title="Lead generation form" alt="Lead generation form" src="http://online-behavior.com/sites/default/files/articles/Lead%20generation%20form.png?1495636234" /&gt;        &lt;/div&gt;
              &lt;div class="field-item odd"&gt;
                    &lt;img  class="imagefield imagefield-field_image" width="523" height="285" title="Shipping &amp;amp; billing form" alt="Shipping &amp;amp; billing form" src="http://online-behavior.com/sites/default/files/articles/Shipping_billing.png?1495636234" /&gt;        &lt;/div&gt;
              &lt;div class="field-item even"&gt;
                    &lt;img  class="imagefield imagefield-field_image" width="1490" height="1250" title="Gravity forms setting" alt="Gravity forms setting" src="http://online-behavior.com/sites/default/files/articles/Gravity%20forms%20settings.png?1495636234" /&gt;        &lt;/div&gt;
              &lt;div class="field-item odd"&gt;
                    &lt;img  class="imagefield imagefield-field_image" width="174" height="388" title="Form tracking datalayer" alt="Form tracking datalayer" src="http://online-behavior.com/sites/default/files/articles/form%20tracking%20variables%20in%20datalayer%20list.PNG?1495636234" /&gt;        &lt;/div&gt;
              &lt;div class="field-item even"&gt;
                    &lt;img  class="imagefield imagefield-field_image" width="390" height="263" title="Form tracking datalayer" alt="Form tracking datalayer" src="http://online-behavior.com/sites/default/files/articles/form%20tracking%20variables%20in%20datalayer.PNG?1495636234" /&gt;        &lt;/div&gt;
        &lt;/div&gt;
&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/Online-Behavior?a=2-76_IOyono:oKlTuej4nZ8:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Online-Behavior?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Online-Behavior?a=2-76_IOyono:oKlTuej4nZ8:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Online-Behavior?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Online-Behavior?a=2-76_IOyono:oKlTuej4nZ8:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Online-Behavior?i=2-76_IOyono:oKlTuej4nZ8:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Online-Behavior/~4/2-76_IOyono" height="1" width="1" alt=""/&gt;</description>
 <category domain="http://online-behavior.com/tag/analytics-articles">Analytics Articles</category>
 <category domain="http://online-behavior.com/tag/articles">Articles</category>
 <category domain="http://online-behavior.com/tag/implementation">Implementation</category>
 <category domain="http://online-behavior.com/tag/marketing-measurement">Marketing Measurement</category>
 <category domain="http://online-behavior.com/tag/web-usability">Web Usability</category>
 <pubDate>Wed, 24 May 2017 14:30:45 +0000</pubDate>
 <dc:creator>Edin Sabanovic</dc:creator>
 <guid isPermaLink="false">718 at http://online-behavior.com</guid>
<feedburner:origLink>http://online-behavior.com/analytics/form-tracking</feedburner:origLink></item>
<item>
 <title>Partnering with data to create insightful stories</title>
 <link>http://feedproxy.google.com/~r/Online-Behavior/~3/hJgBkObGzuM/data-stories</link>
 <description>&lt;a href="/analytics/data-stories" class="imagefield imagefield-nodelink imagefield-field_thumbnail"&gt;&lt;img  class="imagefield imagefield-field_thumbnail" width="450" height="300" title="Data Storyteller" alt="Data Storyteller" src="http://online-behavior.com/sites/default/files/thumbnails/data-storyteller_1.jpg?1493828456" /&gt;&lt;/a&gt;&lt;p&gt;&lt;font face="courier"&gt;[Cross-posted from &lt;a href="https://thenextweb.com/2017/03/22/partnering-data-create-insightful-stories/" target="_blank"&gt;The Next Web&lt;/a&gt;]&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;Whether you are a marketer trying to persuade people, a technologist building a startup, or an executive making business decisions, &lt;strong&gt;data is your partner&lt;/strong&gt;. You can use it to make better decisions and create insightful data stories inside and outside your company. &lt;/p&gt;
&lt;p&gt;The first step is to accept your data relationship: &lt;em&gt;you are partners forever&lt;/em&gt;. Once you understand that, there is an important consideration that will define how to tell your data stories: the context of where they live, which also defines the audience that will interact with them. In this post I will go through some important lessons I learned when visualizing and communicating data in and outside Google. &lt;/p&gt;
&lt;h2&gt;Data is your partner, live with it!&lt;/h2&gt;
&lt;p&gt;Data is no longer "next year's big thing", we have gone through that many times over and almost everyone accepts data as a valuable team member. But not everyone can understand and make use of it optimally, which means lots of decisions are still made based on intuition - if you don't believe me, check &lt;a href="http://www.pwc.com/us/en/advisory-services/data-possibilities/big-decision-survey.html" target="_blank"&gt;PwC's Global Data and Analytics Survey 2016&lt;/a&gt;, it shows some interesting numbers on how often managers use data during the decision-making process. Data education is a crooked road and we have a long journey ahead of us. &lt;/p&gt;
&lt;p&gt;One of the reasons for that is similar to the well-known phenomenon called &lt;em&gt;&lt;a href="https://en.wikipedia.org/wiki/Mathematical_anxiety" target="_blank"&gt;mathematical anxiety&lt;/a&gt;&lt;/em&gt;, where people are afraid of maths as a result of past difficulties and traumas. Every one of us have interacted with data analyses (at work, newspapers or academic research) that were created by unskilful communicators, people that might be amazing statisticians but lack the ability to convey the stories behind the numbers. That creates anxiety and could prevent professionals from even trying to understand data.&lt;/p&gt;
&lt;p&gt;I believe the reason the data community is not growing like weeds is because professionals are not confident enough with numbers and charts. I have written about &lt;a href="http://online-behavior.com/analytics/confidence"&gt;how to overcome the fear of analytics&lt;/a&gt; (and help others), here is a quick summary. &lt;/p&gt;
&lt;blockquote&gt;&lt;ol&gt;
&lt;li&gt;Never mock people for not understanding a chart&lt;/li&gt;
&lt;li&gt;Take baby-steps towards numeracy&lt;/li&gt;
&lt;li&gt;Make analytics more fun&lt;/li&gt;
&lt;/ol&gt;
&lt;/blockquote&gt;
&lt;p&gt;When you create a visualization you may affect other people both positively and negatively. If you create a complex and unintuitive visualization, you might be creating a phobia on other people, and they will forever hate numbers and stats. However, if you create a powerful and beautiful visualization, you might be persuading another mind to join the data visualization tribe.&lt;/p&gt;
&lt;p&gt;Below are some ideas that might help you craft better data stories, both for businesses and in general.&lt;/p&gt;
&lt;h2&gt;Stories tailored to businesses, the world, and beyond...&lt;/h2&gt;
&lt;p&gt;There are many ways to communicate data, but choosing the right format will depend on where the data will be published or presented, the context. Is it a daily performance report or a quarterly result presentation? Or a behavioral analysis using web data? Or an interactive visualization showing global trends?&lt;/p&gt;
&lt;p&gt;I'd like to break down data stories into two main branches: &lt;em&gt;business reporting or analysis&lt;/em&gt;, and &lt;em&gt;visualizing the world&lt;/em&gt;. These groups can show very different characteristics, so let's look into each separately.&lt;/p&gt;
&lt;h3&gt;Business reporting or analysis&lt;/h3&gt;
&lt;p&gt;I recently had the opportunity to interview Avinash Kaushik, Digital Marketing Evangelist at Google. In our conversation we discussed techniques to create great data stories, focusing on businesses. Avinash talked about his business framework See, Think, Do, Care and the role of data visualization during the decision making process.&lt;/p&gt;
&lt;p&gt;&lt;iframe width="640" height="360" src="https://www.youtube.com/embed/PcKrtCo4Zmo?rel=0" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;&lt;/p&gt;
&lt;p&gt;We also discussed data visualization (see minute 11:08), and Avinash explains how not to make silly mistakes when using data in a business context. He makes the differentiation between three main types of visualizations:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Elaborated stories&lt;/strong&gt; presented with the intent to change people's views on a complex subject (what I call visualizing the world).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Strategic analysis&lt;/strong&gt; of business results presented to executives.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Day-to-day reporting&lt;/strong&gt; used to drive most small business decisions.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Avinash differentiates between analysis "packed together" with a storyteller, which allow for more complex visualizations, and day-to-day reporting, which are supposed to stand on their own and help people make decisions by themselves. &lt;/p&gt;
&lt;p&gt;Considering the data delivery circumstances is a great start when designing your visualizations as they will inform the presentation style and level of complexity that can be used. While every visualization should strive for simplicity, a daily report (and business visualizations in general) must be extremely clean and self-explanatory, as the data storyteller won't be there to help the decision maker.&lt;/p&gt;
&lt;p&gt;Below is a quote by Avinash summarizing his views on how to succeed with data.&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;"On a business context, a data visualization has to do one job really well, and it has to answer the question ‘so what?' If your data doesn't answer the 'so what' question, and if there isn't a punchy insight that drives action, all you have is a customized data puke, it looks really nice but it serves no purpose. If you want to drive change, you have to get to the simplest possible way to present the data, and once you get to it ask the so what question. After you answer it, ask if it quantifies the opportunity, if it does you are going to win."&lt;/p&gt;&lt;/blockquote&gt;
&lt;h3&gt;Visualizing the world&lt;/h3&gt;
&lt;p&gt;Luckily to our society, visualizations are increasingly used in a broader context, where the goal is not to understand the business or track performance, but to educate the public and change people's minds. There are some great examples of visualizations that make a difference, but probably the most famous is Hans Rosling motion charts, where he debunks several myths about world development.&lt;/p&gt;
&lt;p&gt;&lt;iframe width="640" height="360" src="https://www.youtube.com/embed/jbkSRLYSojo?rel=0" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;&lt;/p&gt;
&lt;p&gt;I've written about &lt;a href="https://www.thinkwithgoogle.com/articles/tell-meaningful-stories-with-data.html" target="_blank"&gt;data stories&lt;/a&gt; in the past, discussing why it is important and providing some ideas on how to use data visualization to tell stories. Basically, here are two really important things you need on a good data story: &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;It stands on its own&lt;/strong&gt; - if taken out of context, the reader should still be able to understand what a chart is saying because the visualization tells the story.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;It is easy to understand&lt;/strong&gt; - but while too much interaction can distract, the visualization should incorporate some layered data so the curious can explore.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Recently I worked on a data story with my colleague &lt;a href="https://www.linkedin.com/in/lizzie-silvey-131abb51/" target="_blank"&gt;Lizzie Silvey&lt;/a&gt;, where we analyzed stats from the UK Office for National Statistics. We looked into Divorce and Marriage trends starting from 1862, and came up with an interactive visualization. Below is a screenshot with some of the insights on how changes in the law impacted marriage and divorce rates in the UK. Check &lt;a href="https://datastudio.google.com/open/0B-rCydtEraEOaHNOeWt0cTBqb1E" target="_blank"&gt;the visualization&lt;/a&gt; to play with the data.&lt;/p&gt;
&lt;p&gt;&lt;img src="/sites/default/files/imagecache/Content/articles/uk-marriage-divorce.png" alt="UK Marriage Divorce rates" title="UK Marriage Divorce rates" class="imagecache-Content" /&gt;&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;Whether you are working on a monthly report or a world-changing visualization, if you take the time to uncover and communicate the stories behind the data, you will be contributing to better decisions in your company and in society in general.&lt;/p&gt;&lt;/blockquote&gt;
&lt;div class="field field-type-filefield field-field-image"&gt;
      &lt;div class="field-label"&gt;image&amp;nbsp;&lt;/div&gt;
    &lt;div class="field-items"&gt;
            &lt;div class="field-item odd"&gt;
                    &lt;img  class="imagefield imagefield-field_image" width="1012" height="713" title="Data-driven decisions" alt="Data-driven decisions" src="http://online-behavior.com/sites/default/files/articles/data-driven-decisions.png?1493828456" /&gt;        &lt;/div&gt;
              &lt;div class="field-item even"&gt;
                    &lt;img  class="imagefield imagefield-field_image" width="861" height="403" title="UK Marriage Divorce rates" alt="UK Marriage Divorce rates" src="http://online-behavior.com/sites/default/files/articles/uk-marriage-divorce.png?1493828456" /&gt;        &lt;/div&gt;
        &lt;/div&gt;
&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/Online-Behavior?a=hJgBkObGzuM:W1bNjdXfiYU:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Online-Behavior?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Online-Behavior?a=hJgBkObGzuM:W1bNjdXfiYU:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Online-Behavior?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Online-Behavior?a=hJgBkObGzuM:W1bNjdXfiYU:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Online-Behavior?i=hJgBkObGzuM:W1bNjdXfiYU:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Online-Behavior/~4/hJgBkObGzuM" height="1" width="1" alt=""/&gt;</description>
 <category domain="http://online-behavior.com/tag/analytics-articles">Analytics Articles</category>
 <category domain="http://online-behavior.com/tag/articles">Articles</category>
 <category domain="http://online-behavior.com/tag/data-visualization">Data Visualization</category>
 <pubDate>Wed, 03 May 2017 16:20:57 +0000</pubDate>
 <dc:creator>Daniel Waisberg</dc:creator>
 <guid isPermaLink="false">717 at http://online-behavior.com</guid>
<feedburner:origLink>http://online-behavior.com/analytics/data-stories</feedburner:origLink></item>
<item>
 <title>Visualization Techniques to Communicate Data</title>
 <link>http://feedproxy.google.com/~r/Online-Behavior/~3/55NKa2M4_h4/data-visualization-techniques</link>
 <description>&lt;a href="/analytics/data-visualization-techniques" class="imagefield imagefield-nodelink imagefield-field_thumbnail"&gt;&lt;img  class="imagefield imagefield-field_thumbnail" width="450" height="300" alt="" src="http://online-behavior.com/sites/default/files/thumbnails/visualization-techniques.jpg?1493833523" /&gt;&lt;/a&gt;&lt;p&gt;So here's the deal: you've spent a &lt;em&gt;ton&lt;/em&gt; of time with your data and you know it inside out. You've wrangled, sliced and diced it and are now the expert with &lt;em&gt;this&lt;/em&gt; data for &lt;em&gt;this&lt;/em&gt; problem. You've uncovered new, actionable insights that will lead to fantastic opportunities or improve your bottom line. Great! Time to show your colleagues or your boss or your clients these findings.&lt;/p&gt;
&lt;p&gt;You open your data tool of choice, quickly create some charts and make it all look pretty with a flashy color scheme or fancy logos. More often than not, we fly through this final stage and don't give the data visualization step the due care it needs. &lt;em&gt;This is insane!&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Think about it. Your charts and dashboards are most likely the only piece of information your boss or client will interact with. The only information! And yet, here we are, creating default charts and missing the opportunity to really convey our message.&lt;/p&gt;
&lt;p&gt;Effective charts are a compelling way to show your data. The human brain is simply better at retaining and recalling information that has been presented visually.&lt;/p&gt;
&lt;p&gt;&lt;img src="/sites/default/files/imagecache/Content/articles/sales_chart.png" alt="Sales chart year-over-year comparison" title="Sales chart year-over-year comparison" class="imagecache-Content" /&gt;&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;In this article I will discuss several techniques that will help you create more effective charts to communicate the underlying data.There's no big secret here. However, by applying deliberate thought, a handful of best practices, and allocating sufficient time in projects for the data visualization step, you can make a big difference to the impact of your charts.&lt;/p&gt;&lt;/blockquote&gt;
&lt;h2&gt;Plan your approach&lt;/h2&gt;
&lt;p&gt;Before firing up your favorite data visualization software, it pays to spend some time thinking about your output and your goals. Start by answering a few simple questions:&lt;/p&gt;
&lt;blockquote class="bg-blue"&gt;&lt;ul&gt;
&lt;li&gt;Who is the intended audience?&lt;/li&gt;
&lt;li&gt;What medium will you use to show your charts? (e.g. slides / dashboard / report etc.)&lt;/li&gt;
&lt;li&gt;What is the goal of this project?&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;
&lt;p&gt;For example, consider the audience who will view your chart. How long will they have to study it? How familiar are they with the data? Are they technically inclined? Do they want detailed charts, or quick summaries? &lt;/p&gt;
&lt;p&gt;You want to optimize your message to resonate with your audience, so the more you know about them, the more likely you'll be able to achieve that.&lt;/p&gt;
&lt;p&gt;Likewise, how you deliver your message will affect your decisions. Is it a chart in a slide deck? In an informal email? A formal report? An &lt;a href="http://www.benlcollins.com/spreadsheets/10-techniques-for-building-dashboards-in-google-sheets/" target="_blank"&gt;interactive dashboard&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;Reports and dashboards are typically pored over for longer periods of time, so charts and findings can be more detailed, whereas presentations or client pitches are short and sweet, where the audience will only have a moment to understand and absorb the information. &lt;/p&gt;
&lt;p&gt;Lastly, think about what your end goal is. What do you want your audience to do with the information you show them? For example, if you want your manager to make a cost-benefit decision for a new hire or expensive research tool, make sure your solution answers the question and facilitates making that decision.&lt;/p&gt;
&lt;h2&gt;Deliberately focus the viewer's attention&lt;/h2&gt;
&lt;p&gt;Remember, the point of your visualizations is to communicate information, and you can ensure they do that more effectively by giving prominence to the key message within your chart.&lt;/p&gt;
&lt;p&gt;You can do this by using attributes, for example color, to highlight specific elements of your charts and focus your audience's attention there. These are known as &lt;a href="https://en.wikipedia.org/wiki/Pre-attentive_processing" target="_blank"&gt;pre-attentive attributes&lt;/a&gt;, and they dramatically help speed up the absorption of information.&lt;/p&gt;
&lt;p&gt;Consider this chart showing the open rates for four newsletters that you manage. There's an important story in there, but it's difficult to see with the default colors:&lt;/p&gt;
&lt;p&gt;&lt;img src="/sites/default/files/imagecache/Content/articles/newsletter_chart.jpg" alt="Newsletter open rates chart" title="Newsletter open rates chart" class="imagecache-Content" /&gt;&lt;/p&gt;
&lt;p&gt;However, by carefully using colors, we can bring that story to the fore:&lt;/p&gt;
&lt;p&gt;&lt;img src="/sites/default/files/imagecache/Content/articles/newsletter_chart_highlighted.jpg" alt="Newsletter open rates with color" title="Newsletter open rates with color" class="imagecache-Content" /&gt;&lt;/p&gt;
&lt;h2&gt;Add context to aid understanding&lt;/h2&gt;
&lt;p&gt;Consider the two charts above, showing email newsletter open rates. The second chart also has a heading that adds context to the story. The words complement the chart and reinforce the message. &lt;/p&gt;
&lt;p&gt;Much like writing titles for your blog posts or newsletters, think about the title of your chart in the same way. It should tell the viewer what to expect in your chart and summarize the message.&lt;/p&gt;
&lt;p&gt;Similarly, your data may have unexpected spikes or dips, so you might want to use annotations directly on the data points or as footnotes, to make sure the viewers have all the context they need.&lt;/p&gt;
&lt;h2&gt;Reduce clutter in charts&lt;/h2&gt;
&lt;p&gt;Renowned data visualization pioneer Edward Tufte coined the term &lt;em&gt;data-ink ratio&lt;/em&gt; to convey the ratio of ink needed to tell the core message in your display, divided by the total ink in the display. The idea is to maximize this ratio, in other words, reduce the amount of non-essential ink. &lt;/p&gt;
&lt;p&gt;Let's see that in practice. Compare the following two charts showing Amazon's revenue between 2007 and 2016:&lt;/p&gt;
&lt;p&gt;&lt;img src="/sites/default/files/imagecache/Content/articles/amazon_chart.jpg" alt="Amazon revenue cluttered" title="Amazon revenue cluttered" class="imagecache-Content" /&gt;&lt;/p&gt;
&lt;p&gt;After decluttering, the annual revenue figures jump out at the viewer and the information is much quicker to absorb:&lt;/p&gt;
&lt;p&gt;&lt;img src="/sites/default/files/imagecache/Content/articles/amazon_clean_chart.jpg" alt="Amazon revenue chart after decluttering" title="Amazon revenue chart after decluttering" class="imagecache-Content" /&gt;&lt;/p&gt;
&lt;h2&gt;Avoid using overly complex charts for the sake of it&lt;/h2&gt;
&lt;p&gt;There are a lot of complex chart types out there: waterfall charts, radar charts, box and whisker plots, bubble graphs, steamgraphs, tree maps, pareto charts, etc. etc.&lt;/p&gt;
&lt;p&gt;Sometimes these may be appropriate for specific cases (e.g. a Sankey chart to show web traffic flow) but it really comes back to the question of who your intended audience is and what medium you'll be showing your chart through.&lt;/p&gt;
&lt;p&gt;Does this radar chart really communicate your message well? Would a simple bar chart, which is widely understood, be a better alternative?&lt;/p&gt;
&lt;p&gt;&lt;img src="/sites/default/files/imagecache/Content/articles/radar_chart.jpg" alt="Radar chart example" title="Radar chart example" class="imagecache-Content" /&gt;&lt;/p&gt;
&lt;blockquote  class="bg-blue"&gt;&lt;p&gt;Whenever I teach a dataviz class, I always say that a good chart should be like a good joke: it should be understood without you having to explain it.&lt;/p&gt;&lt;/blockquote&gt;
&lt;h2&gt;Is that pie chart really the best choice?&lt;/h2&gt;
&lt;p&gt;Pie charts are popular and ubiquitous, but somewhat maligned by the data visualization community. Why is that? &lt;/p&gt;
&lt;p&gt;Consider this default pie chart in &lt;a href="http://online-behavior.com/analytics/google-data-studio"&gt;Data Studio&lt;/a&gt;, showing website Sessions broken out by Medium:&lt;/p&gt;
&lt;p&gt;&lt;img src="/sites/default/files/imagecache/Content/articles/pie_chart.jpg" alt="Bad pie chart example" title="Bad pie chart example" class="imagecache-Content" /&gt;&lt;/p&gt;
&lt;p&gt;This chart (and pie charts in general), have two main drawbacks: 1) it's hard as human beings to decipher the relative sizes of the slices (and the order and position of them affects this), and 2) the long tail is unreadable. Plus, the legend is ugly to look at.&lt;/p&gt;
&lt;p&gt;A much better chart for data with many categories and a long-tail would be a standard bar chart. Nothing fancy here, but it's super quick and easy to read off the values, especially for the smaller categories (e.g. compare trying to understand email sessions in the pie chart vs. the bar chart).&lt;/p&gt;
&lt;p&gt;&lt;img src="/sites/default/files/imagecache/Content/articles/bar_chart.jpg" alt="Bar chart to replace pie chart" title="Bar chart to replace pie chart" class="imagecache-Content" /&gt;&lt;/p&gt;
&lt;p&gt;So if you're going to use them, restrict pie charts to small numbers of categories (I'd advise three or less), and always ask yourself if a simple bar chart or table would suffice and be quicker to read.&lt;/p&gt;
&lt;h2&gt;Be careful with dual axes charts&lt;/h2&gt;
&lt;p&gt;Dual axes charts should be used with caution as they often cause confusion. It's tempting to use them when trying to chart data series with large size differences, as shown in the following image. Which series goes with which axis? Lines that overlap will also confer meaning that doesn't actually exist, because the series are on different scales.&lt;/p&gt;
&lt;p&gt;&lt;img src="/sites/default/files/imagecache/Content/articles/dual_axes.jpg" alt="Dual axis confusion" title="Dual axis confusion" class="imagecache-Content" /&gt;&lt;/p&gt;
&lt;p&gt;Some strategies you can use to mitigate confusion include matching the series and axes with different colors, labeling the axes clearly and even using different chart types for the different series (line with a bar). &lt;/p&gt;
&lt;p&gt;However, I'd still advocate only using them sparingly. It's often better to show the two series in separate charts next to each other.&lt;/p&gt;
&lt;h2&gt;When to start the y-axis at 0&lt;/h2&gt;
&lt;p&gt;For bar charts, you should &lt;a href="https://flowingdata.com/2015/08/31/bar-chart-baselines-start-at-zero/" target="_blank"&gt;always start the y-axis at 0&lt;/a&gt; since the height of the bar represents the count in that category. We look at the height of the bars and compare them. If one bar is twice the height of the other, then we're going to conclude that the value of that category is twice the value of the other category, even if the axis shows otherwise.&lt;/p&gt;
&lt;p&gt;Consider this simple example. Both bar charts have been plotted from the same data but they tell very different stories:&lt;/p&gt;
&lt;p&gt;&lt;img src="/sites/default/files/imagecache/Content/articles/truncated_axes.jpg" alt="Truncated y-axis" title="Truncated y-axis" class="imagecache-Content" /&gt;&lt;/p&gt;
&lt;p&gt;Vox Media created an excellent video about truncating the y-axis. With line charts we don't need to be so strict with truncated y-axes as the visual lines are used to compare trends, not actual values, as in the case of bars. Indeed you sometimes need to narrow the range with line charts to show the story. &lt;/p&gt;
&lt;p&gt;&lt;iframe width="640" height="360" src="https://www.youtube.com/embed/14VYnFhBKcY?rel=0&amp;amp;showinfo=0" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;&lt;/p&gt;
&lt;h2&gt;Remember to consider the color blind&lt;/h2&gt;
&lt;p&gt;Approximately 10% of the male population and 1% of the female population identify as color-blind, and the most common type is Red-Green color-blind. So it pays to keep this in mind when designing your charts. &lt;/p&gt;
&lt;h2&gt;Closing Thoughts&lt;/h2&gt;
&lt;p&gt;Once you've created your charts, or your dashboard, pause and ask yourself these few questions:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Is it &lt;em&gt;effective&lt;/em&gt; at communicating your message?&lt;/li&gt;
&lt;li&gt;Is it &lt;em&gt;efficient&lt;/em&gt; at communicating your message?&lt;/li&gt;
&lt;li&gt;Ultimately, does the audience benefit from seeing your visualization?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;There is no single right answer with data visualizations, as it will depend on many of the factors discussed above. People will come out with different charts from the same dataset, all of which could be equally effective. However, by following some best practices and thinking critically about your charts, you can improve them dramatically.&lt;/p&gt;
&lt;p&gt;I'll leave you with some parting words from a master in this field:&lt;/p&gt;
&lt;blockquote  class="bg-blue"&gt;&lt;p&gt;"Above all else show the data" Edward Tufte&lt;/p&gt;&lt;/blockquote&gt;
&lt;div class="field field-type-filefield field-field-image"&gt;
      &lt;div class="field-label"&gt;image&amp;nbsp;&lt;/div&gt;
    &lt;div class="field-items"&gt;
            &lt;div class="field-item odd"&gt;
                    &lt;img  class="imagefield imagefield-field_image" width="640" height="390" title="Sales chart year-over-year comparison" alt="Sales chart year-over-year comparison" src="http://online-behavior.com/sites/default/files/articles/sales_chart_0.gif?1493833523" /&gt;        &lt;/div&gt;
              &lt;div class="field-item even"&gt;
                    &lt;img  class="imagefield imagefield-field_image" width="890" height="555" title="Sales chart year-over-year comparison" alt="Sales chart year-over-year comparison" src="http://online-behavior.com/sites/default/files/articles/sales_chart.png?1493833523" /&gt;        &lt;/div&gt;
        &lt;/div&gt;
&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/Online-Behavior?a=55NKa2M4_h4:58LTSpdVjkk:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Online-Behavior?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Online-Behavior?a=55NKa2M4_h4:58LTSpdVjkk:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Online-Behavior?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Online-Behavior?a=55NKa2M4_h4:58LTSpdVjkk:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Online-Behavior?i=55NKa2M4_h4:58LTSpdVjkk:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Online-Behavior/~4/55NKa2M4_h4" height="1" width="1" alt=""/&gt;</description>
 <category domain="http://online-behavior.com/tag/analytics-articles">Analytics Articles</category>
 <category domain="http://online-behavior.com/tag/articles">Articles</category>
 <category domain="http://online-behavior.com/tag/data-visualization">Data Visualization</category>
 <pubDate>Tue, 11 Apr 2017 08:58:37 +0000</pubDate>
 <dc:creator>Ben Collins</dc:creator>
 <guid isPermaLink="false">716 at http://online-behavior.com</guid>
<feedburner:origLink>http://online-behavior.com/analytics/data-visualization-techniques</feedburner:origLink></item>
<item>
 <title>Personalized Account-Based Marketing</title>
 <link>http://feedproxy.google.com/~r/Online-Behavior/~3/OFshwDDZm_M/account-based-marketing</link>
 <description>&lt;a href="/targeting/account-based-marketing" class="imagefield imagefield-nodelink imagefield-field_thumbnail"&gt;&lt;img  class="imagefield imagefield-field_thumbnail" width="450" height="300" title="Personalized Marketing" alt="Personalized Marketing" src="http://online-behavior.com/sites/default/files/thumbnails/personalized-marketing.jpg?1491396973" /&gt;&lt;/a&gt;&lt;p&gt;One of the primary considerations for implementing personalization is: What is the most efficient investment of my resources? What type of personalization makes the most sense for my company's needs? &lt;/p&gt;
&lt;p&gt;Even with the help of AI and automated algorithms, creating personalization campaigns is an investment of time and money. Matching your strategy to your business model, scale, and market is therefore essential. For B2B companies, and others with smaller, more high-value segments, the more typical and broad implementation usually employed by e-tailers may not be the most effective. &lt;/p&gt;
&lt;p&gt;Taking a highly targeted approach and marketing to a small number of clients is an emerging strategy known as Account-Based Marketing (ABM), and it has been demonstrated by &lt;a href="https://www.itsma.com/research/account-based-marketing-and-roi-building-the-case-for-investment/" target="_blank"&gt;market research&lt;/a&gt; to have a reliably higher ROI than other online marketing methods in B2B, and other industries where individual clients represent a higher value sale. &lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;When it comes to personalization, an &lt;a href="http://blog.topohq.com/account-based-marketing-11-tactics-to-drive-your-abm-process" target="_blank"&gt;ABM strategy&lt;/a&gt; means taking a precision approach: deeper data, smaller segments, sometimes even specific versions of your landing page(s) for individual clients. It also means less focus on new visitors to the site, or those who you don't know as much about, and a concentration of resources on high-value clients you know well.&lt;/p&gt;&lt;/blockquote&gt;
&lt;h2&gt;Expanding your customer knowledge for ABM Personalization&lt;/h2&gt;
&lt;p&gt;Acquiring as much useful data as possible is one of the key elements of quality personalization, and any worthwhile personalization engine is collecting a variety of IP, referral, and behavioral tracking data, by default.&lt;/p&gt;
&lt;p&gt;However, if you're using the ABM method, there is another critical source of data that includes many parameters typically unavailable to the default mechanisms, and that is your CRM database. &lt;/p&gt;
&lt;p&gt;Critical information that may be found in your CRM DB can include:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Role in the company&lt;/strong&gt;, to provide relevant CTAs and promotions - If you know that the visitor is part of the IT team of the company, it' more relevant to show them more technical information, whereas the CEO may be more interested in seeing cost-effectiveness and the bottom-line.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Account status&lt;/strong&gt;, such as a prospect or lead - Knowing the stage in the sale could determine whether to offer demos, discuss pricing, and whether to email or call the customer. If an active customer, offer upgrades and create customer retention.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Industry of the visitor&lt;/strong&gt;, to show relevant promotions, testimonials, and use cases - If we know the industry of a client, we can provide case-studies that involve existing clients from that industry, to create a sense of trust in the company as a provider in the space.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Company size&lt;/strong&gt; can be very relevant for understanding specific customer needs - This type of knowledge allows your marketing to be highly targeted, to speak the client's language, and establish the groundwork for closing the deal.&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;&lt;p&gt;Starting with the fundamental CRM profile, additional behavioral tracking and referral data can give you more insight into prospect interests, or existing client needs for other products, based on which pages they viewed, for how long, where they clicked, how they arrived, etc.&lt;/p&gt;&lt;/blockquote&gt;
&lt;h2&gt;How is CRM integration accomplished?&lt;/h2&gt;
&lt;p&gt;There are a variety of methods for different needs, and also types of databases. Integrating an internal DB may be different from integrating with a 3rd party service like Salesforce; a &lt;a href="http://www.personyze.com" target="_blank"&gt;quality personalization solution&lt;/a&gt; will offer multiple options. &lt;/p&gt;
&lt;p&gt;However you integrate, the key is to get the user data into your personalization engine's customer profiles, link those customer profiles to the leads visiting your site, and adapt your landing page to their specific qualities. &lt;/p&gt;
&lt;h3&gt;Case Study&lt;/h3&gt;
&lt;p&gt;Strega Software Solutions, a B2B software provider, is employing an ABM marketing strategy, due to the fact that they serve a relatively small number of key accounts within various industries. In this example, we'll see how one such visitor is delivered a tailored and engaging experience on Strega's site, via CRM-integrated personalization. &lt;/p&gt;
&lt;p&gt;Meet Susan:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Operations Manager at utilities company&lt;/li&gt;
&lt;li&gt;Searching for: Automation software for customer service&lt;/li&gt;
&lt;li&gt;Not a decision maker, but one level below&lt;/li&gt;
&lt;li&gt;Previous customer, influenced company to use Strega for marketing automation software&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Before personalization, Susan would have seen the same landing page as everyone else, when she arrived at the site. However, because Strega already knows Susan through her CRM information, and this data profile has already been linked to her work IP, she sees a unique landing page tailored to her interests and role, immediately. &lt;/p&gt;
&lt;p&gt;&lt;img src="/sites/default/files/imagecache/Content/articles/account-based-marketing.jpg" alt="Account Based Marketing" title="Account Based Marketing" class="imagecache-Content" /&gt;&lt;/p&gt;
&lt;p&gt;Because Strega is taking an ABM approach in their B2B marketing, they have placed concentrated effort into showing specific promotions and CTAs to individuals based on their role in the company, as well as whether or not they are a decision-maker. Additionally, because Susan arrived at the landing page via an ad campaign related to customer service automation, the personalization engine also recognizes this as a current or primary interest. &lt;/p&gt;
&lt;p&gt;In Susan's case, when she lands, the site is immediately tailored to her specific interests and industry:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Banner features a testimonial quote from a utilities company&lt;/li&gt;
&lt;li&gt;Suggested product categories are all related to her established and new interests&lt;/li&gt;
&lt;li&gt;Energy and utilities is moved to the first slot in industries&lt;/li&gt;
&lt;li&gt;Suggested news include an interview with a decision-maker (CEO), and a post about customer service automation&lt;/li&gt;
&lt;li&gt;Testimonial at the bottom is related to a customer service automation product&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;After being alerted to her interest, an accounts manager is automatically notified that she is browsing the site, and a webhook automatically triggers a personalized email, further pushing for a demo, and also including offers for upgrades to previously purchased software, which can be included in the bundle for a reduced rate. &lt;/p&gt;
&lt;p&gt;This is just one example of the type of targeted &lt;a href="http://www.personyze.com/resources/account-based-marketing/" target="_blank"&gt;account based marketing&lt;/a&gt; that is possible with the aid of personalization informed by CRM data. When there is significant revenue on the line, knowing your customers or clients intimately, and maximizing the relevance of their experience on your site is guaranteed to drastically increase the likelihood of conversion, and to generate increased revenue for your company. Third-party SaaS personalization solutions are now making this available not only to huge corporations, but all scales of online business. &lt;/p&gt;
&lt;div class="field field-type-filefield field-field-image"&gt;
      &lt;div class="field-label"&gt;image&amp;nbsp;&lt;/div&gt;
    &lt;div class="field-items"&gt;
            &lt;div class="field-item odd"&gt;
                    &lt;img  class="imagefield imagefield-field_image" width="974" height="1600" title="Account Based Marketing" alt="Account Based Marketing" src="http://online-behavior.com/sites/default/files/articles/account-based-marketing.jpg?1491396973" /&gt;        &lt;/div&gt;
        &lt;/div&gt;
&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/Online-Behavior?a=OFshwDDZm_M:4yDOVpCdKeg:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Online-Behavior?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Online-Behavior?a=OFshwDDZm_M:4yDOVpCdKeg:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Online-Behavior?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Online-Behavior?a=OFshwDDZm_M:4yDOVpCdKeg:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Online-Behavior?i=OFshwDDZm_M:4yDOVpCdKeg:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Online-Behavior/~4/OFshwDDZm_M" height="1" width="1" alt=""/&gt;</description>
 <category domain="http://online-behavior.com/tag/articles">Articles</category>
 <category domain="http://online-behavior.com/tag/behavioral-targeting">Behavioral Targeting</category>
 <category domain="http://online-behavior.com/tag/marketing-optimization">Marketing Optimization</category>
 <category domain="http://online-behavior.com/tag/personalization">Personalization</category>
 <category domain="http://online-behavior.com/tag/personas">Personas</category>
 <category domain="http://online-behavior.com/tag/targeting-articles">Targeting Articles</category>
 <category domain="http://online-behavior.com/tag/website-optimization">Website Optimization</category>
 <pubDate>Wed, 05 Apr 2017 12:56:14 +0000</pubDate>
 <dc:creator>Jonathan Riley</dc:creator>
 <guid isPermaLink="false">714 at http://online-behavior.com</guid>
<feedburner:origLink>http://online-behavior.com/targeting/account-based-marketing</feedburner:origLink></item>
<item>
 <title>Documentation Is the Backbone of Analytics</title>
 <link>http://feedproxy.google.com/~r/Online-Behavior/~3/4Di6ei70mUw/documentation</link>
 <description>&lt;a href="/analytics/documentation" class="imagefield imagefield-nodelink imagefield-field_thumbnail"&gt;&lt;img  class="imagefield imagefield-field_thumbnail" width="450" height="300" title="Analytics documentation" alt="Analytics documentation" src="http://online-behavior.com/sites/default/files/thumbnails/analytics-documentation.jpg?1489484980" /&gt;&lt;/a&gt;&lt;p&gt;So, you can't find enough time to do the stuff you want to do at work because you are very busy? Take heart. It's possible to arrange your work to spend more time on the big questions, but it'll take some work to get there. How? Read on...&lt;/p&gt;
&lt;p&gt;Everybody wants to do cool stuff at work! We, the digital analytics folks, love doing analyses, presenting data-driven insights, exploring new tools, convincing the business to launch a new feature / product derived from our analyses, etc. I will categorize these as the "sexy" parts of the job, the parts we wish we had more time for. Now, just like any other job, there are also the not-so-sexy parts of our jobs. That's the focus of this post - the mundane (&lt;em&gt;but don't go away! it ties back into the sexy part of the job at the end&lt;/em&gt;). &lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;Whenever I go to an analytics event or talk to someone from the industry, the conversation is always about the aforementioned sexy parts of the job. Now that I am not at an event, I can talk more about one of the the less sexy but probably most important aspects of our jobs: documentation, the backbone of the analytics implementation process, IMHO.&lt;/p&gt;&lt;/blockquote&gt;
&lt;h2&gt;Analytics Process From Beginning To End&lt;/h2&gt;
&lt;p&gt;If you think about the analytics process at your company, it would probably look something like this: &lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Business Problem&lt;/strong&gt;: define the business problem you are trying to solve.Let's assume that there is a product/feature that is being built to solve this problem for the sake of clarity.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;KPI Design&lt;/strong&gt;: work closely with the product/business owner and decide on the KPIs and metrics to help identify the performance of the product/feature in detail.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Documentation&lt;/strong&gt;:
&lt;ul&gt;
&lt;li&gt;Business Solution Design Document: Describe in detail how you are going to capture the data you need in your implementation.&lt;/li&gt;
&lt;li&gt;Technical Solution Design Document: work with your implementation team  (if you are lucky enough to have one)to clarify the above document in detail so that they can write the Technical Solution Document (e.g. detailed Data Layer requirements).&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Requirements Implementation&lt;/strong&gt;: implement the final solution through a TMS (Tag Management Solution) and work with developers when necessary.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Unit Testing&lt;/strong&gt;: QA the implementation of the new features/products.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;User Acceptance Testing (UAT)&lt;/strong&gt;: submit your pass/fail findings back to the team for a final UAT and update the master dictionary with the new events, custom dimensions, evars, custom metrics, etc., if all is implemented as requested.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Regression Testing and Release&lt;/strong&gt;: do a full regression test and release the changes to production.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Data Pull&lt;/strong&gt;: pull the data you need for your analysis.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Data Analysis&lt;/strong&gt;: torture if needed.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Storytelling&lt;/strong&gt;: tell a story to the business based on your findings.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Meh! Not Sexy Enough&lt;/h2&gt;
&lt;p&gt;I probably wouldn't exaggerate if I told you that (3), (5), (6) and (7) above, i.e., the documentation and QA, are often overlooked and underappreciated because they are considered time consuming! I think they are at least as important, if not more, as the rest of the items above. Let me expand on this. &lt;/p&gt;
&lt;p&gt;I completely agree that documentation is not the most entertaining part of what we do. You know what you want to track and you can probably save time (in the short run, anyway) if you have a quick chat or type up a quick email to your implementation team and/or your developers to get the stuff you want implemented so that you don't have to "waste" your time with documentation, but I highly encourage you to document everything you implement. &lt;/p&gt;
&lt;p&gt;Assuming that there is a release every other week, there are around 26 releases a year (times the number of platforms you have). Without proper documentation, probably nobody would know/remember what's been implemented in what release. This is the obvious reason. The second one is more strategic. &lt;/p&gt;
&lt;h2&gt;The "Urgent" Requests&lt;/h2&gt;
&lt;p&gt;Tell me if you had a conversation like the one below with one of your product managers: &lt;/p&gt;
&lt;blockquote class="bg-red"&gt;&lt;p&gt;&lt;strong&gt;Product Manager (PM)&lt;/strong&gt;: You remember we implemented this new [amazing] product to increase exposure of the XYZ product category?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;You&lt;/strong&gt;: Yes&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;PM&lt;/strong&gt;: Can you get me a report/do some analysis that tells me whether this product is actually performing well? We need to talk to the sales team so that they can start selling it&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;You&lt;/strong&gt;: That can be done… but when do you need it by? &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;PM&lt;/strong&gt;: End of day tomorrow&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;You&lt;/strong&gt;: That is not possible… I am working on [insert a high priority project here]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;PM&lt;/strong&gt;: When can I get it? &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;You&lt;/strong&gt;: We'll put you in a queue and see what can we can do... &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;PM&lt;/strong&gt;: It's super important because [insert a name with a big title with large salary [aka a HIPPO]] asked for it&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;You&lt;/strong&gt;: OK. As I said I will see what I can do about this but I cannot get it to you by the end of day tomorrow&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;PM&lt;/strong&gt;: That's too late because the presentation is this Wed. &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;You&lt;/strong&gt;: If it's super important, why is this a last min. request? &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;PM&lt;/strong&gt;: [Provocative response]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;You&lt;/strong&gt;: [More provocative response]&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;... and boom there is unnecessary tension between you and your colleague! I am sure this happens to some of you all the time (it used to happen to us a lot but not as much anymore). &lt;/p&gt;
&lt;p&gt;One solution (at least a partial one): Self-Serve and Automation!!! Let me type that out again: SELF-SERVE &amp;amp; AUTOMATION. Trust me, because I'm sure you don't want to worry about these type of requests anymore.  &lt;/p&gt;
&lt;h2&gt;Documentation Is the Backbone of Analytics&lt;/h2&gt;
&lt;p&gt;At &lt;a href="http://www.autotrader.ca/" target="_blank"&gt;autoTRADER&lt;/a&gt;, we've been trying to solve this problem for a while.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;How can we carve up more time to do strategic analyses that can move the business forward?&lt;/li&gt;
&lt;li&gt;How can we modify our existing processes so that the individual business units could have access to their own data and do their jobs more efficiently and faster so that they can also move faster?&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;&lt;p&gt;And now that we have been properly documenting every single tag on the site and trained pretty much everybody who needs digital analytics data for whatever they are doing, we have enabled product / agile teams to self-serve. It's a definite win-win both for us, the analytics folks, and the product teams.&lt;/p&gt;&lt;/blockquote&gt;
&lt;h2&gt;Analyze Away&lt;/h2&gt;
&lt;p&gt;Do you want to know how your amazing product has been performing? Go to the 3rd tab on the live Master Dictionary spreadsheet (ours lives in Google Drive), see how the implementation was done for your product and pull whatever you need yourself. Do you want to slice and dice the data by date, hour of day, medium, platform? Go crazy, be my guest! Now I can concentrate on my more strategic project!&lt;/p&gt;
&lt;p&gt;We've come a long way at autoTRADER.ca. At one point there was only one person (a.k.a., me) who used to do pretty much all of the stuff above (all but coding) but now we have a larger team. Everybody has their own speciality, allowing us to execute the fix I am proposing here. Yes, you  need a team to be able to self-serve; if you are a one man show, let this be an incentive for you to make the business case to staff up (more on this for a future post). &lt;/p&gt;
&lt;h2&gt;The Analysis Framework&lt;/h2&gt;
&lt;p&gt;This is the framework we've designed at autoTRADER (kudos to my colleague &lt;a href="https://www.linkedin.com/in/coombskevin/" target="_blank"&gt;Kevin&lt;/a&gt;, who was able to articulate what we wanted to achieve in this two by two framework).&lt;/p&gt;
&lt;p&gt;&lt;img src="/sites/default/files/imagecache/Content/articles/analysis-framework.jpg" alt="Analysis Framework" title="Analysis Framework" class="imagecache-Content" /&gt;&lt;/p&gt;
&lt;p&gt;I don't know about you, but we, the Analytics group, want to spend the most of our time on the right side of the framework that has an impact on the larger business opportunities and challenges. However, we used to spend most of the time on the left side of this matrix doing "micro-analyses", where the business impact is usually smaller. I am not condescending the micro analyses at all, but our group's mandate is to focus on the right side.&lt;/p&gt;
&lt;p&gt;In order to change this imbalance, we've come up with processes and hired resources to carve up time for the team to focus on the more strategic stuff. We document everything that goes into the implementation and we created a measurement and data dictionary (we call it the &lt;em&gt;Implementation Bible&lt;/em&gt;) so that the teams can do their own analyses without being dependant on us. We've also trained the internal teams on our Analytics platforms - how things are tagged, how teams can create and use their own reports through various tools like PowerBI, Supermetrics, Data Studio, GA Dashboards and Custom Reports - in order to create a win-win situation for everybody. They have access to what they want, we spend our time on what we need to spend more time on...  &lt;/p&gt;
&lt;h2&gt;Slog Now to Become Cooler Later&lt;/h2&gt;
&lt;p&gt;Going back to the beginning of this article, the sexy part of the job is tied to the not-so-sexy part of the job and goes back to documentation. I am aware that documentation is time consuming but it's necessary to move your business forward. I highly recommend that you think about it if you are having issues like we used to! &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;You don't have time to document? Sure!&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="/sites/default/files/imagecache/Content/articles/automation-cartoon.jpg" alt="Documenting" title="Documenting" class="imagecache-Content" /&gt;&lt;/p&gt;
&lt;div class="field field-type-filefield field-field-image"&gt;
      &lt;div class="field-label"&gt;image&amp;nbsp;&lt;/div&gt;
    &lt;div class="field-items"&gt;
            &lt;div class="field-item odd"&gt;
                    &lt;img  class="imagefield imagefield-field_image" width="1000" height="500" title="Analysis Framework" alt="Analysis Framework" src="http://online-behavior.com/sites/default/files/articles/analysis-framework.jpg?1489484980" /&gt;        &lt;/div&gt;
              &lt;div class="field-item even"&gt;
                    &lt;img  class="imagefield imagefield-field_image" width="600" height="317" title="Documenting" alt="Documenting" src="http://online-behavior.com/sites/default/files/articles/automation-cartoon.jpg?1489484980" /&gt;        &lt;/div&gt;
        &lt;/div&gt;
&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/Online-Behavior?a=4Di6ei70mUw:dIAckkMuLY8:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Online-Behavior?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Online-Behavior?a=4Di6ei70mUw:dIAckkMuLY8:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Online-Behavior?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Online-Behavior?a=4Di6ei70mUw:dIAckkMuLY8:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Online-Behavior?i=4Di6ei70mUw:dIAckkMuLY8:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Online-Behavior/~4/4Di6ei70mUw" height="1" width="1" alt=""/&gt;</description>
 <category domain="http://online-behavior.com/tag/analytics-articles">Analytics Articles</category>
 <category domain="http://online-behavior.com/tag/articles">Articles</category>
 <category domain="http://online-behavior.com/tag/implementation">Implementation</category>
 <category domain="http://online-behavior.com/tag/marketing-measurement">Marketing Measurement</category>
 <pubDate>Tue, 14 Mar 2017 09:49:41 +0000</pubDate>
 <dc:creator>Baris Akyurek</dc:creator>
 <guid isPermaLink="false">713 at http://online-behavior.com</guid>
<feedburner:origLink>http://online-behavior.com/analytics/documentation</feedburner:origLink></item>
<item>
 <title>Google Analytics Segments in Data Studio</title>
 <link>http://feedproxy.google.com/~r/Online-Behavior/~3/FGbjkC0JOog/data-studio-segments</link>
 <description>&lt;a href="/analytics/data-studio-segments" class="imagefield imagefield-nodelink imagefield-field_thumbnail"&gt;&lt;img  class="imagefield imagefield-field_thumbnail" width="450" height="300" title="Google Analytics Segments in Data Studio" alt="Google Analytics Segments in Data Studio" src="http://online-behavior.com/sites/default/files/thumbnails/google-analytics-data-studio.png?1488973844" /&gt;&lt;/a&gt;&lt;p&gt;Not only is &lt;a href="http://analytics.googleblog.com/2017/03/data-studio-now-globally-available.html" target="_blank"&gt;Data Studio now free for all&lt;/a&gt; (!) but, to add to our ever-growing excitement about the product,  segment functionality for the Google Analytics connector is now available too!&lt;/p&gt;
&lt;p&gt;Until now, Data Studio has provided us with the option to use &lt;a href="https://support.google.com/360suite/datastudio/answer/6312144" target="_blank"&gt;filters&lt;/a&gt;. This functionality is equivalent to using an &lt;a href="https://support.google.com/analytics/answer/1034836" target="_blank"&gt;advanced filter&lt;/a&gt; within the GA interface whereby, for the data in the table or graph, the filter will narrow values meeting the condition(s) set. &lt;/p&gt;
&lt;p&gt;&lt;a href="https://support.google.com/analytics/answer/3123951" target="_blank"&gt;Segments&lt;/a&gt;, on the other hand, allow for a more advanced analysis of users visiting your website. They allow you to create a subset of data by collecting users (or sessions) into that subset, which you can then query and analyse to your heart's content. &lt;/p&gt;
&lt;h2&gt;Adding GA Segments to Components and Pages&lt;/h2&gt;
&lt;p&gt;For this example, let's say we want to look at the behaviour of users who are browsing from a mobile device. In GA, there is a default segment already created called &lt;em&gt;Mobile Traffic&lt;/em&gt; and this is set using this condition:&lt;/p&gt;
&lt;p&gt;&lt;img src="/sites/default/files/imagecache/Content/articles/mobile-traffic-segment.png" alt="Mobile traffic segment" title="Mobile traffic segment" class="imagecache-Content" /&gt;&lt;/p&gt;
&lt;p&gt;In the GA interface we can apply this segment, along with four other segments, to our reports to gain a better understanding of how our group of users (those browsing on mobile devices) behave on site. &lt;strong&gt;The good news is that you can now apply this same segment in the Data Studio interface as well&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;To do so, you can either apply the segment at the page level or the component level. If you want the segment to apply to all components on the page, you can select &lt;em&gt;Current Page Settings &gt; Google Analytics Segment &gt; Add A Segment&lt;/em&gt;. However, if you just want to apply the segment to one component, or a group of components, you will need to &lt;em&gt;select the component(s) &gt; go to the Data tab in the properties panel &gt; Google Analytics Segment &gt; Add A Segment&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img src="/sites/default/files/imagecache/Content/articles/google-analytics-data-studio-segment.png" alt="Applying GA Segment in Data Studio" title="Applying GA Segment in Data Studio" class="imagecache-Content" /&gt;&lt;/p&gt;
&lt;p&gt;At this stage, you can now pick your segment. There are three buckets that segments can fall into (see numbers in screenshot below):&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Added segments&lt;/strong&gt;: These are segments which have already been added to the report to another component or page (NB. this bucket won't show up if you've not added any segments yet.)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;System segments&lt;/strong&gt;: These are the default segments that are created within the GA interface. These include segments like New Users and Returning Users, which I'm sure you'll be familiar with seeing. The Mobile Traffic segment mentioned earlier falls into this bucket.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Custom segments&lt;/strong&gt;: These are segments as created by you within your personal GA account… more on this later.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If you don't want to search through these buckets for the segment you're looking for, then just tap the search icon (4) in the top right hand corner and type in the name of the segment you're after and it should pop up.&lt;/p&gt;
&lt;p&gt;&lt;img src="/sites/default/files/imagecache/Content/articles/data-studio-segment-picker.png" alt="Data Studio segment picker" title="Data Studio segment picker" class="imagecache-Content" /&gt;&lt;/p&gt;
&lt;p&gt;Once you've selected your segment and opted to add the segment to the report, this will be applied to the page or the component(s) that you've chosen to apply it to. At this stage, you can happily go away and analyse the behaviour of your users browsing from mobile devices.&lt;/p&gt;
&lt;p&gt;&lt;img src="/sites/default/files/imagecache/Content/articles/happily-analysisng.png" alt="Happily Analysisng" title="Happily Analysisng" class="imagecache-Content" /&gt;&lt;/p&gt;
&lt;h2&gt;Applying multiple Google Analytics segments to a Data Studio page&lt;/h2&gt;
&lt;p&gt;However, let's not stop there; there is still more analysis to be done... you can set up identical components side by side in your Data Studio report in order to compare users visiting the site from a mobile device against users visiting the site from a desktop. So far you've added the mobile segment to the left hand components. To start with, copy the components from the left hand side and paste them onto the right hand side to get the visualisation ready. Now let's create a desktop segment and apply this to the components on the right hand side.&lt;/p&gt;
&lt;p&gt;To do so, you need to first create the segment within GA. You can do so using the following condition:&lt;/p&gt;
&lt;p&gt;&lt;img src="/sites/default/files/imagecache/Content/articles/google-analytics-segment_0.png" alt="Google Analytics Segment" title="Google Analytics Segment" class="imagecache-Content" /&gt;&lt;/p&gt;
&lt;p&gt;Once that's saved in GA, you just need to refresh your Data Studio report and you can now find the &lt;em&gt;Desktop Traffic&lt;/em&gt; segment you created under the &lt;em&gt;Custom segments&lt;/em&gt; bucket. As noted previously, this bucket includes all the segments that you've personally created within your GA account.&lt;/p&gt;
&lt;p&gt;Once again, you now just need to select the segment and add it to the components you're interested in. Select all four components on the right hand side of the Data Studio report (using the ctrl button) and apply the segment to all four at once. Don't forget to label the two sides of the report so that anyone viewing the report (&lt;em&gt;including yourself!&lt;/em&gt;) will understand the data being visualised.&lt;/p&gt;
&lt;p&gt;So now you have two different segments applied to your report! The fact that the subset of users browsing on mobile can be compared so easily to the subset of users browsing on desktop makes this a really useful feature within Data Studio. You can quickly and easily see the behaviour of these users, allowing you (if need be) to action upon the results you're finding. &lt;/p&gt;
&lt;p&gt;From a quick glance of my report, you can see that mobile users spend a lot less time on a page on average (4 mins 38 secs) compared to desktop users (8 mins 22). If my aim is to ensure content is keeping users engaged on site, then this might mean I need to think about what to do with the mobile version of my website.  Why are users less engaged with pages when using a mobile? Is content hard to read on a mobile web browser? Are there any issues with the pages loading on mobile browsers? These are just the initial questions I would begin to ask based on a quick glance of this data...there are many more that could come out of applying these segments to further components.&lt;/p&gt;
&lt;p&gt;&lt;img src="/sites/default/files/imagecache/Content/articles/data-studio-components.png" alt="Data Studio components" title="Data Studio components" class="imagecache-Content" /&gt;&lt;/p&gt;
&lt;h2&gt;Synchronising Google Analytics and Data Studio Segments&lt;/h2&gt;
&lt;p&gt;One last thing... you'll notice a small icon next to the segment you've added in the properties panel. &lt;/p&gt;
&lt;p&gt;&lt;img src="/sites/default/files/imagecache/Content/articles/ga-ds-sync.png" alt="Google Analytics Data Studio sync" title="Google Analytics Data Studio sync" class="imagecache-Content" /&gt;&lt;/p&gt;
&lt;p&gt;This indicates if the segment has a &lt;em&gt;sync enabled&lt;/em&gt;. If this is enabled, any updates to the segment within the GA interface will be replicated and synced with the segment applied in Data Studio. If you want to make sure that the segment you've applied doesn't change in definition, even when it's changed in GA, then you'll want to disable this sync. Otherwise, keep it enabled!&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;Happy dashboarding!&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;em&gt;P.S. For more info on segments, head to the super helpful &lt;a href="https://support.google.com/360suite/datastudio/answer/7287743" target="_blank"&gt;help centre articles on segments&lt;/a&gt;!&lt;/em&gt;&lt;/p&gt;
&lt;div class="field field-type-filefield field-field-image"&gt;
      &lt;div class="field-label"&gt;image&amp;nbsp;&lt;/div&gt;
    &lt;div class="field-items"&gt;
            &lt;div class="field-item odd"&gt;
                    &lt;img  class="imagefield imagefield-field_image" width="640" height="329" title="Mobile traffic segment" alt="Mobile traffic segment" src="http://online-behavior.com/sites/default/files/articles/mobile-traffic-segment.png?1488973844" /&gt;        &lt;/div&gt;
              &lt;div class="field-item even"&gt;
                    &lt;img  class="imagefield imagefield-field_image" width="1159" height="583" title="Google Analytics Segment" alt="Google Analytics Segment" src="http://online-behavior.com/sites/default/files/articles/google-analytics-segment_0.png?1488973844" /&gt;        &lt;/div&gt;
              &lt;div class="field-item odd"&gt;
                    &lt;img  class="imagefield imagefield-field_image" width="903" height="478" title="Data Studio components" alt="Data Studio components" src="http://online-behavior.com/sites/default/files/articles/data-studio-components.png?1488973844" /&gt;        &lt;/div&gt;
              &lt;div class="field-item even"&gt;
                    &lt;img  class="imagefield imagefield-field_image" width="337" height="236" title="Data Studio segment picker" alt="Data Studio segment picker" src="http://online-behavior.com/sites/default/files/articles/data-studio-segment-picker.png?1488973844" /&gt;        &lt;/div&gt;
              &lt;div class="field-item odd"&gt;
                    &lt;img  class="imagefield imagefield-field_image" width="308" height="216" title="Applying GA Segment in Data Studio" alt="Applying GA Segment in Data Studio" src="http://online-behavior.com/sites/default/files/articles/google-analytics-data-studio-segment.png?1488973844" /&gt;        &lt;/div&gt;
              &lt;div class="field-item even"&gt;
                    &lt;img  class="imagefield imagefield-field_image" width="300" height="227" title="Google Analytics Data Studio sync" alt="Google Analytics Data Studio sync" src="http://online-behavior.com/sites/default/files/articles/ga-ds-sync.png?1488973844" /&gt;        &lt;/div&gt;
              &lt;div class="field-item odd"&gt;
                    &lt;img  class="imagefield imagefield-field_image" width="902" height="555" title="Happily Analysisng" alt="Happily Analysisng" src="http://online-behavior.com/sites/default/files/articles/happily-analysisng.png?1488973844" /&gt;        &lt;/div&gt;
        &lt;/div&gt;
&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/Online-Behavior?a=FGbjkC0JOog:qYZYklJBkEA:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Online-Behavior?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Online-Behavior?a=FGbjkC0JOog:qYZYklJBkEA:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Online-Behavior?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Online-Behavior?a=FGbjkC0JOog:qYZYklJBkEA:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Online-Behavior?i=FGbjkC0JOog:qYZYklJBkEA:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Online-Behavior/~4/FGbjkC0JOog" height="1" width="1" alt=""/&gt;</description>
 <category domain="http://online-behavior.com/tag/analytics-articles">Analytics Articles</category>
 <category domain="http://online-behavior.com/tag/articles">Articles</category>
 <category domain="http://online-behavior.com/tag/data-visualization">Data Visualization</category>
 <category domain="http://online-behavior.com/tag/guide">Guide</category>
 <pubDate>Wed, 08 Mar 2017 11:31:48 +0000</pubDate>
 <dc:creator>Lizzie Silvey</dc:creator>
 <guid isPermaLink="false">712 at http://online-behavior.com</guid>
<feedburner:origLink>http://online-behavior.com/analytics/data-studio-segments</feedburner:origLink></item>
<item>
 <title>Machine Learning Through Google Tag Manager</title>
 <link>http://feedproxy.google.com/~r/Online-Behavior/~3/iZCI0bIbfSc/machine-learning</link>
 <description>&lt;a href="/analytics/machine-learning" class="imagefield imagefield-nodelink imagefield-field_thumbnail"&gt;&lt;img  class="imagefield imagefield-field_thumbnail" width="450" height="300" alt="" src="http://online-behavior.com/sites/default/files/thumbnails/Google-tag-manager-machine-learning_0.png?1491901507" /&gt;&lt;/a&gt;&lt;p&gt;&lt;em&gt;This article was contributed by &lt;a href="http://online-behavior.com/author/mark-edmondson"&gt;Mark Edmondson&lt;/a&gt; and &lt;a href="http://online-behavior.com/author/peter-meyer"&gt;Peter Meyer&lt;/a&gt;, both from &lt;a href="http://iihnordic.com/"&gt;IIH Nordic&lt;/a&gt;, specialists in online marketing and web communication headquartered in Copenhagen, Denmark. Read more about the authors in the bottom of the article.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Many analytics specialists agree that Machine Learning is going to revolutionise the digital analytics industry in the future, as all the major vendors battle to provide Machine Learning APIs that offer to surface interesting features of your data. These APIs offer cloud solutions that you can use to both scale up your own models, or take advantage of pre-trained models. &lt;/p&gt;
&lt;p&gt;Following our presentation at &lt;a href="http://superweek.hu/" target="_blank"&gt;Superweek Hungary 2017&lt;/a&gt;, we wanted to show how you could start using these services today to enhance your own digital analytics capabilities.  &lt;/p&gt;
&lt;p&gt;Among all Machine Learning techniques, we chose Sentiment Analysis since it is a common use case, but the same code with small modifications could be used for any of the machine learning APIs offered by the services we chose, Algorithmia and Google Natural Language API. For those not acquainted with Sentiment Analysis &lt;a href="https://www.youtube.com/watch?v=sxPBv4Skj98" target="_blank"&gt;this YouTube video&lt;/a&gt; goes into detail about one of the approaches we use below.&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;Both the solutions proposed below are deployed through Google Tag Manager using the JavaScript SDKs available, and the code is available for you to try at our Github repository as well as a demo website here: &lt;a href="https://bit.ly/Superweek2017-Demo" target="_blank"&gt;https://bit.ly/Superweek2017-Demo&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;h2&gt;Case Study: Sentiment Analysis&lt;/h2&gt;
&lt;p&gt;Our use case was built for a large news website that allowed comments on their articles.  We wanted to be able to monitor in real-time the reaction to the articles as they were published, as judged by the user comments beneath the article. This could then be used in the newsroom to decide which articles to highlight or demote on the homepage. &lt;/p&gt;
&lt;p&gt;Another considered use case was for a large brand who carried user forums. A live measurement of the general sentiment on the forums under certain products could indicate when a problem or trend was starting with that product, and help inform marketing or customer support if there was a pending issue. &lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;Maybe your users feel that the product support you provide could be better, find your products very hard to use, or have a hard time finding out how to best provide you feedback on your services.  Wouldn't it be very interesting to look at numbers providing you exactly that information?&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;In the past, it may have taken an expensive 3rd party tool or offline analysis to get the Sentiment Analysis, but as we show below, it isn't very complicated to do it yourself, directly into your web analytics, as they happen.&lt;/p&gt;
&lt;p&gt;The services used are both paid services, so please take that into account before using any of them for anything else but testing.&lt;/p&gt;
&lt;h2&gt;The proof of concept website&lt;/h2&gt;
&lt;p&gt;This demo was originally created for a presentation at Superweek Hungary in Feb 2017.  The presentation, which includes additional examples is embedded below.&lt;/p&gt;
&lt;p&gt;&lt;iframe src="//www.slideshare.net/slideshow/embed_code/key/o8ZIWNk5gbRYLn" width="595" height="485" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" style="border:1px solid #CCC; border-width:1px; margin-bottom:5px; max-width: 100%;" allowfullscreen&gt; &lt;/iframe&gt;&lt;/p&gt;
&lt;p&gt;You can find the demo website at &lt;a href="https://bit.ly/Superweek2017-Demo" target="_blank"&gt;https://bit.ly/Superweek2017-Demo&lt;/a&gt; - it takes the code we produce below and creates a small webapp to compare the results. [&lt;em&gt;Bear in mind that if it goes over the free tier it may not work until the tier resets the next day&lt;/em&gt;]&lt;/p&gt;
&lt;p&gt;This site is a flat HTML page, which has Google Tag Manager deployed to provide the sentiment analysis output from the two platforms tested: Algorithmia and Google Cloud Platform. You just enter a text in the big text area, click the blue button, and then get Sentiment Analysis results returned in the two output boxes below the button. &lt;em&gt;Feel free to check it out :-)&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;The machine learning API services&lt;/h2&gt;
&lt;h3&gt;Algorithmia&lt;/h3&gt;
&lt;p&gt;&lt;a href="https://algorithmia.com/" target="_blank"&gt;Algorithmia&lt;/a&gt; is a cool service: a marketplace with thousands of machine learning algorithms for you to choose from. The algorithms are standardised so you can then use the same code library to run it where you need to. At present, their marketplace main categories are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Text Analysis&lt;/li&gt;
&lt;li&gt;Machine Learning&lt;/li&gt;
&lt;li&gt;Computer Vision&lt;/li&gt;
&lt;li&gt;Deep Learning&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The algorithm we chose is the &lt;a href="http://nlp.stanford.edu/software/corenlp.shtml" target="_blank"&gt;Stanford NLP Sentiment Analysis&lt;/a&gt;, which returns one value: the sentiment, which spans from 0 (Very Negative) to 4 (Very Positive).&lt;/p&gt;
&lt;p&gt;Because Algorithmia serves as an algorithm marketplace, you can try out several before deciding which one is best for you. And if you want to, you can even put your own algorithms onto the marketplace to sell alongside the others. &lt;/p&gt;
&lt;h3&gt;Google Cloud Platform&lt;/h3&gt;
&lt;p&gt;Google currently offers a lot of different &lt;a href="https://cloud.google.com/products/" target="_blank"&gt;cloud products&lt;/a&gt;, including the Machine Learning services, and the &lt;a href="https://cloud.google.com/natural-language/" target="_blank"&gt;Cloud Natural Language API&lt;/a&gt;. The API includes functionality for analysing entities, sentiment and syntax.  Today we focus on just the sentiment part, but exactly the same approach could be used to classify topics from text.&lt;/p&gt;
&lt;p&gt;The Sentiment Analysis service from Google provides two output values: polarity and magnitude. Polarity is a value between -1 (Negative) and 1 (Positive), and magnitude is a value between 0 (Neutral) and infinite (Strongly/Clearly). A nice description of this approach can be found in the article &lt;a href="http://glaforge.appspot.com/article/sentiment-analysis-on-tweets" target="_blank"&gt;Sentiment analysis on tweets&lt;/a&gt; by Guillaume Laforge. Here is a descriptive illustration from the article:&lt;/p&gt;
&lt;p&gt;&lt;img src="/sites/default/files/imagecache/Content/articles/Sentiment-Analysis-Google.png" alt="Sentiment Analysis service by Google" title="Sentiment Analysis service by Google" class="imagecache-Content" /&gt;&lt;/p&gt;
&lt;h2&gt;Deploying Sentiment Analysis through Google Tag Manager&lt;/h2&gt;
&lt;p&gt;One feature of these services is that they provide JavaScript APIs, enabling you to deploy their functionality straight from a tag manager. We've used &lt;a href="http://online-behavior.com/analytics/google-tag-manager"&gt;Google Tag Manager&lt;/a&gt;, but the same approach could work for other tag management systems. You may also choose to deploy them straight onto the webpage, but a tag manager was useful for testing concepts quickly. &lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;Follow along with screenshots and code in &lt;a href="http://bit.ly/Superweek2017-Demo-Setup" target="_blank"&gt;this GitHub repository&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Examples of both services have been adapted from the relevant documentation for each service.&lt;/p&gt;
&lt;h3&gt;Include the JavaScript libraries&lt;/h3&gt;
&lt;p&gt;To be able to use both services, we need to add JavaScript include files on the page.&lt;br /&gt;
The following GTM tag does exactly that, in this case the include files are put in the HEAD section of the page (&lt;a href="https://github.com/iihnordic/Superweek2017-Demo/blob/master/gtm/gtm-tag-addScriptsToHead.html" target=""&gt;code&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;&lt;div class="codeblock"&gt;&lt;code&gt;&amp;lt;script&amp;gt;&lt;br /&gt;(function() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var script = undefined;&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Algorithmia script&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; script = document.createElement(&amp;#039;script&amp;#039;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; script.type = &amp;#039;text/javascript&amp;#039;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; script.src = &amp;#039;//algorithmia.com/v1/clients/js/algorithmia-0.2.0.js&amp;#039;;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.getElementsByTagName(&amp;#039;head&amp;#039;)[0].appendChild(script);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Google script&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; script = document.createElement(&amp;#039;script&amp;#039;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; script.type = &amp;#039;text/javascript&amp;#039;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; script.src = &amp;#039;https://apis.google.com/js/api.js&amp;#039;;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.getElementsByTagName(&amp;#039;head&amp;#039;)[0].appendChild(script);&lt;br /&gt;})();&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;h3&gt;Calling the Algorithmia API&lt;/h3&gt;
&lt;p&gt;Once the submit button is clicked, the script below is then used to send the text typed by the user into the form, (&lt;a href="https://github.com/iihnordic/Superweek2017-Demo/blob/master/gtm/gtm-tag-algorithmiaSentimentAnalysis.html" target=""&gt;code&lt;/a&gt;):&lt;/p&gt;
&lt;p&gt;&lt;div class="codeblock"&gt;&lt;code&gt;&amp;lt;script&amp;gt;&lt;br /&gt;(function () {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; try {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (typeof Algorithmia === &amp;#039;object&amp;#039; &amp;amp;&amp;amp; {{Sentiment Analysis - Input Text}} != undefined) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Algorithmia.client(&amp;#039;{{Algorithmia - Client ID}}&amp;#039;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .algo(&amp;#039;algo://StanfordNLP/SentimentAnalysis/0.1.0&amp;#039;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .pipe(&amp;#039;{{Sentiment Analysis - Input Text}}&amp;#039;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .then(function (output) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dataLayer.push({&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; event: &amp;#039;algorithmiaSentiment&amp;#039;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; algorithmiaSentimentResult: output.result&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; catch (e) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dataLayer.push({&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; event: &amp;#039;algorithmiaSentimentError&amp;#039;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; algorithmiaSentimentErrorMessage: e.message&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;})();&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Briefly, that's what the script does:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Checks for the existence of the Algorithmia file&lt;/li&gt;
&lt;li&gt;Sends Algorithmia the text from the input form&lt;/li&gt;
&lt;li&gt;Receives the response and pushes a GTM event &lt;code&gt;algorithimaSentiment&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Once the event is returned, the API response is shown on the page like this.&lt;/p&gt;
&lt;p&gt;&lt;img src="/sites/default/files/imagecache/Content/articles/Algorithmia-output_0.png" alt="Algorithmia output" title="Algorithmia output" class="imagecache-Content" /&gt;&lt;/p&gt;
&lt;p&gt;To convert the numeric value returned by the service and translate it into a more verbose value, we created a lookup table below.&lt;/p&gt;
&lt;p&gt;&lt;img src="/sites/default/files/imagecache/Content/articles/lookup-table.png" alt="Lookup table" title="Lookup table" class="imagecache-Content" /&gt;&lt;/p&gt;
&lt;h3&gt;Calling Google Cloud Natural Language API&lt;/h3&gt;
&lt;p&gt;&lt;em&gt;Bear in mind this service is currently in beta and so the code below may not work if the API changes significantly in the future.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;A similar script is used when calling the Google API (&lt;a href="https://github.com/iihnordic/Superweek2017-Demo/blob/master/gtm/gtm-tag-googleSentimentAnalysis.html" target=""&gt;code&lt;/a&gt;):&lt;/p&gt;
&lt;p&gt;&lt;div class="codeblock"&gt;&lt;code&gt;&amp;lt;script&amp;gt;&lt;br /&gt;(function () {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; function start() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gapi.client.init({&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#039;apiKey&amp;#039;: &amp;#039;{{Google - API Key}}&amp;#039;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#039;discoveryDocs&amp;#039;: [&amp;#039;https://language.googleapis.com/$discovery/rest?version=v1beta1&amp;#039;]&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; })&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .then(function () {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return gapi.client.language.documents.analyzeSentiment({&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#039;document&amp;#039;: {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#039;type&amp;#039;: &amp;#039;PLAIN_TEXT&amp;#039;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#039;content&amp;#039;: &amp;#039;{{Sentiment Analysis - Input Text}})&amp;#039;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; })&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .then(function (output) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dataLayer.push({&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; event: &amp;#039;googleSentiment&amp;#039;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; googleSentimentPolarity: output.result.documentSentiment.polarity,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; googleSentimentMagnitude: output.result.documentSentiment.magnitude&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function (error) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dataLayer.push({&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; event: &amp;#039;googleSentimentError&amp;#039;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; googleSentimentErrorMessage: error.result&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; catch (e) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dataLayer.push({&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; event: &amp;#039;googleSentimentError&amp;#039;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; googleSentimentErrorMessage: e.message&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (typeof gapi === &amp;#039;object&amp;#039; &amp;amp;&amp;amp; {{Sentiment Analysis - Input Text}} != undefined) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gapi.load(&amp;#039;client&amp;#039;, start);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;})();&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Briefly, that's what the script does:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Registers with the Natural Language API&lt;/li&gt;
&lt;li&gt;Calls the API with the form text&lt;/li&gt;
&lt;li&gt;Upon getting an answer, pushes a GTM event &lt;code&gt;googleSentiment&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The returned output is then displayed on the page like this:&lt;/p&gt;
&lt;p&gt;&lt;img src="/sites/default/files/imagecache/Content/articles/google-ml-output_0.png" alt="Google ML Output" title="Google ML Output" class="imagecache-Content" /&gt;&lt;/p&gt;
&lt;h3&gt;Sending output to Google Analytics&lt;/h3&gt;
&lt;p&gt;We display the results in the demo application, but the sentiment scores can just as easily be sent straight into Google Analytics for analysis as an event.  This then lets you pull out the results via the real-time or reporting APIs for your needs. Below is an example GTM code to do this.&lt;/p&gt;
&lt;h4&gt;Sending Algorithmia sentiment value to Google Analytics&lt;/h4&gt;
&lt;p&gt;In the tag below the text value ("Positive", "Negative" etc.) is sent as the label, and the sentiment score as a value.  Adjust to your needs.&lt;/p&gt;
&lt;p&gt;&lt;img src="/sites/default/files/imagecache/Content/articles/Algorithmia-Google-Analytics.png" alt="Algorithmia Sentiment value to Google Analytics" title="Algorithmia Sentiment value to Google Analytics" class="imagecache-Content" /&gt;&lt;/p&gt;
&lt;h4&gt;Sending Google sentiment value to Google Analytics&lt;/h4&gt;
&lt;p&gt;In this case, the Event label is the magnitude (0 - 1) and the value is the polarity (-1, +1).  You may prefer to make another variable that multiplies the magnitude and polarity together to create one value.&lt;/p&gt;
&lt;p&gt;&lt;img src="/sites/default/files/imagecache/Content/articles/sentiment-value-Google-Analytics.png" alt="Sentiment value to Google Analytics" title="Sentiment value to Google Analytics" class="imagecache-Content" /&gt;&lt;/p&gt;
&lt;h2&gt;Summary&lt;/h2&gt;
&lt;p&gt;You have now seen two approaches on how to implement Sentiment Analysis on a web page. The examples are quite simple, but hopefully they show how quickly you can get up and running with Sentiment Analysis on things like user comments, forum entries, and support requests, and perhaps inspire you to try other applications.&lt;/p&gt;
&lt;p&gt;This also goes to show that you don't have to know a lot about Machine Learning, AI, Deep Learning, algorithms and such, to get started reaping the benefits of what it can do to help you. &lt;em&gt;Though we do urge you to learn more about it if this catches your interest :-)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;And if you do have the knowledge to create your own Machine Learning algorithms, both platforms offer a way to deploy that model at scale through almost exactly the same mechanism: Google through &lt;a href="https://www.tensorflow.org/" target="_blank"&gt;Tensorflow&lt;/a&gt; and Algorithmia through its marketplace. &lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;We hope this triggered your interest in the subject. Feel free to get in touch if you are inspired to make anything cool on top of it, we'd love to hear from you!&lt;/p&gt;&lt;/blockquote&gt;
&lt;h2&gt;About the Authors&lt;/h2&gt;
&lt;p&gt;&lt;img style="float:left; margin:0 15px 10px 0" src="/sites/default/files/imagecache/Content/articles/markedmondson.jpg" alt="Mark Edmondson" title="Mark Edmondson" class="imagecache-Content" /&gt;&lt;a href="http://online-behavior.com/author/mark-edmondson"&gt;Mark Edmondson&lt;/a&gt; is an Englishman in Denmark, where he lives and works with data. He grew up in Cornwall, UK, where he started his career in digital marketing in 2007, after completing his Physics masters. These days he splits his time working with digital analytics data for IIH Nordic and working with Google APIs as part of his role as a Google Developer Expert for Google Analytics.  Outside work he enjoys composing music in the bunker and being a Dad. Mark blogs at &lt;a href="http://code.markedmondson.me/"&gt;code.markedmondson.me&lt;/a&gt; and enjoys twittering at &lt;a href="https://twitter.com/HoloMarkeD" target="_blank"&gt;@HoloMarkeD&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img style="float:left; margin:0 15px 10px 0" src="/sites/default/files/imagecache/Content/articles/peter-meyer.png" alt="Peter Meyer" title="Peter Meyer" class="imagecache-Content" /&gt;&lt;a href="http://online-behavior.com/author/peter-meyer"&gt;Peter Meyer&lt;/a&gt; has been in the digital industry since 1997, beginning with HTML, moving over front- and backend development, SQL databases and Sitecore CMS, to now implement analytics and TMS products like Google Analytics, Adobe Analytics, Tealium IQ, Ensighten Manage and Google Tag Manager. Learn more about him on &lt;a href="https://www.linkedin.com/in/pmeyerdk" target="_blank"&gt;LinkedIn&lt;/a&gt; or follow him on Twitter &lt;a href="https://twitter.com/pmeyerdk" target="_blank"&gt;@pmeyerdk&lt;/a&gt;.&lt;/p&gt;
&lt;div class="field field-type-filefield field-field-image"&gt;
      &lt;div class="field-label"&gt;image&amp;nbsp;&lt;/div&gt;
    &lt;div class="field-items"&gt;
            &lt;div class="field-item odd"&gt;
                    &lt;img  class="imagefield imagefield-field_image" width="630" height="474" title="Sentiment Analysis service by Google" alt="Sentiment Analysis service by Google" src="http://online-behavior.com/sites/default/files/articles/Sentiment-Analysis-Google.png?1491901507" /&gt;        &lt;/div&gt;
              &lt;div class="field-item even"&gt;
                    &lt;img  class="imagefield imagefield-field_image" width="512" height="273" title="JavaScript Libraries" alt="JavaScript Libraries" src="http://online-behavior.com/sites/default/files/articles/javascript-libraries.png?1491901507" /&gt;        &lt;/div&gt;
              &lt;div class="field-item odd"&gt;
                    &lt;img  class="imagefield imagefield-field_image" width="673" height="368" title="Calling the Algorithmia API" alt="Calling the Algorithmia API" src="http://online-behavior.com/sites/default/files/articles/Algorithmia-API.png?1491901507" /&gt;        &lt;/div&gt;
              &lt;div class="field-item even"&gt;
                    &lt;img  class="imagefield imagefield-field_image" width="581" height="129" title="Algorithmia output" alt="Algorithmia output" src="http://online-behavior.com/sites/default/files/articles/Algorithmia-output.png?1491901507" /&gt;        &lt;/div&gt;
              &lt;div class="field-item odd"&gt;
                    &lt;img  class="imagefield imagefield-field_image" width="535" height="390" title="Lookup table" alt="Lookup table" src="http://online-behavior.com/sites/default/files/articles/lookup-table.png?1491901507" /&gt;        &lt;/div&gt;
              &lt;div class="field-item even"&gt;
                    &lt;img  class="imagefield imagefield-field_image" width="718" height="706" title="Google Machine Learning API" alt="Google Machine Learning API" src="http://online-behavior.com/sites/default/files/articles/google-api.png?1491901507" /&gt;        &lt;/div&gt;
              &lt;div class="field-item odd"&gt;
                    &lt;img  class="imagefield imagefield-field_image" width="459" height="153" title="Google ML Output" alt="Google ML Output" src="http://online-behavior.com/sites/default/files/articles/google-ml-output.png?1491901507" /&gt;        &lt;/div&gt;
              &lt;div class="field-item even"&gt;
                    &lt;img  class="imagefield imagefield-field_image" width="1280" height="1081" title="Algorithmia Sentiment value to Google Analytics" alt="Algorithmia Sentiment value to Google Analytics" src="http://online-behavior.com/sites/default/files/articles/Algorithmia-Google-Analytics.png?1491901507" /&gt;        &lt;/div&gt;
              &lt;div class="field-item odd"&gt;
                    &lt;img  class="imagefield imagefield-field_image" width="1280" height="1080" title="Sentiment value to Google Analytics" alt="Sentiment value to Google Analytics" src="http://online-behavior.com/sites/default/files/articles/sentiment-value-Google-Analytics.png?1491901507" /&gt;        &lt;/div&gt;
              &lt;div class="field-item even"&gt;
                    &lt;img  class="imagefield imagefield-field_image" width="125" height="125" title="Mark Edmondson" alt="Mark Edmondson" src="http://online-behavior.com/sites/default/files/articles/markedmondson.jpg?1491901507" /&gt;        &lt;/div&gt;
              &lt;div class="field-item odd"&gt;
                    &lt;img  class="imagefield imagefield-field_image" width="125" height="125" title="Peter Meyer" alt="Peter Meyer" src="http://online-behavior.com/sites/default/files/articles/peter-meyer.png?1491901507" /&gt;        &lt;/div&gt;
              &lt;div class="field-item even"&gt;
                    &lt;img  class="imagefield imagefield-field_image" width="680" height="152" title="Algorithmia output" alt="Algorithmia output" src="http://online-behavior.com/sites/default/files/articles/Algorithmia-output_0.png?1491901507" /&gt;        &lt;/div&gt;
              &lt;div class="field-item odd"&gt;
                    &lt;img  class="imagefield imagefield-field_image" width="680" height="182" title="Google ML Output" alt="Google ML Output" src="http://online-behavior.com/sites/default/files/articles/google-ml-output_0.png?1491901507" /&gt;        &lt;/div&gt;
        &lt;/div&gt;
&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/Online-Behavior?a=iZCI0bIbfSc:gZwPBWlhQYU:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Online-Behavior?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Online-Behavior?a=iZCI0bIbfSc:gZwPBWlhQYU:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Online-Behavior?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Online-Behavior?a=iZCI0bIbfSc:gZwPBWlhQYU:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Online-Behavior?i=iZCI0bIbfSc:gZwPBWlhQYU:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Online-Behavior/~4/iZCI0bIbfSc" height="1" width="1" alt=""/&gt;</description>
 <category domain="http://online-behavior.com/tag/analytics-articles">Analytics Articles</category>
 <category domain="http://online-behavior.com/tag/articles">Articles</category>
 <category domain="http://online-behavior.com/tag/implementation">Implementation</category>
 <pubDate>Tue, 28 Feb 2017 12:29:51 +0000</pubDate>
 <dc:creator>Online Behavior</dc:creator>
 <guid isPermaLink="false">711 at http://online-behavior.com</guid>
<feedburner:origLink>http://online-behavior.com/analytics/machine-learning</feedburner:origLink></item>
</channel>
</rss>
