⚠️ There are now 2 versions of OneClickUpsell. If the app was installed from the Shopify App store, you’re using the OneClickUpsell Native version which has a blue/orange color scheme. For the OCU Native knowledge base click here.
The OCU app's integration with Google Analytics allows you to collect statistics about OCU pages and events within your Google Analytics account. Our Enhanced Ecommerce integration allows you to get even more detailed statistics like Events, Shopping Behavior and Checkout Behavior tracking.
On this page
- Basic Statistics
- Orders Statistics
- Google Analytics Enhanced Ecommerce
- Events, Shopping Behavior and Checkout Behavior
- Ecommerce Conversion Rate
- Referral Exclusion
- Setting Goals in Google Analytics
The basic level of statistics only allows you to see Pageviews for the different steps of the OCU checkout and post-purchase offer pages. To have this level enabled you only need to have Google Analytics enabled in your Shopify store. Just go to Online Store -> Preferences -> Google Analytics within your Shopify admin and make sure you have your Google Analytics account enabled there:
If it's not enabled yet, then you need to get the code from your Google Analytics account, paste it there and then save changes. Please allow some time to obtain some initial data before it will start to display statistics for OCU pages within your GA account.
Pageviews statistics can be found in the Behavior -> Site Content -> All Pages section of your GA account. Use the search term "/apps/secure-checkout" to see all of the Pageviews for the OCU app.
To make this even easier, if you click the Page Title option from the Primary Dimension section and then use the search term "OCU" to filter out the needed pages, it gives you a very clear consolidated display of the number of Pageviews and other useful information for all of the pages within the OCU app.
If you want to also have Orders Statistics within your Google Analytics account then you need to add your GA Tracking ID to the OCU app.
1. Your Tracking ID can be obtained from within your GA account at Admin -> Tracking Info -> Tracking Code. Copy and paste your GA Tracking ID:
2. Open the OCU app and go to Settings -> General -> Tracking & Marketing and paste your Tracking ID into the "Google Analytics Tracking ID" field there:
Order statistics contain Revenue, Tax, and Shipping cost for each order and can be viewed within the Conversions -> Ecommerce -> Sales Performance section of your GA account.
The Ecommerce section in Google Analytics is where you can find all sorts of useful information about the transactions on your store:
Clicking the "Overview" section under Ecommerce, what you will see by default is a line graph for Revenue vs Conversion rate.
You can see all the revenue accrued, conversion rate, order value, transactions, every product that was sold and the ability to sort and filter different types of information and date ranges.
Google Analytics Enhanced Ecommerce
Google Analytics Enhanced Ecommerce allows you to get even more detailed statistics like Events, Shopping Behavior and Checkout Behavior tracking. In order to enable Google Analytics Enhanced Ecommerce you need to:
1. Enable Ecommerce and Enhanced Ecommerce Settings in your Google Analytics account: Go to Admin -> Ecommerce Settings to enable those settings.
2. Ensure that you have Enhanced Ecommerce enabled in your Shopify store. Go to Online Store -> Preferences -> Google Analytics and make sure that "Use Enhanced Ecommerce" check-box is checked.
3. Paste your GA Tracking ID into the "Google Analytics Tracking ID" field (refer to section 2 above for details) AND click the switcher for "Google Analytics Enhanced Ecommerce" to enable it:
Events, Shopping Behavior and Checkout Behavior
Events that can be tracked in your GA account when "Enhanced Ecommerce" is enabled for OCU are:
- Order Started
- Order Completed
- Order Canceled
- First Upsell Product Purchased
- Second Upsell Product Purchased
- Third Upsell Product Purchased
- Downsell Product Purchased
- Second Downsell Product Purchased
- Offers Declined
- Offer Product Video Watched
In order to review the Events statistics you need to go to Behavior -> Events -> Top Events and then click on the "OCU Enhanced Ecommerce" folder.
If not selected by default, click the "Event Action" link as the Primary Dimension there to view the event names and data:
Shopping Behavior entities which the OCU application reports to GA are:
- Sessions with Check-Out
- Sessions with Transactions
Checkout Behavior entities which the OCU application reports to GA are:
- Sessions with Transactions
Ecommerce Conversion Rate
If you're using the Google Analytics + Enhanced eCommerce integrations for both Shopify and OCU, then you can reference your store's overall conversion rate within your Google Analytics account.
You can see this stat by logging in to your Google Analytics account and going to Conversions > Ecommerce > Overview and it will show you your Ecommerce Conversion Rate stat there.
Google defines the "Ecommerce Conversion Rate" metric as the following:
Ecommerce Conversion Rate is the ratio of transactions to sessions, expressed as a percentage; for example, a ratio of 1 transaction to every 10 sessions would be expressed as an Ecommerce Conversion Rate of 10%. This value helps you assess the effectiveness of your marketing and site design.
It is recommended to add apps.shopify.com to the Referral Exclusion list in Google Analytics to prevent the OCU checkout URL from being listed as a referral source.
Setting Goals in Google Analytics
Use goals to measure how often site visitors complete specific actions (goals).
Create an initial purchase goal by setting all goal attributes as shown below:
To setup a funnel for the goal shown above, add the funnel steps as shown. The Customer Information step is being skipped here since it isn't able to be tracked reliably. Here are the regular expressions to use for the Shipping and Billing steps:
(Optional) You can add the “Cart” page as a step, which has the URL
/cart. If you do this, set the “Required” option to “No” because people may skip the cart page (depending on your theme) causing these people to go unreported in the goal.
Note: You will need to setup a separate goal for each purchase that you want to track I.e. the initial checkout purchase, upsell 1 purchase, downsell 1 purchase etc.
To set those up, you would use a different regular expression as the "Destination" for each goal. Below you'll find the regular expressions for some commonly used purchase goals:
Main purchase completed (initial order):
Upsell 1 product purchased:
Upsell 2 product purchased:
Upsell 3 product purchased:
Downsell 1 product purchased:
Downsell 2 product purchased:
- If you use a Proxy URL which is different from the standard one ("secure-checkout") then you need to set your own URL instead of "secure-checkout" to change it to your URL in the regular expressions.
- GA Goals are tracked on the front-end side when a customer reaches some specified URL destination. Conversions are tracked on the back-end side so that is more reliable information regarding purchases than goals. If you notice a discrepancy between the Goal figure and the Conversion figure, note that the Goal can't be tracked when a customer uses some extension like Ghostery that doesn't allow to load Google, Facebook and other scripts.