That is an average of 36 comments per post and 92 words per comment. Congratulations Avinash!
For Analytics oriented bloggers such as Avinash, I am sure as much as they love and appreciate all their blog readers they will always value the engaged readers who make the effort to drop a line or two seeking clarification, encouraging them to write more or giving them feedback.
This segment of blog readers is by all means the fuel that keeps bloggers alive and encourages them to continue to write and share what they have in mind. Therefore, studying and analyzing the behavior and the user experience of this segment is very important for optimizing the blog to achieve your blog objectives.
In this post I will walk you through few basic steps that will help make this segment of engaged readers available in your Google Analytics report.
Our approach is a three-step process: add custom code, create a Goal in Google Analytics which tracks the number of comment submissions and then create an advanced segment for those who converted.
Since in WordPress there is no unique confirmation page – thank you page – that visitors see once they have submitted their comment, we will need to fire a virtual page every time the “Submit” button is clicked.
We will need to modify the comments form’s code and add some JavaScript code to it. The code will fire a virtual page every time the “submit comment” button is clicked. The code for the comments form is found within the comments.php file, which can be found under your WordPress theme folder [../wp-content/themes/default/comments.php]
onClick=”javascript: _gaq.push([‘_trackPageview’, ‘/comment-submission.php’]);”
Below you will see how the code will look after the JavaScrip insertion, this depends on the version of the Google Analytics tracking code you are using:
Asynchronous snippet
<p><input onClick=”javascript: _gaq.push([‘_trackPageview’, ‘/comment-submission.php’]);” name=”submit” type=”submit” id=”submit” tabindex=”5″ value=”Submit Comment” />
<?php comment_id_fields(); ?>
</p>
Traditional snippet
<p><input onClick=”javascript: pageTracker._trackPageview(‘/comment-submission.php’);” name=”submit” type=”submit” id=”submit” tabindex=”5″ value=”Submit Comment” />
<?php comment_id_fields(); ?>
</p>
Every time the virtual page that we created in step 1 is fired, it will trigger a conversion and the hit will be available in the Goals report.
Your Goals will not work backwards, so you will need to wait for Goal data to appear in your reports. Now you have the number of comment submissions.
Is creating a goal is enough for our deep analysis? Not really! It will be nice if we can analyze traffic only from this specific segment of our blog visitors. Advanced Segments is the answer!
Now let us create an advanced segment that only shows the visits of those who submitted comments.
By applying this segment, now you will have more insight about the blog commenter’s user experience, their traffic sources, geographical locations, time on site, browsers, screen resolutions, etc.
Apply the same concept to your email subscribers, contact-us requests, social media followers or any other segment of your blog readers you are interested in learning more about.
Happy Analyzing 🙂
In today’s hyper-competitive digital market, businesses need more than just data; they need actionable insights…
As consumers become increasingly digitally savvy, and more and more brand touchpoints take place online,…
Marketers are on a constant journey to optimize the efficiency of paid search advertising. In…
This website uses cookies.