Opened 15 months ago

Closed 15 months ago

Last modified 12 months ago

#6807 closed enhancement (reported-upstream)

Adding Analytics to Mercantile Store

Reported by: bjmcsherry's profile bjmcsherry Owned by:
Milestone: Priority: normal
Component: Swag Store ( Keywords:


At the moment there is no data coming into Google Analytics for the Mercantile shop (, and the store just relaunched with a new design. With the new design, and new products coming into the store, it would be good to understand performance with this.

I understand that GA4 is coming soon (ticket:6483), but it would be good to start collecting data soon inside the existing Google Analytics property for

Change History (4)

#1 @bjmcsherry
15 months ago

There will be some social media content and a banner for that will be sending traffic to the Mercantile store, which is why it would be good to track performance soon.

#2 @jonoaldersonwp
15 months ago

To do this, we just need to add the same Google Tag Manager snippet that's already used throughout the rest of the ecosystem.

At a push, we could just use a native GA code, but that would:

  • Bypass a bunch of the privacy protections and configuration controls we have in GTM, and;
  • Require changing from UA to GA4 in a couple of months (or, require a dual roll-out, then an update in July)

Note that this has been asked before (see, but it seems that internal politics are preventing us from fixing our leaky bucket ;)

#3 @dd32
15 months ago

  • Resolution set to reported-upstream
  • Status changed from new to closed

Mercantile isn't under the control of the Meta team, but, I have opened an issue in the Automattic repo for it. @bjmcsherry I wasn't able to find your GitHub username, but you should be able to follow that up with whomever works on Mercantile (Probably whomever implemented the new design).

#4 @dd32
12 months ago

  • Component changed from Site to Swag Store (
Note: See TracTickets for help on using tickets.