Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Google Analytics - tracking across another domain

Featured Replies

Hi

 

I have built a website that uses an online booking system. The booking system is on another URL / server but integrates with the site, and I wanted to track all the pages as one site.

 

I looked at the Google help pages for cross domain tracking, and installed the extra code snippets on the relevant pages:

 

My pages:

_gaq.push(['_setAllowLinker', true]);

_gaq.push(['_setAllowHash', false]);

 

Booking system pages:

_gaq.push(['_setDomainName', 'none']);

_gaq.push(['_setAllowLinker', true]);

_gaq.push(['_setAllowHash', false]);

 

It's tracking all the pages OK and they are showing up in the visits, but in the referral section of the Analytics reporting, every time someone clicks through to the booking system from the main site or back again to the main site from the booking system, this is showing up as a referral, even though it will be one visitor, and it's inflating the number of visits.

 

Have I done anything wrong in the setup, or is this how it's supposed to work? Is it possible to avoid this happening if so?

 

The site is here.

 

Many thanks as always

Jennie

Hi Jennie,

 

The site looks great. does it job well. Good job!!

 

How have you set up the report? If you set up a custom report you can show when and where people abandon the booking process. You could actually the highlight those that leave the process and go back to the site.

 

You might even be able to work out why this happens (if it becomes a regular thing) and fix it. e.g. Maybe adding some additional information in the booking process.

 

Charlie

  • Author

Hi Charlie

 

Thank you for your reply, I've not explored custom reporting in GA so I'll look through that and see what can be done.

 

I sort of assumed that if the pages were correctly linked using the additional tracking code, then the pages on the booking system would be treated as part of the site, but it appears not.

 

Thanks too for the kind remarks about the site design - it's really nice to hear you say that. I've been busy on link building as the domain name keywords are super competitive, but letting up on that now to expand the information section on the site.

 

Best wishes

Jennie

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.