Hello There!

Lorem ipsum dolor sit amet, consectetur adipiscing elit,

5-Ecommerce Website Analysis Project Reports You Should Use

Shopping Behavior Funnel Report

Google Analytics introduces new features frequently; while some features are a part of an ongoing Enhancement, a few changes the way we look at the data & prove to be Game Changers.

I’d rate the introduction of Enhanced E-commerce in such a category. GA has hit the bull’s eye with the introduction of ‘Enhanced E-commerce. It has opened a cornucopia of powerful insights and actionable data for analysts, marketers, and eCommerce store owners. Enhanced Ecommerce gives a detailed overview of user behavior from landing to final purchase, on the performance of the store’s Products’, Promotional Activities, Discount offers, Search results, drop off in user journey, etc.

In our earlier blog post, Bhoomika showed you how to implement Enhanced Ecommerce on your online store and today I will show you how to generate insights & take business decisions based on the Enhanced eCommerce website project report. I will explain major Enhanced eCommerce analytics reports one by one and give you brief information on what each report brings to the table in terms of insights from data and actionability.

  • E-Commerce Shopping Website Project Report
  • Google Analytics Product Performance Report
  • Internal Promotion Google Analytics Report
  • Internal Site Search Behavior Report
  • Coupon Code Performance Report

(Quick Note:  You Might want to check out our Google Analytics Plugin for WooCommerce, Magento & Shopify)

Google Analytics Shopping Behavior Analysis Report:

The b2b eCommerce Shopping & Checkout behavior report gives you a detailed view of how online users engage with your site after landing on your webpage. Further, it also gives an idea about % drop-offs at every stage of the funnel. It gives you a precise and clear representation of how users progress through various sections of your website.

Shopping Behavior Funnel Report

(Shopping Behavior Report)

Checkout Behavior Funnel Report

(Checkout Behavior Report)

Valuable insights:

  • Which stage of your website is causing high drop-offs and leaking revenue
  •  The behavior pattern of New vs. returning users on your website

New vs. Returning Users

  • Further, you can segment these users based on different dimensions such as medium, device, location, etc

