Google Analytics Cross Domain Setup
I recently had quite a problem with a site that used a different website name for the checkout process compared to the regular non-secure site. For example non-secure site is www.site.com, secure site is secure.site.com. This is addressed in the Google Analytics FAQ in a number of places, mostly to do with 3rd party shopping carts which doesn’t really apply here. In addition this issue is mentioned by a number of other people but their solutions were missing something as well.
After much digging around and wrong turns from the Google Analytics FAQ I came up with the following code that seems to handle this situation perfectly.… Read the rest