No results found

Try a different search query

Popular searches:

Add to Cart

Cart

You have no purchases yet

Browse Marketplace
Original Subtotal:
Product discounts:
Quantity Discount:
Total:
View Cart
Advertising and analytics

Online Store Analytics: What to Set Up on Day One in OpenCart

Minimum analytics setup for a new OpenCart store: which numbers to track, what the 3.0 and 4.1 built-in reports do, GA4, the purchase event, UTM and tracking codes.

9 min read

Analytics for an online store on its first day is not dozens of dashboards, but a few things without which you should not launch advertising: Google AnalyticsA system for analyzing visitor behavior. It is connected with code or in "Extensions → Extensions," type "Analytics." More in the glossary → 4 with a purchase event, UTM tags on all links, Google Search Console, and the reports built into OpenCart itself. Set them up before the first paid campaign, because data does not appear retroactively: what was not recorded in the first month cannot be recovered.

What numbers should the store see from day one?

Start with a short list of metrics you will actually look at every week. Everything else can be added later, when questions arise.

  • Visitors and sessions by source: search, advertising, social networks, direct visits, newsletters.
  • Number of orders and revenue for each source — the main reason for setting everything up.
  • Conversion rate — the share of sessions that end with an order. Terms such as conversion rate and average order valueRevenue divided by the number of orders. More in the glossary → are explained in plain language in the e-commerce glossary.
  • Average order value and the share of repeat customers.
  • Funnel: product view → add to cart → start of checkout → purchase. It shows where customers drop off.

These numbers make sense only together with cost of goods: advertising revenue without margin says nothing about profit. The article on unit economics of one order explains how to turn analytics into money.

An important point for the owner: the source of truth about sales is the orders in the OpenCart admin, not the numbers in Google Analytics. Analytics always undercounts a little: ad blockers, refusal of cookies, payments that were completed on a bank's website. A discrepancy of roughly 5–15% is normal and depends on the audience and how cookie consent is configured. But if GA4 shows half as many orders as the admin, something is broken.

What can OpenCart do without any modules?

OpenCart itself has reports that do not depend on third-party services and are calculated from your real orders. They are located in the Reports section of the admin main menu — and in both 3.0 and 4.1 there are three items there: Reports, Who's Online, and Statistics.

Reports section: selecting a sales report, viewed and purchased products
Reports section: selecting a sales report, viewed and purchased products · OpenCart 4.1.0.4

Among the standard reports, these are useful from day one:

  • Sales — number of orders and amount per day, week, or month, with a filter by status;
  • Products Viewed and Products Purchased — comparing them shows products that are viewed but not bought (a signal to check the price, photos, or description);
  • Customer Searches — what people search for on the site, including things you do not have;
  • Marketing report — visits and orders by tracking codes (more on these below).

Some reports work only after data collection is enabled. Open System → Settings, the Option tab, and in the account block enable Customers Online, Customers Activity, and Log Customer Searches. Without them, the corresponding reports will be empty. If the report you need is not in the list, it must be installed and enabled as an extension of the Reports type in Extensions → Extensions.

Option tab: switches for collecting online customers, activity, and search queries
Option tab: switches for collecting online customers, activity, and search queries · OpenCart 4.1.0.4

How do you connect Google Analytics 4 to OpenCart 3.0 and 4.1?

Here the versions differ. OpenCart 3.0 has a standard Google Analytics extension: Extensions → Extensions, type Analytics. You install it, paste the tag code from the Google Analytics account into the code field, enable the status — and the code is output on all storefront pages. This is enough for page views and traffic sources.

Analytics type extensions in OpenCart 3.0: the standard Google Analytics extension
Analytics type extensions in OpenCart 3.0: the standard Google Analytics extension · OpenCart 3.0.5.1

In OpenCart 4.1 the Analytics extension type exists, but a ready-made Google Analytics extension is not included. The options: an analytics module from the marketplace, Google Tag ManagerA container for managing scripts without editing code. More in the glossary → connected via a module, or inserting code into the theme template (the last is the least desirable, because changes are lost when the theme is updated).

Regardless of version, remember the main limitation: a simply inserted GA4 tag counts visits but knows nothing about products, the cart, or purchases. Ecommerce eventsData on product views, cart additions, and purchases for analytics. More in the glossary → (product view, add to cart, start of checkout, purchase with amount) are not passed by the OpenCart core in either 3.0 or 4.1. They are added by an ecommerce module or by configuring Tag Manager with a data layer. Detailed e-commerce setup will be covered in a separate article in the GA4 section.

For OpenCart 3.0, a comprehensive solution is the SP SEO Remarketing All In One Pro module. It replaces several separate tags: it sends enhanced ecommerce events to GA4, remarketing and conversion events to Google Ads, Meta Pixel together with Conversions API, TikTok, Microsoft Advertising and eSputnik, and it generates an XML product feed. The advantage of one module instead of five scripts is that you do not manually insert separate code for each advertising system, and you have less risk of duplicate events. Even with such a module, verify the purchase with test orders, as described below: the module does not protect you from errors in settings.

