Sogou Explorer and Baidu Browser are hidden in Google Analytics

If your website serves the Chinese market you’d want it to work well and render properly for your customers. I was checking the browser stats for a Chinese website and my colleagues were surprised to see that two of the popular Chinese browsers are missing from the list: Sogou Explorer and Baidu browser.

So I installed them to check what’s exactly going on for these two. Let’s start with Sogou Explorer by opening the developer tools console on the Network tab (you can check Preserve log box) and loading our website with custom campaign parameters like ganotes.com/?utm_source=test&utm_medium=test&utm_campaign=test. Search for ‘collect’ which is a part of the GA hit and look at the headers:

Sogou user agent

The user-agent shows a long string: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.22 Safari/537.36 SE 2.X MetaSr 1.0

When we go to Google Analytics to check how the traffic from this specific source / medium is recorded we see:

Sogou in GA

and the browser version is:

Sogou version in GA

So, in my case my session from Sogou Explorer is recorded as a session from Chrome 49.0.2623.22, that’s why there’s nothing mentioning Sogou in Google Analytics Browser report. Depending on its internal logic, sometimes it will show up as Chrome and sometimes as Internet Explorer.

Now, let’s do the same for Baidu Browser.

Baidu user agent

The user-agent shows a similar string: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.124 Safari/537.36

When we go to Google Analytics to check how the traffic from this specific source / medium is recorded we see:

Baidu in GA

and the browser version is:

Baidu version in GA

Similar to Sogou Explorer, Baidu browser is recorded in GA as Chrome 43.0.2357.124, and there’s no way to distinguish between real Chrome sessions and these ‘fake’ ones.

Running Hotjar polls on specific events through Google Tag Manager

Recently I had to run a Hotjar poll after a successful signup uncovering hooks. We wanted to ask users what persuaded them to sign up. But our registration is not happening on a dedicated thank-you page – there’s a GTM data layer event which is loaded when a signup happens.

For Plus and Business accounts (paid) Hotjar offers an option in poll settings called JavaScript Triggers. So that’s what we’ll use here. Let’s build a new poll by going to Polls – New and give it a name.

On the Targeting step we’ll click On pages I specify and select the last option (unfortunately it will be active in paid plans only)

Hotjar polls JS trigger

We’ll call the Hotjar event ‘success’, so that’s what I’ll enter here:

poll settings

Finish the rest of the poll setup: Question, Appearance and Behavior, and let’s head to Google Tag Manager to add the special JavaScript trigger that will show the poll on the specific event we want.

Start by creating a new Custom HTML tag in GTM. Give it a name and paste the following in the HTML box:

<script>
hj(‘trigger’, ‘success’);
</script>

It comes from the Hotjar documentation on JavaScript triggers.

Here’s our tag, where I’ve selected an existing datalayer event for trrigger:

Hotjar poll tag in GTM

That’s it – just save and publish the tag in GTM and enable your poll in Hotjar!

Event-based goals: which page a user converted on

Let’s look at the common scenario where you track goals with events. This could be a contact form submission, newsletter subscription, phone number click or other type of interaction where you don’t have a distinct URL to use for destination URL in GA goals settings. You can have the form / link on multiple pages on your site and you want to understand which page a visitor was on when they completed the conversion.

Our example is a hotel booking website where we have a Live Chat button on every page. A simple way to check you conversion numbers is to compare them with the unique events for the same event category and/or action / label. Let’s go to Conversions – Goals – Overview and see how many conversions we have for the Live chat click goal:

goal completions

Now, we’ll check Behavior – Events – Top Events and filter for the same event dimensions we’re using in the goal settings:

event category

So far, great – they match. At this point, simply select Page as secondary dimension and sort by Unique Events column:

event pages

This is the list we want – almost 40% of the users who clicked the Live Chat button were on the home page, and another 30% were on contact-us and rooms pages. You can export the list and group the pages or analyze further.

5 Google Analytics posts you don’t want to miss in July

Here’s again the last post of the month saved for the top 5 interesting Google Analytics related resources I found on other sites. Here are the five for July – you may want to bookmark those as they can be very useful:

Vimeo Tracking with Google Tag Manager

If you want to track how users are interacting with your embedded Vimeo videos, here is a step by step guide to setting up Vimeo tracking using Google Tag Manager (GTM) from Cardinal Path.

Using the Google Analytics Site Search reports

This Loves Data post shows you how to configure your Site Search reports in Google Analytics, explains the Search Terms, Pages and Usage reports, how to understand the post-search navigation and identify post-search issues.

9 Ways to Ensure Ad Tags Work in Google Tag Manager

Implementing tags in GTM from different platforms can be tricky especially if they are custom and require values that are not readily available. LunaMetrics shows 9 ways to ensure they work.

Visualize Any Data With Free Google Data Studio

A very nice walk-through Google’s new Data Studio product: what to use it for, dynamic updates through its live connection with Google products, great sharing and visualizing capabilities.

The Google Analytics Audit Checklist

Use this Google Analytics audit checklist based on Google Sheets from Distilled to make sure your setup provides accurate measurement and your GA account is free of spam or internal sessions, has proper goal tracking and accurate ecommerce tracking.

P.S. Got a Google Analytics question? Send it to me and I’ll try to answer it on the blog.

5 Google Analytics posts you don’t want to miss in June

Here’s again the last post of the month saved for the top 5 interesting Google Analytics related resources I found on other sites. Here are the five for June – you may want to bookmark those as they can be very useful:

How-to Match Your Google Analytics Transactions With Reality

Usually ecommerce clients ask me why the sales numbers in GA don’t match their shopping cart systems. In this article you’ll learn the acceptable level of difference, what the reasons may be and some workarounds when your shopping cart doesn’t allow tracking.

AdWords Call Conversion Tracking with Google Tag Manager

This post shows you how to use Google Forwarding Numbers and GTM to measure calls from your website (not your ad extensions) as success metrics in the evaluation of your Google AdWords account. You will be able to see which campaigns, ad groups, and keywords produce the greatest call volume and optimize accordingly.

Android Google Search App Traffic Appears as Referral Source in Google Analytics

For a month or so you’ll see a new referral source in GA reports called “com.google.android.googlequicksearchbox”. It’s actually organic search traffic from the google android app. Updates were released on 6/9/16 and now referrals from this source are shown as Direct traffic.

Measure Google Tag Manager Event Duration

In this post Simo shows how to measure how much time it takes for GTM events to resolve. He uses User Timings to measure all sorts of important milestones, such as just how long it takes for a font or jQuery library to download.

Using Google Tag Manager to Dynamically Generate Schema/JSON-LD Tags

Here you’ll learn how to use Google Tag Manager to insert JSON-LD into a page, allowing you to add Schema markup to your site without having to touch the site’s code directly. The example is for blogs, but a similar approach can be used for other types of sites too.

P.S. Got a Google Analytics question? Send it to me and I’ll try to answer it on the blog.