Articles on: Analytics

Enable Google Analytics Tracking

Plans: All plans Platforms: All platforms


Overview


Google Analytics is a tracking tool that helps you collect data from your website and mobile applications to create reports that provide insights into your business.


AfterShip Tracking lets you connect your Google Analytics account to track and collect data for the activity and events on your branded tracking page.


You can also access AfterShip's in-built ** tracking page analytics ** to gauge the performance of your branded tracking pages.


With ** AfterShip analytics **,


  • Streamline processes with an interactive dashboard
  • Generate tailor-made reports to audit and compare data
  • Study customer behavior by calculating marketing clicks, number of visitors, and session duration
  • Make informed business decisions with easy to access tracking data


Additional considerations


  • You must have an active Google Analytics account and access to the Google Tracking ID or UA Number. Learn more about ** finding your Google Analytics tracking code from Google **.
  • The tracking ID must be added to each page you want to track. When added to your branded tracking page, your Google Analytics account will collect data on views, visitors, clicks, and more.
  • If you want to use GTM Tracking, you need a Google Tag Manager account and retrieve the Google Tag Manager ID. Learn more about Google Tag Manager in Google's ** getting started guide **.


What you’ll learn


In this tutorial, we will show you:



Locate tracking ID


  1. Go to the Admin tab of your Google Analytics account
  2. Select Tracking Info under the Property settings > Tracking Code
  3. Copy the tracking ID


Connecting Google Analytics to AfterShip Tracking


To add the Google Analytics Tracking ID or Google Tag Manager ID to your tracking page, follow these instructions:


  1. Go to Tracking pages and click ** Page variations ** in the AfterShip Tracing admin
  2. Select Actions in the top right corner and then click Edit
  3. On the tracking page editor, move to the Settings tab
  4. Scroll down to the Google Analytics section and paste the Google Tracking ID or UA Number into the field
  5. Click Save


Google Analytics will start tracking sessions and visitors on your tracking page.


What's tracked


All the actions customers take on the tracking page are transported to Google Analytics by AfterShip Tracking. You can track all the events under Behavior > Events in the Google Analytics dashboard.


Here is the list of events shown in Google Analytics.


Event

Triggered when

Parameters

session_start

A user lands on the tracking page

user_engagement

A user engages with the tracking page

engagement_time_msec

scroll

The first time a user reaches the bottom of the page (i.e. when the users cover a 90% vertical depth). It helps track how far the visitors scrolled on your page

engagement_time_msec

page_view

Each time the page loads or the browser history state is changed by the active site

page_location (page URL), page_referrer (previous page URL), engagement_time_msec

form_start

The first time a user interacts with the order lookup section

form_id, form_name, form_destination

form_submit

A user tracks the order/shipment status via the order lookup section

form_id, form_name, form_destination, form_submit_text

click

The users click a link that leads them away from the current domain and onto the redirected domain

link_classes, link_domain, link_id, link_url, outbound (boolean)



If you need to track more complex events and analyze user behavior, consider installing Google Tag Manager. With Google Tag Manager, you can create tags for various tracking purposes, such as monitoring clicks from marketing assets, form submissions, and link tracking.


Updated on: 09/09/2024