Medium wise Segmentation of users`

Action plan:

This report will help business owners in taking important strategic decisions like:

  • Site optimization on device/platform, wherein some of the stages are highly abandoned
  • Tap revenue leakage from high drop-offs stages
  • Changing the design of high-off stages
  • Bringing users back who had abandoned the checkout process

Google Analytics Product Performance Report:

This report can be considered the most useful addition to Google Analytics. With this report, Google finally fulfilled the demand of eCommerce store owners by adding the most beneficial product-level data in Google Analytics. One can compare the performance of each product according to its purchase, revenue, cart removals, product page views, add-to-carts, cart-to-details rate, and buy-to-detail rate with the help of this report. Each product’s performance can be analyzed and business decisions can be taken based on it.

Product Performance Report

Earlier, a product’s popularity was determined by its quantity and revenue generated by it, but this is not always the same. The reason behind this is that there may be several other products with high product page views, but lesser conversions. With a Product Performance Report one can directly compare products and can carry out product conversion rate analysis.

Brand Performance Report

In the Product Performance section, we can get another important report on ‘Brand Performance’, which lets you compare and analyze each brand’s Sales Performance and shopping behavior data.

Valuable insights:

  • Products/product categories that are getting high visibility among users, but lower visibility to add to carts (ATC).
  • Product/Product categories that are getting removed on a frequent basis from the shopping carts.
  • Brands that are showing better performance and are generating high revenue

Action plan:

  • You can offer discounts on products that have high product view rates but lower add-to-cart rates.
  • You can win back those users who have abandoned the shopping cart using remarketing and thus can improve product revenue
  • Remarketing integration can be carried out with Enhanced Ecommerce which will save you a lot of money as it decreases the dependency factor on Cart recovery tools.
  • Brand performance enables you to take tactical decisions from an investment perspective.
  • Importing product-level data in Google Analytics opens up a whole new level of possibilities
  • And if you can import product-level metadata into GA then it opens up a whole new level of possibilities that as a business owner you always wish to have. Let’s take a few examples-
    • If you can import Product Profit % data into GA and compare product performance data vs. Profit then you can take many strategic decisions such as lowering the selling price of products which is having higher Profit % and lower cart rate
    • You can increase the profit margin for those products which constantly generate high revenue for the store and you can monitor the impact on product performance directly from GA (I know that it’s not as easy as I have written here, that’s why we have built this Price Optimization tool)
    • You can import data on Avg. review scores for products and compare the relation between review scores and product revenue

Internal Promotion Google Analytics Report:

Internal Promotion Report

This report on Enhanced Ecommerce will make marketers’ life much easy. Till now, it was difficult for them to check the accurate performance of internal promotions banners of the store in GA without the need for customization. The best solution for this is to implement event tracking and track clicks on each banner. But kudos to GA as now, with this report one, can track the performance of each of the banners in terms of Impressions, Clicks, CTR, position, and sequence-wise. Learn how to Implement an Internal Promotion Report.

With this report, you can track the performance of each banner in terms of Clicks, impressions, and CTR in terms of position and sequence wise.

Valuable insights:

  • Which of the banner is performing better in terms of CTR
  • How image positioning is actually creating an impact on CTR

Action plan:

  • It proves helpful for marketers in taking certain decisions such as which product should be highlighted on the banner
  • Deciding about the position of the product image in the banner to get a higher CTR
  • Changing the Design & Copy of the banner with lower CTRs

Internal Site Search Behavior Report:

Internal search is a very important functionality to measure the progress of any eCommerce store. Through this report, you will be able to check which products are getting high visibility from search results and is this traffic getting converted or not. It gives you a fair idea about how products are faring in search results. How many times a product appears and its CTR.

Internal Search Behavior Report

This report gives you an overview of how products are faring in search results. How many times product appeared and what is the CTR?

Valuable insights:

  • The most popular products on your eCommerce store.
  • Are people actually getting what they are searching for from search pages?
  • Do products that have high impressions on search pages purchased more often than the rest of the products?

 Action plan:

  • Products with high impressions can be included in the main banner itself
  • Discounts can be offered on products with high search CTR, but low revenue
  • Products/product categories with high search impressions can be highlighted
  • Calibrate the search mechanism on the site if you observe high search impressions for products but low CTR

Coupon Code Performance Report:

This new report in UA now allows eCommerce stores to track the Product or Order coupons that are part of Transactions. It allows the comparison of coupons in terms of Revenue, AOV, and Transactions.

Coupon Performance Report
`

Valuable insights:

Coupons report in UA offers several insights into the popularity of coupons and their impact on stores.

  • Which of your coupon are used most? e.g. - As we can see in the above report, Coupon no. 2 has been used most and with higher AOV
  • Which coupons are generating higher Revenue?
  • Which coupons are impacting AOV the most? e.g.- Coupon no.3 from the above report has a significantly lower AOV than the site average.

Action plan:

Insights into Coupons usage can help you in taking several business decisions

  • Helps you to strategize coupon offers- If you know which coupons are popular and which ones are impacting AOV the most, you can strategize your coupon strategy accordingly.
  • For which products coupons can be awarded more- Analyzing the impact of Product coupons and getting an understanding of how coupons are driving product purchases can help you in selling some of the less popular products and thus increase the revenue.

How much discounts can be offered on products- By analyzing the impact of Coupons on AOV business owners can play with Discount offerings of Products. e.g.- If coupons are impacting AOV negatively, owners can decrease the discount offerings of the coupons

Thus, these reports prove as a boon for eCommerce retailers by providing them with useful insights regarding user behavior in eCommerce stores and action plans which can be taken based upon it. This in turn helps them to take several important decisions to improvise their eCommerce online store and to earn good profits.

3-Steps to setup Google Analytics Enhanced E-commerce Tracking

Enhanced Ecommerce

Editor’s Note: This blog post has been updated on Sept. 14, 2017 based on the updated versions of Google Analytics and Google Tag Manager

How about we give you a granular level of user journey reports to you in Google Analytics. Let’s take real life example here. Now, I want buy a t-shirt and I am going to the mall. I will perform following actions in a sequence while shopping:

  1. Land into the store
  2. Search for particular brand or color or see through all the brands’ t-shirt
  3. Pick one/many of the t-shirt
  4. Check for more details
  5. Add one/many of them in my shopping basket
  6. Go to billing line and give my information
  7. Pay for the t-shirt

Or

  1. I may enter into one of the promotions zone
  2. Pick product and follow the process

What if I were to tell you that you can successfully track all these steps with your online store. Yes, that’s the magic of Enhanced Ecommerce feature of Google Analytics. Enhanced Ecommerce, allows you to track the user’s journey across the Ecommerce store that now become easy to understand the user behavior.

Enhanced Ecommerce is an extremely powerful feature that will help you:

  • Understand Exactly Where Your Users Are Leaving You
  • Create Customizable Funnel for Check out Process
  • Improvise Your Product Management
  • Improvise Your Merchandising Effectiveness
  • Better Remarketing
Steps To Implement Enhanced Ecommerce

Prerequisite: Your web property must be Migrated to the new version (Universal Analytics) of Google Analytics or best if you get Google Analytics 360.

Step 1: Enable Enhanced Ecommerce

Follow these steps to enable Enhanced Ecommerce:

  • Go to Admin section of your Google Analytics Account
  • In the view section, click on Ecommerce Settings
  • Switch on the Enhanced Ecommerce Settings button

ee_settings

Note: If you do not see the above setting, it means that you are still on the waiting list and you may have to wait till Google rolls out this for your web property

Step 2: Naming Your Check-out Funnel

Check out funnel report gives you great insight into where your customers are dropping off in the checkout process. Studying the exact drop off step in the funnel will help you improve your conversions. Using Enhanced Ecommerce WooCommerce Plugin can simplify you task.

Naming a checkout funnel is optional but we highly recommend it as it will add more meaning to your report. Different Ecommerce stores have different steps across the checkout.

The most common check out step funnel would be

  1. Checkout
  2. Shipping info
  3. Place Order

checkout_lable

Note: If you won’t name your funnel steps, it will by default appear as Step 1, Step 2, Step 3, etc.

Step 3: Add the tracking code

To enable Enhanced Ecommerce on your online store, you will have to implement the following codes:

  • Measuring product Impressions - View Code - GA - GTM
  • Measuring product clicks - View Code - GA - GTM
  • Measuring product detail - View Code - GA - GTM
  • Measuring Addition or Removal of cart - View Code - GA - GTM
  • Measuring checkout steps - View Code - GA - GTM
  • Measuring transactions - View Code - GA - GTM
  • Measuring Refunds - View Code - GA - GTM
  • Here is the Google documentation of GA and GTM you can refer to while adding the code.
A Quick Walkthrough of 10 New Powerful Enhanced Ecommerce Reports
1. Ecommerce Overview

ecommerce_overview

The Ecommerce overview reports will help you see the overall picture of what is going on in the revenue side. It shows the total revenue and Ecommerce conversion rate for any date range and gives you the total number of transactions, average order value and average quantity. This also shows the marketing report which provides insight about how overall the promotions or the campaigns are performing for the store.

2. Shopping Behavior

ee_tracking

This report provides great insight into understanding to check where the customers are exactly dropping off in the funnel. Each step contains the number of visitors at the top and the number of visitors who abandonment drop off at the bottom of the step. You can also use Enhanced Ecommerce extension for Magento to generate this sort of shopping behavior report. If you see the above image closely you will see drop off at Product Add to cart stage. This depicts that a large number of visitors add the products but does not go ahead with the checkout process. 

3. Checkout Behavior

universal_analytics

The checkout funnel will help you learn the exact funnel step where you users are dropping off in the checkout process. Insights from this report will enable you to increase the conversion rate.

4. Product performance

enhanced ecommerce

The product performance report is upgraded and now includes additional data points like product refund amount, cart-to-detail Rate (number of products added per number of product-detail views), buy-to-detail Rate (number of products purchased per number of products-detail views) etc.

To get the product refund data in the report, the refund data should be imported to GA using dimension widening for Refund data.

5. Sales performance

sales report

The sales performance report is improved and now includes the information like refund amount for any transaction, Tax, Shipping cost and Quantity.

6. Product list performance

The product list performance report will help you to identify which set of products are performing and which are not. One can create product lists for on-site merchandising rules and product landing pages to see which lists and products are best at driving customer engagement. Product lists can be used to represent related product pages, search pages, upsell pages, cross sell pages.

Following Metrics will be available in the report:

  • Product list view (number of time the product was viewed when it was in the list)
  • Product list click (number of time the product was clicked when it was in the list)
  • Product list CTR  (number of clicks/number of views)
7. Marketing: Internal promotions

If you are using internal promotions, for example internal banners that promote sales on internal pages of your site, then you can track their views, clicks, and the click-through rate. To enable internal promotions reports you will have to add the code mentioned in this post.

8. Marketing: Order Coupon

You can track the same metrics in order-level coupons with the help of Order Coupon report. The Order Coupon report lets you see how effective order-level coupons are in terms of revenue, unique purchases, and product revenue per purchase. To track the order coupon for any purchase, pass the order coupon value with the transaction data:

Using Google Analytics :

coupan tracking

Using Google Tag Manager :

coupan tracking gtm
9. Marketing: Product Coupon

The Product Coupon report lets you see how effective product-level coupons are in terms of revenue, unique purchases, and product revenue per purchase. To track the product coupon for any purchase, pass the coupon value with the transaction product data:

Using Google Analytics :

product tracking

Using Google Tag Manager :

product tracking gtm
10. Marketing: Affiliate Code

The Affiliate Code report lets you track revenue, transactions, and average order value associated with affiliate sites that drive customers to your site. To track the affiliate sites for any purchase, pass the store name in the transaction purchase data using the following example code:

Using Google Analytics :

affiliate code

Using Google Tag Manager :

affiliate code gtm
Concluding Thoughts

Data Analysis is an integral part of Ecommerce and it is a very useful tool that will help increasing your business by getting the facts, but then the data should be relevant and analysis should be done in a proper manner.

Enhanced Ecommerce gives you the reports and helps in analysis of the factors that matter the most and hence help the eCommerce flourish and progress. It also helps in knowing what the best suited medium is and hence where you should make most efforts and where you should invest more resources.

Interested in learning more about Enhanced Ecommerce? Check out our Post on 32 Resources to Help You Become an Expert at Enhanced Ecommerce

We hope that the blogpost helps you in understanding Enhanced Ecommerce & its features, if you have any query or need more information feel free to get in touch with us. Also, are there any other interesting Enhanced Ecommerce Reports that you use? Please do share it with us, we’d love to know.

The Ultimate Guide for Upgrading to Universal Analytics

Universal Analytics

Universal Analytics

Universal Analytics is the new operating standard of Google Analytics. It has a new tracking code (analytics.js) which is completely different from than classical Google Analytics Code (ga.js) and has been rebuilt from the ground level. Everything from event handling, eCommerce tracking, cross-domain tracking, etc. is handled in an improved way. The following guide will show you how to upgrade your web property & custom tracking codes to Universal Analytics.

The Guide is divided into five chapters which are as follows:

Chapter 1: Introduction: Universal Analytics

Chapter 2: What’s New in Universal Analytics

Chapter 3: How to Upgrade to Universal Analytics

Chapter 4: Six Tracking Codes You Need to Upgrade

Chapter 5: Commonly Asked Questions (Video)

Chapter 1: Introduction to Universal Analytics

Universal Analytics which came out of beta on 2nd April 2014 is the new version of Google Analytics It introduces a new tracking code, the ability to track a user’s behavior among different devices, and a new measurement protocol that is able to import data from online and offline devices.

The new Universal Analytics is more focused on the user level or customer level compared to the visit level.

As Justin Cutroni puts it “The cornerstone change in Universal Analytics is that Google Analytics is becoming user or customer centric rather than visit centric. This paradigm, sometimes called customer centricity, more closely aligns with how businesses traditionally measure their performance.”

Chapter 2: What’s New in Universal Analytics:

Universal Analytics Features

The following are the new features of Universal Analytics:

  • Custom Dimensions/ Metrics

    In classical Google Analytics, we had the ability to create custom variables which would basically allow us to assign any data against a session. In Universal Analytics, Custom variables are called Custom Dimension/ Metrics and we can use this to import virtually any data into GA. UA allows you to create 20 different Custom Dimensions & Metrics.

    This feature is helpful when you want to add more value to your existing GA data. For example, we recently created a USE-CASE wherein we integrated Off-Page SEO factors like Backlinks, Pagerank, Citation Flow, and Trust Flow into Google Analytics to understand the relationship between a page’s Organic Searches and Off Page Factors. (Updated 10/3/2015: Learn how you can use Custom Dimensions & Enhanced Ecommerce to generate valuable insights for your Online Store)

  • Referral Exclusion List

    Demographic & Interest Report

If you have self-referrals or visits coming from your own sub-domains/ other domains that you want GA to report under direct visits, you can use the “Referral Exclusion List

  • Search Term Exclusion List

  • You can use this feature to clean up your search data. For a lot of websites, visits come from branded keywords and you can make these visits report as direct visits by adding the search terms in the exclusion list. For example - ‘your company name’ is a branded search term that you may not want Google Analytics to report under organic visits but instead as a Direct Visit. So, by adding that exact search term to the exclusion list it will start reporting as a direct visit.
  • Session/ Campaign Timeout

    Session/ Campaign Timeout
    Universal Analytics allows you to adjust your session and campaign timeout duration without adding any new special code to your website.

    Session timeout tells you how long your visit will last which impacts many of your metrics like page visits, conversion, etc. By default the campaign timeout duration is set to 30 mins and if the visitor does not generate any data in 30 mins, then any new event generated after that is counted as a new session. Now we can set the session timeout duration to a minimum of 1 min and a maximum of 4 hours.

    Next is campaign timeout, if you are running a campaign then by default any user/ customer acquired through that campaign will be attributed to that specific campaign for 6 months. So if I visit your website today through a campaign and I revisit it after 5 months and make a purchase, then by default Google Analytics will attribute that sale to that campaign. Now, with the new UA, we can adjust the campaign timeout duration between 1 day to 2 years.

  • Measurement Protocol

    The new measurement protocol feature in Universal Analytics allows you to send data into Google Analytics from other devices. You can send the data to Google Analytics from various devices like a POS System, call center, electronic sensors, etc. If you have been looking for a way to integrate your offline data into Google Analytics, measurement protocol is the best option for you.

    The new feature will help businesses link their online and offline data. For example, you can track the offline & online sales of your single customer through a customer loyalty card. This will allow you to integrate your online & offline customer sales purchase behavior into a single platform and help you analyze & optimize your overall marketing efforts.

    The fusion of online and offline data in GA will enable decision-makers to generate great stories about their customer’s interactions and will help them in generating relevant business insights.

    Check out this classic USE-CASE of Measurement Protocol by Julian Coquet where he measures the performance of an offline store activity.

  • Organic Search Sources

    If you are getting a lot of traffic from search engines that are not recognized by GA, you can add those websites to the organic search sources list.

Chapter 3: How to Upgrade to Universal Analytics?

How to Upgrade to Universal Analytics

Upgrading to Universal Analytics is fairly simple and does not require any knowledge of coding. Follow these two steps to upgrade your property to Universal Analytics.

Step 1: Transfer Your Property from Classic to Universal Analytics

The first step for upgrading your property includes transferring your property from GA to UA. Do the same by following these steps:

      1. Visit the Admin Section
      2. Select Account
      3. Select the Property You Want to Upgrade
      4. Click Universal Analytics Upgrade

On the page, as shown below, you will be provided information about upgrading to Universal Analytics.

Universal Analytics Upgrade Step 1

You can skip all the details and Click the blue color ‘Transfer’ button, to start the process of transferring your property to UA.  It may take up to 48 hours to transfer your property to UA

Note: Some users may not see the Universal Analytics Upgrade Option. This means that Google has auto-upgraded your GA property and hence you can skip step 1 and go ahead with step 2.

Step 2: Replace the Classical Code with Universal Analytics Code

Once, your property is transferred to UA you will see a notification as shown below when you login into GA.

GA Property Migrated to UA

This confirms that your property is transferred to UA and you can visit Admin > Select Account> Select Property > Universal Analytics Transfer section to collect your new UA Tracking Code.

Migrate to Universal Analytics

Your tracking code should look like this:

<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','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-XXXXXXXX-1', 'Yourdomainname.com');
ga('send', 'pageview');
</script>

Now, you can simply copy the code and replace it with your classical Google Analytics Code on your website. This will upgrade your property to UA.

Chapter 4: Six Tracking Codes You Need to Change When Upgrading to UA

Six Tracking Codes to Upgrade in Universal Analytics

Universal Analytics has a completely new tracking code (analytics.js) and hence all other advanced tracking codes that you were using in Classical Analytics (ga.js) need to be changed.

