Skip to main content

Analytics, Event Tracking, and Google Analytics Integration

Track store locator views, searches, and clicks, plus integrate with Google Analytics and other tracking tools.

Updated yesterday

StoreRocket tracks how visitors interact with your store locator out of the box. You can see what people are searching for, which locations get the most attention, and which websites are driving the most traffic to your widget.

Built-in analytics dashboard

Go to your Analytics page to see an overview of your widget's performance. You can adjust the date range to look at specific time periods.

Here's what StoreRocket tracks:

Metric

What it means

Widget views

How many times your store locator was loaded on a page

Searches

How many times a visitor searched for a location

Clicks

Interactions with location cards (directions, phone, website, CTA buttons)

Popular locations

See which stores get the most views and clicks. This tells you which locations visitors care about the most. Useful for understanding demand across your network.

Popular websites

If you've embedded your widget on multiple pages or websites, this shows you which ones drive the most traffic. Helpful for figuring out which pages are actually getting used and which ones might need more visibility.

Search data

This is one of the most valuable parts of analytics. You can see exactly what your visitors are typing into the search box. Common patterns include city names, zip codes, and "near me" style searches.

Want the raw data? You can export your search data as a CSV for deeper analysis.

Google Analytics (GA4) integration

StoreRocket fires JavaScript events that Google Analytics 4 can pick up automatically. If you have GA4 running on the same page as your store locator, these events will show up in your GA4 reports.

Events fired

Event name

When it fires

storerocket_view

Widget loads on the page

storerocket_search

Visitor performs a search

storerocket_click

Visitor clicks on a location (directions, phone, website, etc.)

These events flow into GA4 like any other custom event. You can build reports, set up conversions, and create audiences around them.

Setup

There's nothing extra to configure in StoreRocket. As long as GA4 is running on the same page, it picks up the events automatically. Check your GA4 Realtime report to verify events are coming through. Search for a location on your widget, then look for the events in GA4 within a few seconds.

Other analytics tools

If you're using a different analytics platform (Plausible, Mixpanel, Segment, etc.), you can listen for the same JavaScript events and forward them to your tool of choice using custom code on your site.

UTM parameters

StoreRocket doesn't pass UTM parameters through to location clicks natively. If you need UTM tracking, use the UTM parameters on the page where your widget is embedded. Since GA4 tracks the page URL including UTMs, your widget events will be associated with whatever campaign brought the visitor to that page.

Exporting data

You can export search data as CSV from the Analytics page. Click the export option to download a file with all search queries, dates, and locations searched.

Troubleshooting

Analytics showing no data

Give it at least 24 hours. Analytics data isn't instant. If you just installed the widget or just checked analytics for the first time, there might not be enough data yet.

Also verify your embed code is correctly installed. If the widget isn't loading, there's nothing to track. Check the Widget Preview to make sure everything looks right.

Numbers seem low

A few things to consider:

  • Are you looking at the right date range? Adjust the dates on the Analytics page

  • Multiple embeds? Make sure all your pages have the correct embed code

  • Caching: If your website uses heavy caching, the widget might not load fresh for every visit. This can affect view counts

GA4 events not showing up

Confirm that GA4 is installed and running on the same page as your StoreRocket widget. Open your browser's developer console and check for GA4's tracking script. Then search for a location and check GA4's Realtime report for the events.

Questions? Hit us up on live chat.

Did this answer your question?