The Google Analytics 4 extension is a replacement for the old Google Analytics extension.
If the old extension has been enabled in your online store, do not remove it. Google recommends using the new implementation side-by-side with the old one until the latter is removed on 1 July 2023.
Learn more about the differences between the old and new Analytics.
Pricing
Using the service is free of charge.
Installation and setup
Setting up Google Analytics involves creating a new property and data stream and copying the tracking ID of the stream to the extension settings in MyCashflow.
1/2 Getting the tracking ID
In order to use Google Analytics in your online store, you need the tracking ID of a data stream. Below, we will go through how you can create a new data stream and copy its tracking ID.
You can also use existing Google Analytics 4 properties. In that case, you can copy the tracking ID of an existing data stream and install the extension in you online store.
2/2 Installing the extension
After creating and copying the tracking ID of the data stream, you can enable the Google Analytics 4 extension in MyCashflow.
Google Analytics has now been enabled in your selected version.
Site search tracking
Google Analytics 4 tracks the online store's site search by default.
If tracking the site search does not work, check that MyCashflow's search parameter (q) has been defined in the data stream settings.
The site search settings can be found at the data stream's Enhanced Measurement item.
Google conversion tracking events
With conversion tracking, you can determine, for example, how many customers have come to your online store by following an ad link seen on Google's channels and then placed an order.
Conversion tracking covers the following event data from the browser:
| Event name | Event description | Parameters |
|---|---|---|
| AddBundleToCart | Adding a product bundle to the shopping cart | currency items item_id discount item_brand item_category item_name item_variant price quantity send_to value |
| AddToCart | adding a product to the shopping cart | currency items item_id discount item_brand item_category item_name item_variant price quantity send_to value |
| BeginCheckout | proceeding to checkout | coupon
currency
items item_id discount item_brand item_category item_name item_variant price quantity
send_to
value
|
| Purchase | completing an order | coupon
currency
items item_id discount item_brand item_category item_name item_variant price quantity
send_to
shipping
tax
transaction_id
value
|
| RemoveFromCart | removing an item from the shopping cart | currency items item_id discount item_brand item_category item_name item_variant price quantity send_to value |
| ViewBundle | viewing the product bundle | currency items item_id discount item_brand item_category item_name item_variant price quantity send_to value |
| ViewItem | viewing a single product | currency items item_id discount item_brand item_category item_name item_variant price quantity send_to value |
| ViewItemList | product list view | item_list_id
item_list_name
items item_id discount item_brand item_category item_name item_variant price quantity
send_to
|
Tracking traffic in multiple store versions
If there are multiple versions in the online store, it may be useful to sort their visitor traffic version by version in Google Analytics. This can be accomplished in two alternative ways:
- by using version-specific tracking IDs, or
- by dividing the visitor traffic into audiences under a single tracking ID.
Using version-specific tracking IDs
In the Google Analytics 4 extension, you can enter a tracking ID for each of your online store's versions.
Read the installation instructions for the extension to learn more about adding tracking IDs in the online store.
Tracking multiple versions with a single tracking ID
You can sort the visitor traffic in distinct versions under a single tracking ID in Google Analytics by using audiences.
Here is how you can create a new audience for a language version in your online store:
The visitor traffic in your selected store version is now included in the audience you have created.
After creating a version-specific audience, you can filter reports in Google Analytics by the store version by making comparisons based on the audience.
Google Consent Mode in MyCashflow
With Google Consent Mode, you can customize the functionality of Google services for your online store based on user consents. This means that your website respects the restrictions related to the use of cookies when the user has not given consent to cookies, but can still collect valuable information about the site's functionality and the effectiveness of ads anonymously.
In MyCashflow, the consent status is initialized by default with the following settings:
gtag("consent", "default", { ad_storage: "denied", ad_user_data: "denied", ad_personalization: "denied", analytics_storage: "denied", personalization_storage: "denied", functionality_storage: "denied", security_storage: "granted", wait_for_update: 500, });This means that Google does not receive personalized information about visitors until they allow it by responding to the cookie inquiry (once the visitor has given consent, the settings change to granted mode).



