educating freelancers & small business owners in northern chester county pa
Advanced Google Analytics:Custom Dimensions, Filters & Content GroupingsJune 2015
Speaker: Jeff Tincher, 610 Digital, LLC
www.ChescoMarketing.com | [email protected] #ChescoMG
GA can do MUCH more than record basic user and traffic data!
● Goals - track form completions, pages viewed, time on site, etc.
● Events - track non-page clicks like PDF views, download, external links, etc.
● Filters - control how and which data appears in a view
● Content Groupings - organize data by logical groups of content○ retail: mens/womens, shirts/pants○ news: world vs local
● Custom Definitions ○ Dimensions○ Metrics
● Connect to E-Commerce
www.ChescoMarketing.com | [email protected] #ChescoMG
Using GA Filters● Gives you control on how and what data is
shown in analytics
● Filters DO NOT work retroactively, so the data already in GA will continue to include the spam.
● Every time new spam sites appear, you need to update your filters
● TIP: Create at least TWO GA Views for your profile
a. all site datab. filtered
www.ChescoMarketing.com | [email protected] #ChescoMG
Multiple GA ViewsSee how the two views show different data?!
www.ChescoMarketing.com | [email protected] #ChescoMG
Get Rid of Referral SPAMHow to Create Filter
1. GA > Admin
2. Under View column, click Filters
3. New
4. Give Filter a Name
5. Select Custom Filter Type
6. Exclude, select Campaign Source the the list of fields
7. Type of paste in your filter pattern (regex is ok!)
darodar|semalt|buttons|blackhatworth|ilovevitaly|prodvigator|cenokos|ranksonic|adcash|hulfingtonpost|seo-|guardlan|porn|cheap-|domination|get-free|sexy|teens|4web
www.ChescoMarketing.com | [email protected] #ChescoMG
Why this is Important?!
www.ChescoMarketing.com | [email protected] #ChescoMG
What are dimensions and metrics?Dimensions
the data you see in the rows in GA reports. Like Source, Page Title, Visitor Type, Geography, etc. Dimensions are the titles of the rows of data in GA.
Metrics
are the numbers that populate the rows and measure the dimension such as, Sessions, Users, Bounce Rate, Avg Session Duration, etc.
www.ChescoMarketing.com | [email protected] #ChescoMG
Creating Custom DimensionsWhere to Set Up -- Admin > Property > Custom Definitions
www.ChescoMarketing.com | [email protected] #ChescoMG
PHP Code Example: By WordPress Category // Post categoryif ( is_single() ) {
global $post;$post_categories = wp_get_object_terms( $post->ID, 'category', array( 'fields' => 'slugs' ) );if ( ! empty( $post_categories ) && ! is_wp_error( $post_categories ) ) {
$post_categories = implode( ' ' , $post_categories );echo "ga('set', 'dimension1', $post_categories');\n";
}}
this is the dimension index
www.ChescoMarketing.com | [email protected] #ChescoMG
PHP Code Example:Blog Posts by Word Count // Post length if ( is_single() ) { global $post; $word_count = str_word_count( strip_tags( $post->post_content ) ); if ( is_int( $word_count ) ) { if ( $word_count < 500 ) { $word_count_range = '< 500'; } elseif ( $word_count < 1000 ) { $word_count_range = '500 - 999'; } elseif ( $word_count < 1500 ) { $word_count_range = '1000 - 1499'; } elseif ( $word_count < 2000 ) { $word_count_range = '1500 - 1999'; } else { $word_count_range = '2000+'; } echo "ga('set', 'dimension2', '$word_count_range');\n";
www.ChescoMarketing.com | [email protected] #ChescoMG
Seeing the Data in GA
www.ChescoMarketing.com | [email protected] #ChescoMG
Visitors by Blog Post Length
www.ChescoMarketing.com | [email protected] #ChescoMG
Content Grouping Example:By Furniture
www.ChescoMarketing.com | [email protected] #ChescoMG
See details of each Grouping
www.ChescoMarketing.com | [email protected] #ChescoMG
Content Grouping Example:By Gift Type
www.ChescoMarketing.com | [email protected] #ChescoMG
Need Analytics Assistance?Contact me for a FREE Google Analytics Audit.
Jeff Tincher - 610 Digital, [email protected] | 610-590-4824
http://linkd.in/TinchLI | @JeffTincher
Download the slides at https://goo.gl/BXFHkZ