Connect Google Analytics to see who visits your store and what they look at. The plugin adds your Google Analytics tag to every page of your storefront, including checkout and the order confirmation page, so you don’t have to edit your theme.
Features
| Feature | Description |
|---|---|
| Storefront tag | Adds your Google Analytics tag to every storefront page, checkout and the order confirmation page |
| Traffic reporting | Google Analytics records a page view for each page a shopper opens, so you can review visits and audience activity in your Google account |
| One setting | Only your measurement ID, which you can change or remove at any time |
Before You Start
You need a Google Analytics 4 property with a web data stream for your store. Its measurement ID starts with G-; you’ll find it in Google Analytics under Admin, in your property’s data streams, on your web stream.
Setting Up
- Go to Plugins > Marketplace and find Google Analytics.
- Click Activate.
- Enter your Measurement ID, such as
G-XXXXXXXXXX. Enter just the ID, not the whole tag Google gives you. - Click Activate Plugin.
- Open your store in another tab and check the Realtime report in Google Analytics to confirm the visit arrives.
FirearmCart doesn’t check the ID with Google, so a typo isn’t caught when you save. The Realtime check in step 5 is the quickest way to confirm it’s right.
Changing or Removing the ID
Go to Plugins > Marketplace and click Configure on the Google Analytics card:
- Change the Measurement ID and click Save.
- Click Deactivate to remove the tag from your store. Your ID is kept, so it’s filled in for you if you activate the plugin again.
Changes apply from the next page a shopper opens.
Which Pages Are Tracked
The tag loads on:
- Every page your theme renders: home, collections, products, cart, search, pages, blog posts and customer account pages
- Checkout
- The order confirmation page
It isn’t on the customer sign-in page or on the pages of outside payment providers.
Using Custom Scripts Instead
Don’t paste Google’s tag into Header scripts under Custom scripts in your store settings as well as using the plugin: page views would be counted twice. Custom scripts also don’t run on checkout or the order confirmation page, so the plugin covers more of the shopper’s visit. See Store Information.
Troubleshooting
No Data in Google Analytics
Solutions:
- Check that the Measurement ID matches your web data stream exactly and starts with
G- - Make sure you entered just the ID, not the full tag
- Watch the Realtime report while you browse your store; standard reports can take a day or more to fill in
- Ad blockers and some browser privacy settings stop Google Analytics, so your own visits may not show if you use one
“The Measurement Id field is required.”
Enter your measurement ID before clicking Activate Plugin or Save.
Page Views Counted Twice
Remove Google’s tag from Header scripts under Custom scripts in your store settings. The plugin already adds it.
Related Documentation
- Google Search Console - See the searches that bring shoppers to your store
- Store Information - Custom scripts and other store settings
- Integrations - All integrations

