View page tracking results
I have added the Google tracking JS code to each page in my site:
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-xxxxxxx-x', 'auto');
ga('send', 'pageview', '/virtuvalPath/myPageName');
I am getting results from Google Analytics, but the results are summarized for all pages. I want to see the page views for each specific page. How can I view the results for each individual page within Google Analytics?
Thanks.
You can either
Click into each individual page link in the All Pages report, or
Add an advanced filter to filter only for your specific page, or
Create a custom report with the specific page
There are probably other methods but these should be the most direct.
Related
In one of my client site, I am seeing multiple tracker IDs without any named tracker. I don't understand why we need multiple tracking IDs for single site?
ga('create', 'UA-XXXXXXXX-1', 'auto');
ga('create', 'UA-XXXXXXXX-2', 'auto');
ga('send', 'pageview')
I'm new to Google Analytics.
You do not need multiple tracking ids for a single site. This is simply an error. The second tracker instance will immediately overwrite the first one, and hits will be recorded for the second property only.
I am brand new to the small business I'm working at and I suggested we implement Google Analytics on our website to help track traffic flow.
Well, I am not exactly computer tech savy and am having a difficult time know how to link the Tracking ID to our web pages. Am I really supposed to edit the code on every web page I'd like to track? If so, how does one even "edit code".
Thanks for the insight,
Dana
yes, the code does need to be on every page that you want to track - there should be a code like this which you get from your admin section:
<!-- Google Analytics -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-XXXXX-Y', 'auto');
ga('send', 'pageview');
</script>
<!-- End Google Analytics -->
This needs to be on every page. In answer to how to "edit code", it depends on your website. It is probably easiest to just send your code snippet to whoever built the website and ask them to place it in the head of every page - they will have an easy way to do it via a content management system or tag management system.
I am using a shiny dashboard with about 20 pages and recently implemented Google Analytics to track page views. The number of pageviews in GA seems to be the same for all pages. I think that once the home page is hit, all other pages are getting hit as well.
I need help to solve this problem. My GA.js script contains the auto script generated while creating an account with GA and this script.
ga('send', 'pageview', {'title': 'Shiny Dashboard','page': '/#shiny-tab-dashboard'});
I have generated similar lines for all the pages with different 'title' and 'page'. Thanks for helping out.
Google analytics does not record hash parameters by default so you would have to a
change your tracking code
https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#allowAnchor
Below are the changes required
Replace
ga('create', 'UA-XXXXX-Y', 'auto');
with
ga('create', 'UA-XXXX-Y', {'cookieDomain':'auto','allowAnchor': false});
We have a total of six websites. Three for two countries consisting of (mobile, desktop and store). Individual tracking code was created for each but after speaking to our developers they put a different code across each site so that we could combine the total set of data of each site in one report.
We have been navigating the sites and placing test orders but nothing is being picked up in GA Dashboard. Not in Real Time either.
Do we need to add each unique tracking code to each site? If So how can these be combined to make one complete report.
Each site has it's own unique code (example)
/* Google Universal Analytics */
(function(i,s,o,g,r,a,m) {i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-XXXXXXXX-01', 'auto');
ga('require', 'ecommerce');
ga('send', 'pageview');
</script>
But our devs have added the same code to all sites. Example
ga('create', 'UA-XXXXXXXX-12', 'auto');
[Partial answer here, as you may need to provide more code samples of your ecommerce implementation if want help debugging that.]
With the same tracking code across all sites, you effectively have a rollup property. But you will need to add specific filters so that can differentiate the traffic from one site to the other, so add a hostname prepend filter at least so that you see which site traffic is from.
If you want to see site specific data with the rollup property, you will need to create individual views for each site, in addition to your best practice views (eg. Test and Raw). Each site-specific view should have an include filter that only shows permits data for that specific site.
If you want to include an individual property for each site, then you will need to give that tracking object a specific name ( Google 'named trackers'), but at least you wouldn't need to create separate views in your rollup property.
To check your hits, use a tool like GA Debugger for Chrome, or check your developer's network tab for the GA requests.
I am making a website for an author who recently finished writing a book. I want to track the demographics of visitors to a site. I have heard Google knows an visitor's gender and country as well as age (at least approximately).
My employer (the author) and I would like to track which visitors purchase books and therefore who to target with a marketing campaign in the future. What steps do I take to access this data? Is it even possible?
First, update your tracker
Now it should looks like:
ga('create', 'UA-XXXXX-Y', 'auto');
ga('send', 'pageview');
And you need this:
ga('create', 'UA-XXXXX-Y', 'auto');
ga('require', 'displayfeatures');
ga('send', 'pageview');
Enable demographic reports in administration
In Google Analytics select the Admin tab -> Property -> Demographic and Interests data.
In the PROPERTY column, click Property Settings -> Advertising Features -> set Enable Demographics and Interests Reports to ON.
-> Save.
Documentation
Tech: https://developers.google.com/analytics/devguides/collection/analyticsjs/display-features
Admin: https://support.google.com/analytics/answer/2819948?hl=en