Home > Google Analytics > Google Analytics _setdomainname Not Working

Google Analytics _setdomainname Not Working


Have you any suggest to resolve my issues?! With this seeming user-friendliness comes a lot of opportunities to break your GA data without realizing it. If you are starting a new implementation we recommend you use the latest version of this library, analytics.js. First, when you click on a link from one domain (mydomain.com) to the other (yourdomain.com), are parameters beginning with ?__utma=something appended to yourdomain.com? this contact form

Replace ‘UA-XXXX-Y' by your account number and then copy-paste this code in the head section ( …. of all the web pages of your primary domain. If the answer to either of these questions is “no,”your GA is likely breaking when people move between them. In one case there is the "article" site and the other is a about the author page. We'd also like to learn a little more about our web visitors, to see if we have similar visitor demographics, for instance. dig this

_setdomainname Universal Analytics

How would you recommend to structure the account for an ecommerce that has multiple subdomains based on language? Main Website Domain: www.example.com Asynchronous syntax script var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-12345-1']); _gaq.push(['_setAllowLinker', true]); _gaq.push(['_setDomainName', 'example.com']); _gaq.push(['_trackPageview']); ... View My Blog Thanks a lot.

1 0 Reply

Great post Tom! Choose Custom Filter and select Advanced on the Filter type settings.

As a result, GA will treat each as a separate visit, which also affects other metrics. Back to Top Tracking Between a Domain and a Sub-Directory on Another Domain Another common tracking scenario is to track visitor and traffic data between a single domain and a sub-directory At times such problems can be solved by structuring multiple trackers , but not always. Google Analytics Subdomain Tracking GA will see this standard event as a second “hit” and will, therefore,drop your bounce rate and exit rate to 0%. 5) A third-party “widget” plugin sends you bad data.

Java is a registered trademark of Oracle and/or its affiliates. _setallowlinker The passing of the cookie data via these three methods links two page views under a single session. If you expect multiple domains to be tracked together, you’ll want to double-check two tracking setups on your site. http://stackoverflow.com/questions/9534793/google-analytics-cross-domain-tracking-and-setdomainname What is cross-domain tracking?

When we use the "All sites" property, we actually do want to see the data for the page or category across all subdomains. Google Analytics Multiple Domains For exisiting implementations, learn how to migrate from ga.js to analytics.js. If you blog and your shopping cart have already their tracking id, you can do 2 things… The first option, it to change the tracking id of one of your domain. Advance your marketing skills: Local Marketing | Content | Social Media Get started with: The Beginner's Guide to SEO The Local Learning Center The Beginner's Guide to ContentMarketing Q&A Get answers


I thought the upgraded analytics was supposed to make this easier.  This is a new website. I have www.domain.com and store.domain.com Its hard to tell the difference between / and / of I make it a standard practice now when creating a new web site to create Dev, QA, and Live profiles. _setdomainname Universal Analytics Could you still do cross domain tracking by just adding the shopping domain as the cross domain for the blog ? _setdomainname None Async Snippet (recommended) _gaq.push(['_setCookiePath', '/myBlogDirectory']); Traditional (ga.js) Snippet pageTracker._setCookiePath("/myBlogDirectory"); parameters String newCookiePath New cookie path to set. _setDomainName() _setDomainName(newDomainName) Sets the domain name for the GATC cookies.

For the data in this aggregated view to be meaningful, it will need to ignore self-referrals, and this is configured at the property level, meaning that all views will ignore self-referrals, weblink This happens when you add ‘sub-domain GATC’ to all the web page of the sub-domains. This is because Google Analytics uses first party cookies which can be read by only that domain (website) which issued it. In order to set up tracking for your store, you will need to use the _setCookiePath() function in your tracking code, like this: Asynchronous syntax //Tracking Code Customizations Only var _gaq How Does Google Analytics Track User Behavior At A Participating Website Quizlet

Check out Part 2 of this post for ways you can use the interface to identify other ways your data might not be tracking like you expect. Fortunately, they're really easy to deal with.If you have the old ga.js (or doubleclick.js) tracking code, simply add your domains as ignored referrers in your tracking code: If you need to I use the same GATC on all domains (multiple top-level domains). navigate here Purchase confirmation

location: Ejunkie.com Traffic source direct Keyword unknow Track page view YES!

Hope that helps.

Submit Cancel Aoife_Lucey 2014-12-03T05:25:46-08:00 Hi Tom, I came across this article while doing a little research. _linkbypost It is the path part of a URL. This method is used to share cookie information among: Multiple domains Multiple domains with multiple sub-domains If you are transferring visitors from one domain to another via forms, then add _linkByPost()

In addition, Analytics adds an additional integrity check to cookies by default.

Can the captain change players' positions without permission from a coach or manager? I tried it and got that the parameters from the code appended by . (dot) after the landing page's own parameters. Modify your cross-domain view (profile) with a filter to show the full domain in your content reports. Analytics.js Subdomain more hot questions question feed about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation Science

nirzari What if the landing page already has its own parameter ? Sorry, Cookie Monster—I'm not talking about THOSE cookies! Unfortunately I can't use multiple G.A. his comment is here In my case I have a website and a couple of subdomains for a blog and some landing pages.

There's one thing we're a little confused about though. This method returns a string of all the GATC cookie data from the initiating link by appending it to the URL parameter. Your code on both your sales page and thank-you page will look like this: