Google Analytics is Google's freemium web analytics service used for tracking and reporting website traffic. Integrating Google Analytics with Smartly.io will allow you to sync this information to the tool, and thus report and optimize on Google Analytics metrics. This article and the related sub-articles give a basic overview of Google Analytics and how to integrate it to Smartly.
How Google Analytics Tracking Works
GA tracking is based on UTM tags (or Click tags), which are appended at the end of an ad's link URL. The general workflow is as follows:
- UTM tags are added to campaign tracking parameters during campaign creation in Smartly.io
- The UTM tags are sent to Facebook in a single text field as a property of the ad creative
- The tags are added to paid ads
- A Facebook user clicks the ad link in Facebook, visits the landing page, and data from the UTM tags is sent to Google Analytics, becoming visible there
- Smartly.io syncs the data a single day at a time, with the previous four (4) days of results overwritten.
Out of the available UTM tags, the following are mandatory for GA tracking to work correctly:
- utm_id (not necessary for tracking in GA, but required for Smartly.io integration)
It's also important to note that UTM tags are case sensitive, so, for example, utm_source=Facebook does NOT equal utm_source=facebook
To learn more about how UTM tags work and implementing them, have a look at this article.
Google Analytics Hierarchy
- Account - The topmost level of the hierarchy and the access point to Analytics
- Property - Individual sites, applications or devices or sections of them that you have grouped together with a property ID. If the same property ID is used for multiple sites, their stats will be grouped together.
- View - Your site/app or portions of it, with definitions of what traffic is included in the data and how it's processed. Tracking, goals, attribution etc. are configured on the view-level. This is the access point to reports in GA, and you have to choose the view you want to see metrics for in Smartly.io account settings under "Google Analytics".
Google Analytics has several default metrics that will be tracked automatically, and do not need to be configured separately. These are the following:
- Session - A group of user interactions with your website that takes place within a given timeframe. A single session can include multiple page views, events, social interactions and e-commerce transactions.
- Sessions can expire after 30 minutes of inactivity (or at midnight), or by arriving to the website through a different campaign
- Separate devices are by default treated as a separate user/session, and thus have different Client IDs
- Bounce - Single-page session on your site. It is calculated specifically as a session that triggers only a single request on the Analytics server, for example when opening a website and exiting without triggering any other requests.
- The length of a bounce session will always be 0. Note: Bounces are a subset of sessions, so they are also included in the session counts!
- Bounces are not always a bad sign. Blog posts, for example, are based on just viewing a single web page, but for eCommerce websites, this may be a bad signal.
- Bounce rate = Single page sessions / All sessions
- Transaction - Conversions on your website or app. Generally speaking Transactions in Google Analytics are the same thing as the "Purchase" Pixel event in Facebook.
- Note: Transaction events will NOT show up if your E-commerce tracking has not been implemented, more about this here.
- Transaction Revenue – The revenue of the conversions on your website or app.
- Note: If you want to pass a Revenue value with each transaction, this needs to be configured in the sending of the Transaction event.
- Page views - Instances of pages being loaded or reloaded in a browser
- Users - The number of individual users engaging with your site or app
- New users - The number of users that load your website content for the first time on a device (desktop, laptop, smartphone) or a browser (Chrome, Internet Explorer)
In addition to these default metrics, Goals can also be configured on the view-level in order to track for example specific actions in your app, or the amount of times a contact form has been submitted. As these are set on the view-level, make sure you have selected the correct view in Google Analytics settings when trying to run reports on these metrics. The following are good to keep in mind about goals:
- There is a limit of 20 goals per view
- Goals can have monetary value
- Goals do not backfill, so they only start accumulating after the goal has been set up in GA
- The same holds if you edit a goal - the changes will only be reflected from the editing point onwards