Anton.io blog

RSS

Track form submissions in Wordpress using contact form 7 and Google Analytics

Very useful to track signups, goals etc, found here

If you use Google Analytics to analyze web traffic on your site, I imagine you would like to track submissions through your contact forms as well. Contact Form 7 allows you to set up this type of tracking very simply. In this post, I’ll show you how to do it.

_trackEvent()

If you’ve set everything up correctly, Contact Form 7′s contact form behaves as an Ajax application and its form submission is an Ajax event. Google Analytics’ _trackEvent() method is able to track an Ajax eventwithout a real page view or redirection.

For example, let’s say that the name of your page tracker object is _gaq, and you want to track the form submission as an event. In order to do this, you will need to run the following JavaScript code when the submission event occurs:

1
_gaq.push(['_trackEvent', 'Contact Form', 'Submit']);

Using on_sent_ok action hook

You don’t need to edit any JavaScript files for running the above _trackEvent() method. Contact Form 7 provides a JavaScript action hook named on_sent_ok, and by utilizing this action, you can specify a JavaScript code that you wish to run after the form is successfully submitted.

It is quite a straightforward process for you to specify the aforementioned _trackEvent() with theon_sent_ok hook. You will find the Additional Settings field at the bottom of the contact form management page; now simply insert the following line into it:

on_sent_ok: "_gaq.push(['_trackEvent', 'Contact Form', 'Submit']);"

Note that you need to quote the codes properly and the code must be in one line.

Now, if you have set everything up correctly, when someone makes a submission via your contact form, Google Analytics will track it as an event with Contact Form as the Category, and Submit as the Action.

To verify that this is working correctly, you can check the Content > Events > Overview report page on Google Analytics 24-48 hours after a submission. At that point, you should be able to find the Contact Form category there.

Femonoe - keep your content fresh using social media

Femonoe is a startup in private beta (sign up here) that allows you to keep your content fresh using social media resources.

Femonoe uses a unique social media crawler to retrieve and store social media content from various social media networks and uses proprietary algorithms to index the results, sort results based on search terms, reveal the mood of discussions, exclude unwanted results while operating using the lowest server resources possible and at the same time performing extremely complex queries very fast.

Femonoe effectively manages big data sets and retrieves accurate results quickly and efficiently. Companies use Femonoe to create thematic searches in social networks (Facebook, Twitter, LinkedIn, YouTube, Google news) around a subject. A thematic search is formed using specific keywords (both positive and negative) and retrieves content that can be sorted based on keyword relevance, popularity and retrieval date. The output can be easily embedded on any website.

Femonoe was featured in betalist. Below is a Femonoe powered search in the topic Startups.

How to delete iPhone photo stream library

(For mac users)

Make sure you have imported your photos before you do this…

 1. Connect your iPhone to your Mac.

2. Open Preview.

3. File menu —>Import From (iPhone Name).

4. Select which photos you want to delete.  On the left of the window at the bottom there will be a red delete symbol.

credits go to MacZombie

Mar 8
Maurin Quina

Maurin Quina

Why you should consider a BYOD initiative

Richard napping #dogs #pets

Richard napping #dogs #pets

Graffiti

Graffiti

My presentation for LazyPub from Infocom Apps 2014

Flappy bird high score

Flappy bird high score