Cross Domain Tracking

Discussion in 'Google Analytics' started by deeseo, Jun 2, 2010.

  1. #1
    I'm trying to figure out how to track a subdirectory in a separate report.

    Ex.
    www.sample.com = Report 1
    www.sample.com/products = Report 2

    Any suggestions?

    Thanks,
    Devin
     
    deeseo, Jun 2, 2010 IP
  2. 1rapid

    1rapid Guest

    Messages:
    54
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    at overview above sample.com --> " + Add new profile"
    click that .
    dont put report 1 code in "sample.com/products"
     
    1rapid, Jun 2, 2010 IP
  3. twin_s

    twin_s Peon

    Messages:
    99
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    It depends on what you want to achieve....do you want to get only standard metrics for sample.com/products or do you want to be able to track goals and perform much deeper analysis for this subdirectory?

    If you want to get only standard metrics you can do so by creating a custom segment for your reports and then viewing that segment across reports. If you want the later I would suggest that you create a new profile using filters. However, the new profile will only start gathering data after you create it, so you will not be able to see historical data just yet.
     
    twin_s, Jun 7, 2010 IP
  4. gageek

    gageek Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I highly recommend you to create a duplicate profile and apply a filter that show the traffic coming to the particular URL.
     
    gageek, Jun 8, 2010 IP
  5. aeroz1

    aeroz1 Active Member

    Messages:
    492
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #5
    Hi,

    I need to track conversion from domainA.com/pageA to domainB.com/pageB. We have a button on pageA, but after clicking it, it will call a server-side function to redirect it to domainB/pageB. Thus, guides from Google Analytics Help Center - How do I install the tracking code if my site spans multiple domains? doesn't apply here.

    Can anyone help me with this?
     
    aeroz1, Jun 9, 2010 IP
  6. imperialDirectory

    imperialDirectory Peon

    Messages:
    395
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I had been tracking cross domains on my sites. Here's copy and paste of the code I used. I have two separate tracking, one for current domain and one for all domains
    "a" is tracking for current domain, "b" is tracking for cross domains. If you only need to track cross domain, then you can just use code from "b"

    
    <script type="text/javascript">
        var _gaq = _gaq || [];
        
        _gaq.push(['_setAccount', 'UA-xxxxxxxx-1']);
        _gaq.push(['_trackPageview']);
        _gaq.push(['b._setAccount', 'UA-xxxxxxxx-1']);
        _gaq.push(['b._setDomainName', 'none']);
        _gaq.push(['b._setAllowLinker', true]);
        _gaq.push(['b._trackPageview']);
        (function() {
            var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
            ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
            (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ga);
        })();
    </script>
    
    Code (markup):
     
    imperialDirectory, Jun 9, 2010 IP
  7. jucychau

    jucychau Guest

    Messages:
    42
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Create a subdomain of that folder, that would be the easiest way.
     
    jucychau, Jun 20, 2010 IP