Phone and Email tracking with Google Analytics and jQuery

Update: Handle tag manager’s dataLayer and new Analytics gtag into script Correctly print out log As explained in email tracking and phone call tracking articles before, it’s possible to track phone and email click using Google Analytics event. Now what if we want to track both of them? We can simply copy and paste from both articles and it will work fine. Alternatively, we can consolidate the two scripts into one and save some spaces. The requirement for this script

Continue Reading

Email tracking with Google Analytics and jQuery

Email Tracking With Google Analytics and jQuery

Similar to setting up phone call tracking, now let’s set up an email tracking using Google Analytics and jQuery. We will make use Google Analytics event tracking to help us achieve this. The requirement for this script to run successfully is to have the email wrapped in <a> tag with mailto: href. Let’s say your email tag looks like below: [crayon-5a617fd40aa75498941511/] Now you can put the following script after you load Google Analytics and jQuery. [crayon-5a617fd40aa7d520120164/] What does the above script do? The

Continue Reading

Setting up phone call tracking with Google Analytics and jQuery

Setting up phone call tracking using Google Analytics can be confusing and devastating because it doesn’t go to a certain page, so we cannot use pageviews to easily track the conversion. The only available option is to use Google Analytics event tracking. In this post I will show you an easy way to track any phone number using Google Analytics and jQuery. The requirement for this script to run successfully is to have the phone call wrapped in <a> tag

Continue Reading

Google AdWords Conversion Tracking in Contact Form 7

Track Conversion using Google Adwords and Contact Form 7

You’re using WordPress and Contact Form 7 and everything seems great. But one day, you need to track in Google AdWords how many people use the contact form to see the conversion rates. Unlike some contact form plugins, Contact Form 7 does not generate a thank you page after submitting the form. This will make it hard to embed Google AdWords Conversion Tracking Code. The good news is Contact Form 7 allows you to attach a function call after form

Continue Reading