So we do the event. We set it to a Custom category group, we define the action as PageLoad because a user isn’t specifically interacting with this event. Then we set the Label as to what the event is doing. We add a 0 to the value (you don’t have to add an actual value there if we’re not using it, but I’m personally uncomfortable passing nothing). We also then set the non-interaction value to true. This is also key if you use an event here. If you don’t set it as true, then the event is considered a page interaction, and it will affect your bounce rate from the landing page. Essentially rather than someone coming to your page looking at it and hitting the back button being considered a ‘bounce’ it would not be considered one because the user ‘interacted’ with the site. So we set this to true, so that isn’t considered in that respect. … [Read more...] about Where Should The Google Analytics Tracking Code Be Placed?
Add google analytics to website
When your domain is in the exclusion list, then users can cross from one subdomain on your site to another without starting a new session. Without your domain in the exclusion list, when a user goes from one subdomain to another on your site, Analytics sees that as a referral from one hostname to another and starts a new session. As a result, your reports can have artificially inflated session counts. … [Read more...] about Two Steps to Correctly Tracking Subdomains in Google Analytics
Social Hits How often are your articles or content shared? If you’re a publisher, one of the most important things your users can do is share your content. Social sharing can help to determine what content types your users are interested in and what topics get them talking. You can look at social shares by article to see popular content, or by audience segment to see who is sharing most often. Set up your social hits as event tracking and use these events to create segments or goals. … [Read more...] about What Are the Most Important Google Analytics Metrics?
Filter Name: Exclude Dev Site Traffic Filter Type: Custom > Exclude Filter Field: Hostname Filter Pattern: Enter a regex pattern of all development hostnames for your website. For example, if the development hostnames are dev.example.com, backend.example.com, and stage.example.com you would enter ^dev\.example\.com$|^backend\.example\.com$|^stage\.example\.com$ in this field (or some similar Regex). Prepend Hostname to Request URI This filter is especially important if you are implementing a cross-domain tracking system. It would add the hostname to the beginning of the Request URI for every pageview hit, and then overwrite the Request URI with this new format. After applying this filter if you navigate to your Cross-Domain View, in All Pages report, you will have all pages with their corresponding hostnames. … [Read more...] about Basic Google Analytics Filters for Every Site
4. Cool Features With Google Analytics Google Tag Manager makes it easier to implement some of the more complicated Google Analytics features, such as User ID tracking. User ID tracking gives you the ability to measure real users instead of devices. This provides more accurate data for you, which ultimately helps your users! It’s a win-win. Tag Manager also helps with common challenges in Google Analytics, such as Custom Dimensions, Cross-Domain Tracking for multiple sites that are tracked together in Google Analytics, and Enhanced Ecommerce that requires collaboration with developers. … [Read more...] about What Is Google Tag Manager? (And How Does It Work With Google Analytics?)