Purpose: read this article to learn how you can add your Google Analytics stream ID to your Sendcloud brand in order to gain insights into the user behavior on the tracking page.
Account creation and setup
Follow these steps to create and add your Google Analytics stream ID to your brand
- Create a Google analytics account if you don’t have one
- Create a Google Analytics property
- After creating the property, click on Data Streams → Add stream → Web;
This will bring up a wizard to create the data stream required to get your Google Analytics 4 stream ID - Fill in your Shipping portal URL, Brand name and make sure the Enhanced measurement option has been enabled. When finished, click on Create stream
- Once created, click on the new stream to find the stream ID
- Once open, click on the icon to copy the ID
- In your Sendcloud account, navigate to Settings → Brands → and select the brand you want to add the ID to
- Scroll down and expand the Google Analytics section and paste your ID
- Don’t forget to click Save.
When will I start seeing events come through?
Google will start capturing the events immediately after saving the brand. You can see new events in the Real-time view, but you’ll only be use these new events in reports after 24 hours.
What insights will I gain with Google Analytics?
Enhanced measurement
These events are captured automatically and have properties associated with them that you can view and populate reports with:
- Page views
- Scrolls (triggers when a user scrolls more than 90% of the page)
- Outbound clicks (clicks on any of the links on the tracking page)
The following events are included in Enhanced measurement but aren’t used within Tracking pages
- Site search
- Video engagement
- File downloads
- Form interactions
Custom events
The event custom_click has been added to track more specific user interactions. The parameter clicked_element includes:
- Header
- header-home-link (The main logo in the header)
- header-menu-toggle (Toggling the header menu in mobile mode)
- header-navigation-link-home (Home link if no header image has been added)
- header-navigation-link-shop (Shop link in the header)
- header-navigation-link-faq (FAQ link in the header)
- header-navigation-link-contact (Contact us link in the header)
- shop-banner (Banner interaction)
- carrier-tracking-link (tracking link/number)
- Instagram
- instagram-author (the author link)
- instagram-image (the Instagram image)
- mapbox-click (a click on the map when a service point has been selected)
- order-tracking-toggle (the button that toggles the display of the order history)
- header-brand-logo (the header logo when the custom header isn't enabled)
- sendcloud-footer-logo (the Sendcloud brand logo in footer if enabled)
- service-point-homepage (the homepage of the service point)
- Footer
- footer-contact-email
- footer-contact-phone
- footer-social-link-{platform} (Social media link. {platform} = Facebook, Twitter etc.)
Other custom parameters
- brand_id and brand_name has been included in case you want to use a single Stream ID for multiple brands you may have configured
- to_country to see to which country the parcel is being sent
- carrier which carrier is being used
- locale the language of the tracking page. This is usually set by using the user's browser language.
Using custom events and parameters in reports
In order to use custom events in your reports, you should add custom definitions inside of Google Analytics.
To do so, select Custom definitions in the settings menu and create the following custom dimensions:
- Brand id
- Brand name
- Carrier
- Clicked element
- Locale
- To Country
- Tracking Page Template (if you experiment with the different layouts possible)
After which you’ll be able to see these parameters in your custom reports and when viewing the custom_click event in Reports → Engagement → Events → custom_click