Skip to main content

UTM Tracking & Marketing Attribution

How StoreRocket automatically passes UTM parameters from your page URL to outbound links like booking pages and website URLs.

Updated this week

StoreRocket automatically passes UTM parameters from your page URL to all outbound links inside the widget. This means when someone clicks an ad, lands on your site, and then clicks a booking link or website link through your store locator, the UTM data carries through. No setup needed.

How it works

When a visitor arrives on a page with UTM parameters in the URL (like ?utm_source=google&utm_medium=cpc&utm_campaign=spring), the widget captures those parameters automatically. When the visitor clicks any outbound link inside the widget, the UTMs get appended to that link.

This works with:

  • CTA buttons (like "Book Now", "Schedule Appointment", "Shop Online")

  • Website links for each location

The widget does not add UTMs to directions links (Google Maps) or social media profile links since those platforms don't use UTM tracking.

Cross-page persistence

The widget stores captured UTMs in the browser session. This means if someone lands on your homepage from an ad and then navigates to the page with your store locator, the UTMs still get passed through. They persist for the entire browsing session.

The UTM parameters also stay visible in the URL bar as visitors interact with the map, search for locations, and browse results.

Supported UTM parameters

The widget captures all five standard UTM parameters:

  • utm_source

  • utm_medium

  • utm_campaign

  • utm_content

  • utm_term

How to test it

  1. Add some test UTMs to the URL of the page where your widget is embedded. For example: https://yoursite.com/store-locator?utm_source=test&utm_medium=cpc&utm_campaign=test_campaign

  2. Select a location on the map

  3. Right-click a CTA button (like "Book Now") and select Copy link address

  4. Paste the link somewhere. You should see the UTM parameters appended to the end of the URL

  5. Or just click the button and check the address bar on the page that opens

Common use case: Calendly, HubSpot, and booking links

If your locations have CTA buttons that link to booking pages (Calendly, HubSpot, Acuity, etc.), the UTM parameters get passed through automatically. This lets you see which ad campaigns are driving actual bookings.

For example, if a visitor arrives from a Google Ad and clicks a "Book a Test Ride" button that links to Calendly, the Calendly URL will include the UTM parameters from the original ad click. Calendly (and most booking platforms) will record those UTMs alongside the booking.

Troubleshooting

UTMs not appearing on the link?

Make sure the UTM parameters are in the URL of the page where the widget is loaded. The widget reads from the URL bar, not from cookies or other sources. Try refreshing the page with the UTMs in the URL and test again.

UTMs disappearing when I navigate to the store locator page?

If your ad links to a landing page and the store locator is on a different page, the UTMs get stored in the browser session when the visitor first arrives. They carry over to the store locator page automatically. Make sure the widget is embedded on the page where you want the UTMs to pass through.

Do I need to enable this feature?

No. It works automatically for all accounts. There is nothing to configure.

Did this answer your question?