Does headline-length affect Click-Through Rate (CTR)?
Before making changes to optimize websites or content to increase engagement, it's important to really understand what is driving user behaviour. This tutorial is derived from an article by Adam Kelleher. Adam critically examined the data behind another blog article which claimed that a headline-length of 16-18 words maximized engagement, and noticed that what was actually happening was that a few popular authors tended to pick longer headlines, yet long headlines didn't necessarily help other authors.

Using Causal Inference we can repeat the experiment and examine the effect of headline-length on Click-Through Rate when controlling for Author.
We will do this in two stages.
First, we'll model the effect of headline-length on click through rate without considering authorship, and see what happens. We expect to see that longer headlines lead to higher click-through rates.
But wait!
What Adam showed was that when accounting for authorship, the effect disappeared. In this data, longer headlines don't in fact cause higher click through rates. Better authors cause higher click through rates!
So, we'll modify the Study to reflect that and see what happens to the results. We expect to see the (false) effect of headline-length disappear.
Download tutorial-2-headlines.csv, then upload it via the Data page.
We want to see whether longer titles increase click-through rate. So, select variable title_length as the Treatment and select click_through_rate as the Outcome.
Adam's model says that a "long" title is one with more than 10 words.
The next step is to tell Causal Wizard how these variables interact. Following the original case study, we'll first assume only that:
(Adam's original case study didn't consider author, leading to the claim that longer headlines lead to more clicks - we'll add author back in shortly.)
In the Findings section, the key finding is that title length greater than 10 has an effect of around +0.01 on click through rate. While that might not seem like much, the average click through rate is 0.05, so +0.01 is a 20% increase!
The problem is that as Adam pointed out, the effect of authorship is being ignored. Let's go back to the Study and add the missing edges.
There should now be 3 edges in total.
In the new Findings section, you should now notice that the causal effect has disappeared - the new estimate, controlling for authorship, is close to 0. Notice also that the significance tests in the Refutation / validation section now suggest the result is no better than chance.
The key takeaway here is that properly accounting for a confounding variable (authorship) eliminated what originally appeared to be a promising insight. If we had just done a simple association or non-causal analysis of the title length and click through rate, we might right now be "optimizing" our web content in completely the wrong way...