Tracking Phone Orders in Google Analytics with Proper Attribution

Aug 30, 2018 | Analytics

Plenty of businesses have some version of the following problem. Most or all of their customers originate online. Some big chunk of sales happen offline. This is most common with high dollar purchases or B2B transactions. For a lot of folks, this revenue is a mystery. It doesn’t need to be.

There’s a lot of solutions out there for this, they’re all variations of the same theme. When someone gets to the site and calls you (or chats or whatever brings in an offline step), you need to find a way to get their traffic source so it can go into your CRM or order management system. Then you either need to combine that sales data with your web analytics to get a full picture or (ideally) find a way to get that data into your web analytics platform.

Here’s one way of doing that. This is more geared toward smaller companies and is something you can accomplish without a lot of development work. Also, this is specific to Google Analytics.

Step 1 – Grab the visitor info.

When Google switched to Universal Analytics, a lot of folks were annoyed because it was no longer a matter of just grabbing traffic source info from visitor cookies to send to your other analytics tools. But we can still get the info we need for the sake of further interaction with GA. We need what’s called the Client ID (CID). It’s the unique identifier that ties a person to all of their visitor info on Google’s servers.

In this example, I use two scripts in Google Tag Manager to get this info. The first grabs the CID from GA so it’s available to do stuff with. I’m pushing it to the dataLayer so we can further work with it in GTM.

This should fire on all pages:

The next piece of it is really a matter of preference, but in my case all of this would work the best if the CID were added as a query string in the URL. This is how we accomplish that.

Obviously make sure your first script can run before this happens or you’ll get a lot of null values.

Step 2 – Call Tracking

This is pretty straightforward. My client is using CallRail. There aren’t a ton of options out there, but this is a good one IMO. Most/all of these call tracking platforms have some sort of GA integration that creates events/goals when calls happen. But in our case, the key is that they also display the URL(s) a person visited before calling. This includes our CID query string.

What happens here is the phone rep enters the order as they always would. The extra step is using the CallRail dashboard to copy/paste the CID into a custom field we had added to their order management system. From there we just have to get the data back to GA.

Step 3 – Sending to GA

Google Analytics has a system for sending hit data to GA called the Measurement Protocol. This is where your developer comes in.

Essentially what needs to happen is that as the order is processed offline, a GET or POST request happens that sends data to GA via the Measurement Protocol. Here’s an example of how those requests are built – if you’re familiar with the basics of GA’s ecommerce tracking, this is largely going to look familiar.

Transaction Hit Request

Item Hit Request

You can check your work by using Google’s Hit Validator.

That’s it! There’s some data that won’t be perfect using this method – e.g. geographic information will generally show the location of your server for phone orders. But traffic sources will reflect your actual marketing campaigns and you’ll have a full picture of revenue. Most anomalies in tracking can be resolved by applying an attribution model. In the case of this client, about 60% of their revenue happened over the phone but it all originated from the web. That’s a huge difference in numbers and our ability to judge performance.

Happy tracking!

‍

Cloudflare’s New AI Bot Controls

Overview Cloudflare replaced its single "Block AI Bots" toggle with three separate traffic categories — Search, Agent, and Training — available to every customer, including Free plan. Beginning September 15, 2026, Cloudflare is changing how these controls work,...

Google Store: A Helpful Content Horror Story

A fun discovery was posted by Matt Smith on X the other day.Oh good, Google Store is now publishing health content and outranking MayoClinic, ClevelandClinic, Healthline, and other health websites on weight loss topics. What could go wrong. Have you seen this before?...

Analysis of AI Chatbot Referrals

Kevin Indig did a great roundup of AI Chatbot referrals over at Search Engine Journal. The data in his article comes from Similarweb, which is sort of like Nielsen for websites. Calling out some of the highlights here with thoughts. AI Traffic is Insignificant as a...

Should ChatGPT be a Dominant Traffic Source?

SEJ just published an article about brands saying they're getting increased traffic from LLM chatbots. This included some very impressive stats. Viv, a period care brand, noticed a trend last summer when its website traffic increased by400%. Marketing director Kelly...

INBOUND 2024 Recap: Resilience & Opportunity

Listen to the experts discuss.

SEO Integration: How SEO Impacts Other Marketing Channels

Digital marketing is more important than ever now that everyone is staying at home. Learn how SEO can be incorporated into other marketing channels and boost your business!

Going International: Multilingual SEO Guide & Best Practices

Table of Contents What is Multilingual SEO? Defining Your Multilingual Strategy Content & Language Dexterity Technical SEO Considerations Tracking Analytics for Multilingual SEO Businesses grow and expand and in many cases that means international expansion....

A Competitor Rebrands: What Can You Do?

Taking Traffic During Moments of Opportunity In B2B SEO, seizing moments of opportunity can be the difference between staying ahead or falling behind. One of these moments popped up for a client of ours in the lease accounting software space. A leading competitor...

Magento SEO: Optimization, Tips, And Best Practices

Magento - also known as Adobe Commerce - is a “flexible and scalable commerce platform that lets you create uniquely personalized B2B and B2C experiences, no matter how many brands you have.” Magento is one of the most popular ecommerce platforms we encounter every...

The Disadvantages of SEO: Understanding Its Limitations and Who May Not Benefit

Table of Contents SEO Takes Time to Show Results High Competition can be a Barrier for SEO Uncertain and Changing Algorithms SEO is an Ongoing Investment SEO isn't for all Business Models ROI can be Hard to Measure SEO has Technical Complexities Search Engine...

Want to learn even more cool stuff? Jay Ratkowski can help!

Reach out today! We’re happy to help talk more about whatever search marketing issue is keeping you up at night.

[hubspot type="form" portal="4545270" id="14f3e659-3bb6-4032-b293-dfcdd4f63e2e"]