At the same time, create a property in Google Search Console and verify the domain: it shows which queries bring the store up in Google and which pages are not indexed. It is free and does not depend on modules.

Why is the purchase event the most important setting?

All advertising systems learn from conversions. If Google Ads or Meta do not see purchases with amounts, they optimize ads for clicks rather than sales, and you pay for traffic that does not buy. Therefore the purchase event with the order number and amount is the minimum without which it is better not to launch advertising.

What to check after setup:

  1. Place a test order with each payment method: cash on deliveryPayment upon receipt. It increases the risk of parcel refusals. More in the glossary →, online card payment, bank transfer.
  2. Make sure the purchase appears in GA4 realtime reports with the correct amount in hryvnias.
  3. Refresh the successful order page — the event must not be duplicated.
  4. Check online payment separately: the buyer may not return from the bank's page, and then the event on the "Thank you" page will not fire.

The last point is the most common cause of discrepancies between the admin and analytics. If the order status after payment also behaves strangely, start with the article on order status after payment.

UTM tags and tracking codes: how to know where the buyer came from?

UTM tags are parameters in a link (utm_source, utm_medium, utm_campaign) that tell analytics which campaign the visitor came from. Put them on all links you control: Instagram posts, newsletters, Viber, banners with partners, social media bios. Google Ads with auto-tagging adds its own tags automatically. Create a table with writing rules (lowercase only, one name per source), otherwise in a month the reports will show "instagram", "Instagram", and "insta" as separate rows.

OpenCart also has its own mechanism: Marketing → Marketing. There you create a campaign with a tracking code and get a link with the tracking parameter. When a visitor follows such a link, OpenCart remembers the code and counts the visits, and the marketing report shows the number of visits, orders, and amount for each campaign.

The advantage of this report is that it counts real OpenCart orders and does not depend on ad blockers or analytics cookie consent. The drawback is that it does not see advertising costs and shows only campaigns for which you created a code. So use it as a control figure next to GA4: for a pair of key campaigns (for example, a newsletter and a blogger), it quickly answers the question "were there any sales at all."

First-day checklist

Go through it before launching advertising, preferably together with the person who built the site. Most items take minutes, but without them the reports for the first month will be incomplete.

  • GA4 property created, the tag is present on all pages exactly once.
  • The purchase event passes the order number and amount in hryvnias, checked for each payment method.
  • Google Search Console connected, sitemap submitted.
  • In System → Settings, Option tab, collection of customer activity and search queries is enabled.
  • A UTM rules table exists, and all social media links already have tags.
  • Codes for key campaigns created in Marketing → Marketing.
  • The cookie consent banner is configured so that it does not disable analytics completely (details in a separate article on Consent Mode).
  • It is recorded who looks at the numbers and when: a 15-minute weekly review is more useful than a dashboard nobody opens.

If the store is still being planned, add these steps to the general plan from the article how to launch an online store without rework, and check the technical settings before launch against setting up OpenCart after installation.

Summary

  • Minimum for day one: GA4 with a purchase event, Search Console, UTM tags, and enabled OpenCart reports.
  • In OpenCart 3.0 the standard Google Analytics extension only inserts the tag; in 4.1 there is no ready-made extension. Ecommerce events in both versions require a module or Tag Manager.
  • Verify purchases with test orders for each payment method and make sure the tag is not duplicated.
  • Reports → Reports and Marketing → Marketing codes count based on real orders — keep them as a control for GA4.
  • Analytics makes sense only when someone regularly looks at the numbers and makes decisions.

Next, see the setup of advertising, pixels, and attribution in the section Advertising and analytics.

FAQ

Can you get by with only OpenCart's reports, without Google Analytics?
For sales records, yes, but OpenCart reports don't show traffic sources or on-site behavior and don't pass conversions to ad platforms. For advertising, GA4 or another tracking tool is needed.
Why does GA4 show fewer orders than the admin panel?
Some buyers are invisible because of ad blockers, declined cookies, or because they didn't return to the site after online payment. A small gap is normal; a large one means a setup error.
Does a small store need Google Tag Manager?
Not necessarily, but it's convenient when you have several tags: GA4, Google Ads, Meta Pixel. Then changes can be made without editing the site template.
Does analytics affect site speed?
Each tag adds a little loading time. Install only the scripts whose data you actually use, and remove old ones.
Was this article helpful?
Thanks for your feedback!

Related articles

Didn't find the answer?

Ask the community: OpenCart developers answer on the forum.

Ask on the forum
We use cookies

We use cookies and similar technologies to improve your experience, analyse traffic, and show personalised ads. Read our Cookie Policy for details.