Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You will need to track your base domain '.savoyhotel.ro' (notice the extra . At the beginning), and inside analytics set up rules to filter domains and subdomains. For example on some of our sites we have filters in analytics which permit us to display traffic for main domain, sub domain, and combined, while using a singular analytics tag.</p> <p>On iPad right now so a bit of a pain to elaborate but if no one posts a more detailed answer ill post the steps to follow in a few hours when I get home to my pc</p> <p>But it basically boils down to what is said here <a href="https://stackoverflow.com/questions/12670174/setting-up-sub-domain-include-filter-in-google-analytics">Setting up sub domain include filter in google analytics</a></p> <hr> <p>Update:</p> <p>1st, switch back to using normal analytics code, and add the . to the front of the domain</p> <pre><code>&lt;script&gt; var _gaq = _gaq || []; _gaq.push(['_setAccount' , 'UA-15318659-1']); _gaq.push(['_setDomainName', '.savoyhotel.ro']); _gaq.push(['_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'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); &lt;/script&gt; </code></pre> <p>Now if you like create a little wrapper function to facilitate calling trackPageView from you code whenever you need to</p> <pre><code>function trackPageView(page) { window._gaq = window._gaq || []; window._gaq.push(['_trackPageview', page]); } </code></pre> <p>This is the only thing you need to track ALL pageviews from your main domain + subdomains</p> <p>Now if you like you can setup profiles in analytics to have 1 profile that only shows analytics from you main domain, and another profile from your subdomains, and thats where <a href="https://stackoverflow.com/questions/12670174/setting-up-sub-domain-include-filter-in-google-analytics">Setting up sub domain include filter in google analytics</a> come in.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload