Google Analtyics Cross Domain Tracking - in a form
-
I have a 3rd party booking engine that is causing my own domain to show up as a top referreral in google analytics. The vendor is on my very last nerve So they're not helping.
Would anyone be interested in helping a newbie out with a frustrating problem?
Code:
Reservations Page -
function SubmitReservationForm() {.
.
.
.
ResLink = "http://www.bookingengine.com/res/vn4/checka.aspx?month=" + Month + "&day=" + Day + "&year=" + Year + "&nights=" + Nights + "&rooms=" + Rooms + "&adults=" + Adults + "&children=" + Children + "&B1=Check+Availability&hotelid=xxxx"
pageTracker._link(ResLink);
return true;
}On Every page:
Any thoughts would be appreciated! I believe the problem is pageTracker._link(ResLink); but I'm clueless on fixing it.
-
Were you able to get this working, or do you still need a hand? If you got it working, would love to know the solution; otherwise we're happy to take another stab at this for you.
-
Thanks I'll take a look again. My form is special I guess, you leave the site and there's no iframe
-
The difference between link and form is as following: on the form, the user stays on your website, interacts with the 2nd parties website in an iframe and can click on the menu on the left - this causes the referral.
I don't know how much you know about it - maybe the following can help you:
Have a look at this page: http://www.google.com/support/analytics/bin/answer.py?answer=55532 - this describes the basics regarding tracking of 3rd party websites.
More details can be found here: http://code.google.com/apis/analytics/docs/tracking/gaTrackingSite.html
Have you tried asking the question on the Google Analytics Google group? I haven't used this feature by now - maybe there are some ppl that could help you easily.
-
http://www.ronjonresort.com/reservations/default.aspx - That's the page, since your'e being sooo helpful, I should make it easy.
Yes they leave my site. Click Check Availability
-
clear - this is because the user is leaving the page and doesn't continue on your page after tracking the link to the external domain.
Does the user continue on your page after submitting the form?
-
I think I could, but supposedly this should work! Google says it works, my vendor says it works (though I don't believe them :P) and I have it working for a link just not a form
-
I don't own the second domain, the booking company does. So I don't care and can't control what they do on their end. So this is all on my site.
This problem is using the form rather than a traditional link, when I have straight link like this, I don't get the erroneous enteries as my domain as a referral in GA.
onclick="pageTracker._link(this.href);return false;">
Book NowThanks for your help BTW
-
Why don't you just filter this out in GA?
-
Sure. But would you like to track these page views on your domain, or on the 2nd domain? If for the 2nd, you need another (new) tracker object initiated for the 2nd domain. If not, you could potentially use event tracking ( http://code.google.com/apis/analytics/docs/tracking/eventTrackerGuide.html ) - but unfortunatelly you cannot use this for funnels. If you need to track the sales on your 1st domain and with pageviews you might track virtual urls like e.g. "/__actions/sale/step1?xxx" - they can be used for the tracking of goals and funnels.
-
I changed the names for the post, not sure that's necessary. bookingengine.com is the second domain that hosts our online reservations systems. I realy would like to track through out the reservations making process which is the reason for the tracker object.
-
I guess, http://www.bookingengine.com is not your domain, right? Why do you need this tracking in the javascript function SubmitReservationForm() - is this that your partner can track the sales? The _tracker - object you are using in this function looks like your own - so this is tracked on your domain. If you not need the tracking, just comment it.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
What Analytics Do You Use To Track IOS and Android?
We have about 600k downloads of our app and would like to know what cost effective analytics tool you use to gain insight into what your app users are doing? Thanks! Best... Mike
Reporting & Analytics | | 945011 -
Different statistics in Google Analytics
Hi! A client of mine is having some trouble on his Google Analytics overview. When he checks the yearly report with number of visitors, new visitors, returning, ... he gets statistics that doesn't match mine. Also, he gets a notation from Google that no hits were fired, although the script is still there. On the other hand, I (logged in with another account) am seeing all statistics correctly. FYI: no filters were installed, nor segments, ... Why does the client see different and incorrect statistics? There should be a setting or something I'm overseeing. Hope you guys can help.
Reporting & Analytics | | conversal0 -
Subdomain tracking in GA
Hi Moz community. Wonder if you could help us out with a baffling Analytics issue. Are there any reasons why the _setDomainName() function in Google Analytics wouldn't track across subdomains correctly? We have been seeing visits to a subdomain come up as referral traffic, even after implementing the right tracking code. Would be interested to hear everyone's thoughts on this. Thanks in advance.
Reporting & Analytics | | mrdavidingram1 -
Does Google encryption of keyword data impact SEO revenue reporting in Google analytics?
Hi there, I know Google has been encrypting SEO keyword data which they rolled out in September 2013. My question is - will this impact SEO revenue figures reported in Google analytics? I have been monitoring SEO revenue figures for a client and they are significantly down even though rankings have not lowered. Is this because of Google's encryption? Could there be another reason? Many thanks!
Reporting & Analytics | | CayenneRed890 -
Google Analytics Site Search to new sub-domain
Hi Mozzers, I'm setting up Google's Site Search on a website. However this isn't for search terms, this will be for people filling in a form and using the POST action to land on a results page. This is similar to what is outlined at http://support.google.com/analytics/bin/answer.py?hl=en&answer=1012264 ('<a class="zippy zippy-collapse">Setting Up Site Search for POST-Based Search Engines').</a> However my approach is different as my results appear on a sub-domain of the top level domain. Eg.. user is on www.domain.com/page.php user fills in form submits user gets taken to results.domain.com/results.php The issue is with the suggested code provided by Google as copied below.. Firstly, I don't use query strings on my results page so I would have to create an artificial page which shouldn't be a problem. But what I don't know is how the tracking will work across a sub-domain without the _gaq.push(['_setDomainName', '.domain.com']); code. Can this be added in? Can I also add Custom Variables? Does anyone have experience of using Site Search across a sub-domain perhaps to track quote form values? Many thanks!
Reporting & Analytics | | panini0 -
Analytics package beside google analytics
Hi, What analytics package can i use to track ecommerce transaction besides gogole analytics that is free of charge? Thanks Arthur
Reporting & Analytics | | VivaArturo0 -
Google anomaly
Hi, As per Google's Keyword Tool , the exact search volume for a particular keyword is 22000. As per Google's Webmaster Tool , my SER for the same keyword is 5.8 BUT , I see only 500 impressions for this keyword in webmaster ! Can someone help decipher this behavior ?
Reporting & Analytics | | iamnew0 -
Does using Google URL Builder override original source in Google Analytics?
During a free trial on Tatango, we send daily emails to customers to give them advice, resources, etc. We started using Google URL Builder http://www.google.com/support/analytics/bin/answer.py?answer=55578 to create individual links in each of these emails, but when the customer purchases a subscription now, the source in GA isn't Google, Facebook, Twitter, etc. they are all showing up as the source we created using the URL builder for each email. Does Google URL builder override the original source in Google Analytic?
Reporting & Analytics | | Tatango0