To make your upgradation process easy, we have listed down 6 advanced tracking codes that you may have to change while upgrading to UA. It is important to understand that if you don’t update these tracking codes, you will not see any data being reported in UA.

Event Tracking Code:

Event tracking codes are used to track various buttons (like add-to-cart, download, etc.) on your website to understand better how users are interacting with your website. Google Analytics does not track this behavior by default and you have to add a special tracking code to each button you want to track.

Before Universal Analytics, you could track the events using the _gaq object as shown below

<ahref="domain.com" onclick="_gaq.push(['_trackEvent','link','click']);">CLick Here</a>

Using _gaq however, no longer works with Universal Analytics and you have to use the following new method to track events

ga(‘send’, ‘event’, ‘category’, ‘action’,’ label’,’ value’, {‘nonInteraction’: 1});

Send an event command will send the event details to GA and the category can be a link or button name and the action can be clicked, called, etc. Value is an option that can be used to pass on a value if required. Now using the new code, the event tracking code will look like

<a href="domain.com" onclick="ga('send', 'event', 'link', 'click');">Click Here</a>

Tracking Code for eCommerce:

If you have an eCommerce store and you are selling your products through your website then in addition to basic Universal Analytics tracking code you will also have to add an eCommerce tracking code. eCommerce tracking will enable you to track various sales data like revenue, average order value, transaction, etc.

Following is the new eCommerce tracking code you will have to use in Universal Analytics and add to your thank you page:

Load the eCommerce plugin using the below code:

ga('require', 'ecommerce', 'ecommerce.js');

Code for sending Transactions data
The transaction data of your cart should be added by the following code:

ga('ecommerce:addTransaction', {
'id': '768',                     // Transaction ID. Required.
'affiliation': 'my store',   // Affiliation or store name.
'revenue': '27.50',               // Grand Total.
'shipping': '0',                  // Shipping.
'tax': '0'                     // Tax.
});

Code for Sending Items data
This code is used to push the items data present in the shopping cart:

ga('ecommerce:addItem', {
'id': '8383',                     // Transaction ID. Required.
'name': 'Blue grand shoes',    // Product name. Required.
'sku': 'MFk33',                 // SKU/code.
'category': 'Shoes',         // Category or variation.
'price': '2500',                 // Unit price.
'quantity': '1'                   // Quantity.
});

Code for Sending Data to UA
Once all the cart data is pushed in the code, the final code will push that data into Universal Analytics

ga('ecommerce:send');

The code is divided into three parts, the first part is to send transaction data, the second code is to send the item data and the third code is to send the data to GA. Add all the codes on your thank you page and GA will start collecting your eCommerce data.

How to Create Custom Dimensions/ Metrics?

In classical Google Analytics, we had the ability to create custom variables which would basically allow us to assign any data against a session. In Universal Analytics, Custom variables are called Custom Dimension/ Metrics and we can use this to import virtually any data into GA.

We recently created custom dimensions to integrate On-Page SEO Data like Title Length, and Meta description length into GA using Dimension Widening.

Follow these steps to create your own Custom Dimension:

Create Custom Dimension

      1. Go to Admin -> Select Property -> Custom Definitions -> Custom Dimensions.

      2. Give a meaningful name to the dimension

      3. Define the scope of the dimension

        1. Hit: The value is applied to the single hit(event, pageview, etc.) for which it has been set.

        2. Session: The value is applied to all hits in a single session.

        3. User: The value is applied to all hits in current and future sessions until the value changes or the custom dimension is inactive.

      4. After defining the scope, click the Create button and you will get a code

Paste the JavaScript code of the custom dimension before the Universal Analytics pageview call.


var dimensionValue = 'abc';
ga ('set', 'dimension5', dimensionValue);

Follow these steps to create your own Custom Metric:

Create Custom Metrics

      1. Go to Admin -> Select Property -> Custom Definitions -> Custom Metrics

      2. Give a meaningful name to the metric

      3. Set the formatting type and enter the minimum and maximum value

        • Formatting type: This determines how the metric value will be displayed in the reports(like integer, currency, etc).

        • Minimum Value: The minimum value of the metric that will be shown in the reports.

        • Maximum Value: The maximum value of the metric that will be shown in the reports.

      4. Click the create button and you will receive the javascript code.

      5. Paste the JavaScript code of custom dimension/metrics before the Universal Analytics pageview call.

Below is the example javascript code for custom metrics:

var metricValue = '123';
ga('set', 'metric1', metricValue);

The custom dimensions/metrics are available only in custom Reports or dashboards. To access these dimensions/metrics, one can create a custom report with these dimensions/metrics.

Tracking Code for Cross-Domain Tracking:

Cross-domain tracking allows you to track visitors across multiple domains and collect all of these websites’ data into a single property. Also, if you have a 3rd party shopping cart wherein users have to leave your website to complete the purchase, cross-domain tracking if implemented will track your users throughout the entire purchase cycle i.e. from leaving your website to a 3rd party shopping card & complete the purchase & returning back to your website.

Implement Cross-domain tracking on your website by understanding the example given below:

Consider you want to set up a cross-domain tracking code between abc1.com and abc2.com. Next, follow this steps:

Step 1: Edit the basic tracking code on the primary domain (ie abc1.com)

Step 2: Find the below line in the basic UA tracking code.

ga('create', 'UA-XXXXXXX-Y', abc1.com');

Step 3: Replace the above code with the one below:

ga('create', 'UA-XXXXXXX-Y', 'auto', {'allowLinker': true});
ga('require', 'linker');
ga('linker:autoLink', ['abc2.com'] );

Don’t forget to replace the UA-XXXXXXX-Y with your UA-ID. Also don’t forget to add the secondary domain name replacing ‘abc2.com’. You can add more than one secondary domain name to implement cross-domain with more secondary domains.

ga('linker:autoLink', ['abc2.com', 'abc3.com'] );

Step 4: Now Edit the basic tracking code on the secondary domain (i.e. abc2.com)

Step 5: Find the below line in the UA tracking code of abc2.com.

ga('create', 'UA-XXXXXXX-Y', abc2.com');

Step 6: Make the below changes to the code:

ga('create', 'UA-XXXXXXX-Y', 'auto', {'allowLinker': true});
ga('require', 'linker');
ga('linker:autoLink', ['abc1.com'] );

After following the above steps, you have to exclude your domain (ie. in our example abc2.com) using the referral exclusion list feature available in your Universal Analytics property.

Tracking Code for Virtual Pageviews:

Virtual pageviews help you in understanding how users interact with your website at a higher level. For example, if you have a video on your website, then with virtual page views you can track how many times a user clicked the play button or the pause button, or the duration of the time for which a user watched the video, you can also track how users are interacting with your forms embedded on your website. Virtual Pageviews code is placed at every button/event we want to track.

If you were using this feature in Google Analytics, you may have added the following _gaw.push code (bolded text) in the Classical Analytics Code:

_gaq.push(['_trackPageview', 'page path']);

Since Universal Analytics does not support _gaq.push code, you will have to change your code to as shown below:

ga('send', 'pageview', 'page path');

For  example, If you want to track the play button of the video on your website as a virtual pageview your new Virtual Pageview code for UA should be like this:

<a href="#” onclick="ga('send', 'pageview', ‘/play-the-video’);">Play</a>

Tracking Code for Demographic & Interest Report

Demographic & Interest Report

The demographic and Interest report provides insights into the age, gender, and interest of your visitor. This report is a powerful tool when you want to understand your exact audience (i.e. age and gender) and learn which type of visitors (ie. age & gender) convert more.

If you were using this feature in Google Analytics, you may have added the following DoubleClick code (bolded text) in the Classical Analytics Code:


ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';

Since Universal Analytics does not support old code, you will have to add the following new code (bolded text) in the UA Tracking Code.
ga(‘create’, ‘UA-XXXXXX-XX’, ‘example.com’);
ga(‘require’, ‘displayfeatures’);
ga(‘send’, ‘pageview’);


The new code is fairly simple and uses GA command to send the demographic data in Google Analytics.  It may take up to 48 hours for UA to start reporting the demographic data.

Chapter 5: Most Commonly Asked Questions about Universal Analytics

Google developer’s youtube channel recently answered frequently asked questions about UA. (Hint: Skip to 4:57 seconds to directly jump on to QnA Session)

We hope that the guide enables you to migrate your property to Universal Analytics and also helps you in upgrading your advanced tracking code to UA. If you have any queries or need more help, feel free to reach out to us.

 

Bot Icon
Bot Icon

Tatvic Bot

Explore About Tatvic and Services