Read the referring paths under your own domain to find pages without the tracking code, add it there, and set the code on every subdomain to share one cookie domain and ignore your own site.

Your own address among the referrers

In the referrals report, near the top, sits a name you know well: your own domain. It is credited with a steady stream of visits, and with some of last month's enquiries.

A site cannot refer visitors to itself in any useful sense. The row means Analytics lost track of where those visits really began, and filled the gap with the last page it could see.

The real sources, whether a Google search, the newsletter or a link from a supplier, are short by the same amount.

Where Analytics thinks a visit began

When a page with the tracking code loads, the code reads the address of the previous page and stores the source in a cookie, along with the start of the visit.

Later pages in the same visit carry that source forward. An enquiry made on the fifth page is credited to whatever brought the visitor to the first.

Your own domain appears as a source only when the code believes a visit is starting partway through the site, with one of your pages as the page before.

The usual causes

That happens in a handful of predictable ways.

Each of these hands the code a visitor who seems to have just arrived from your own site, and the earlier source is replaced.

Finding the pages without code

Click your own domain in the referrals report. The list beneath it shows the referring paths: the pages visitors were on just before Analytics picked them up again.

Those are your suspects. Open each one, view its source and search for your account number, which starts with UA. A page where it is missing needs the code.

A developer can check every page of a site automatically, which helps most after a redesign, when a change of template can leave a few pages behind.

A subdomain that keeps its own cookies

A store at shop.yourdomain.ca or a blog at blog.yourdomain.ca counts as a separate site to the tracking code unless told otherwise, and each part keeps its own cookies.

A visitor who moves from the main site to the store starts a new visit there, referred by your main site. The search that brought them and the order they place part company.

The fix is a line in the code on every page of both parts, setting its cookies on the main domain, plus a line telling it to ignore your own domain as a referrer.

A worked example

A small jerky maker in Fort St. John sells beef and salmon jerky at markets and online. Its recipes and story sit on the main site, and its store runs on a subdomain with its own template.

The referrals report listed both of its own addresses as leading sources, and most online orders were credited to the main site rather than to searches or the newsletter.

The referring paths showed two faults. Visitors crossing from the recipe pages to the store were starting new visits, and a wholesale price page, built by hand, had no code at all.

The developer set the same cookie domain in the code on both parts, told Analytics to ignore the business's own domain as a referrer, and added the code to the price page.

The day of the change was marked with an annotation in Analytics, so later comparisons start from the right date.

With one set of cookies across both parts, a visitor who reads a recipe and then buys a bag stays in one visit, and the order keeps the search or newsletter that began it.

What the fix cannot recover

Past reports stay as they were. Visits already credited to your own domain will not be reassigned, so compare sources only from the date of the change onward.

Returning visitors may look new for a while, because the code starts fresh cookies once its domain setting changes. The effect fades as people come back.

An annotation on that date explains the shift to anyone reading the reports later, including you, months from now.

Telling the parts apart

When one profile covers both parts, a page at /about on the store and a page at /about on the main site can show up as a single line in the content reports.

A profile filter that adds the subdomain to each page address keeps them apart. Try it in a new profile first, and keep an unfiltered profile alongside it.

Payment pages on another domain

A payment page on another company's domain can cause a similar distortion. Buyers return to your thank-you page from the payment service, and the order is credited to it.

Telling Analytics to ignore that domain as a referrer keeps the order with its real source. Ask whoever set up the store to check both settings together.

The counter-case

On a small site whose own domain sends a trickle of visits and no enquiries, the distortion is minor, and the search for missing code can wait for the next round of changes.

The main sources still appear in roughly the right order, which may be enough for a business that reads its reports a few times a year.

A subdomain that holds the store or the bookings is different. Every purchase passes through it, so the split falls exactly on the visits that matter most, and that setup is worth fixing now.

Restoring the real sources

  1. Open the referrals report and click your own domain.
  2. List the referring paths it shows.
  3. Check each page's source for your account number.
  4. Add the code wherever it is missing.
  5. Set one cookie domain on every subdomain.
  6. Ignore your own domain as a referrer.
  7. Annotate the date of the change.

Step five is essential when a store or booking system lives on a subdomain. Without it, every buyer who crosses over starts again, and the source of each sale is lost at the till.

Rows from webmail servers split another source, the email a business sends, across the same report, as explained in webmail addresses scattered through the referrals report.


Frequently asked questions

Why does my own domain appear as a referrer?

Analytics lost track of where some visits began, usually because a page lacks the tracking code or a subdomain keeps separate cookies, so the visit seemed to restart.

How do I find the pages missing the code?

Click your own domain in the referrals report and read the referring paths. View the source of each page listed and look for your account number.

Why does a subdomain cause self-referrals?

By default the code treats it as a separate site with its own cookies, so moving between it and the main site starts a new visit credited to your domain.

Will the fix correct last month's reports?

No. Visits already recorded keep their old sources. Mark the date of the change with an annotation and compare sources only from then on.

Why do returning visitors look new after the change?

Changing where the code sets its cookies means it starts fresh ones. The effect fades as visitors come back and pick up the new cookies.

Can a payment page on another domain cause the same problem?

It can. Buyers returning from the payment service may be credited to it. Telling Analytics to ignore that domain as a referrer keeps the sale with its real source.

West Coast Media Solutions Inc. provides web design, web development, hosting, digital marketing, and business consulting to organisations across Canada, drawing on more than twenty-five years in the field.

Your own domain near the top of the referrals?

Add us as a user on your Analytics account, and we will trace the self-referrals and list the code changes they need.

Start a Conversation