Having a blog and generating updated content has become a requirement to any marketing strategy. However, while it is important that our blog gets enough traffic, one of the main objectives, besides the positive impact on the image of our startup and the contact with our existing customers, is the generation of potential new customers; but this requires that visitors to the blog will also have the opportunity to meet our service; and get all the details in www.Toky.co.
To bring lead visitors to our website, we use links included in the articles, because we decided that our blog would not have banners or images that distract visitors from our content. But how do we know how much traffic on our site comes from our blog in English or in Spanish?
Knowing the volume of traffic from the blog that is sent to the main site of your company will help you to test the effectiveness of the blog in your marketing strategy.
After analyzing several alternatives we decided to use Mixpanel for this task and we are going to tell you how you can do it as well.
Installing Mixpanel
To use Mixpanel, you must create an account at www.mixpanel.com. The free plan will be enough to start.
After we created the Mixpanel account, we go to our blog and edited the HTML of the main template embedding in the <HEAD>
tag.
<!-- start Mixpanel --><script type="text/javascript">(function(e,b){if(!b.__SV){var a,f,i,g;window.mixpanel=b;b._i=[];b.init=function(a,e,d){function f(b,h){var a=h.split(".");2==a.length&&(b=b[a[0]],h=a[1]);b[h]=function(){b.push([h].concat(Array.prototype.slice.call(arguments,0)))}}var c=b;"undefined"!==typeof d?c=b[d]=[]:d="mixpanel";c.people=c.people||[];c.toString=function(b){var a="mixpanel";"mixpanel"!==d&&(a+="."+d);b||(a+=" (stub)");return a};c.people.toString=function(){return c.toString(1)+".people (stub)"};i="disable time_event track track_pageview track_links track_forms register register_once alias unregister identify name_tag set_config reset people.set people.set_once people.increment people.append people.union people.track_charge people.clear_charges people.delete_user".split(" ");
for(g=0;g<i.length;g++)f(c,i[g]);b._i.push([a,e,d])};b.__SV=1.2;a=e.createElement("script");a.type="text/javascript";a.async=!0;a.src="undefined"!==typeof MIXPANEL_CUSTOM_LIB_URL?MIXPANEL_CUSTOM_LIB_URL:"file:"===e.location.protocol&&"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js".match(/^\/\//)?"https://cdn.mxpnl.com/libs/mixpanel-2-latest.min.js":"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js";f=e.getElementsByTagName("script")[0];f.parentNode.insertBefore(a,f)}})(document,window.mixpanel||[]);
mixpanel.init("YOUR TOKEN");</script><!-- end Mixpanel -->
We must replace YOUR TOKEN with the token that appears when you click account and see the tab Projects.
We do the same process in the template of our main website, with the same javascript code and token.
In Toky, we want to help you better communicate with your customers, know what we offer for your business.
Tracking events
We must track the events in our blog and Toky website, so we must enable Mixpanel to track views on every site.
In our case, we did it first in the main template of each of our blogs. We decided to name the event Blog View
and we added the following code in the <HEAD>
tag, although it may be within <BODY>
too.
<script type="text/javascript">
mixpanel.track("Blog View");
</script>
We edited the main template of our website and we added the same code, but with the event Page View
:
<script type="text/javascript">
mixpanel.track("Page View");
</script>`
If everything went ok you can go to the website and blog then you will see the events in Mixpanel reports like Segmentation. You can view the help if you have problems
Creating the funnel
Basically, a funnel is a graph showing several steps and indicates how many elements of one step, goes to the next. In our case, we need to know how many visitors of our blog, makes part of our website traffic.
In terms of Mixpanel events, we need to know how many visitors who had a Blog view
had a Page View
event after, which we did as follows:
- We logged in Mixpanel account and made click on the Funnels option. On the right side, we'll see a dropdown with some buttons beside.
- Click on the plus + sign next to the dropdown and we can see Create a new funnel on the right. Here we enter the name of the funnel and in the Step 1 write
Blog View
and the Step 2Page View
and Save.
You can add more steps in each funnel, but this depends on what you want to evaluate. If you have a purchase event, for example, you could add it to know how many blog visitors ended up making a purchase on your site.
Checking the data
After creating the funnel and waiting for a few days events are logged, in this same section, we can find similar results as those you can see in this sample image.
In this case, we could say that from all the blog traffic, 34.85% visited the main site. Which is a good result, considering that visitors to your blog came by your content that may not always be related to your product.
We can see conversions for certain periods of time.
In the graphs at the bottom, we can segment data such as those from countries conversions among other groups.
This information allows us to determine if our blog is generating visitors and traffic to our site as these ultimately are the ones that can generate leads.
If you want to know more about Toky and all we can offer for your business, visit www.toky.co.