Track FAQ data with accordion clicks tracking on GA4/GTM (and actually report the results)


Not to be dramatic, but accordions might be one of the most underrated features on your website ๐Ÿ‘€

They make long pages easier to read, improve SEO by letting you keep dense content on a single page, and letโ€™s be honestโ€”they look clean.

But hereโ€™s the best part: You can track which ones people click. And once you do? Youโ€™ll know exactly what your audience wants more of.

Real Example: FAQ click trends

Hereโ€™s how a table might look once the dataโ€™s flowing:

๐Ÿ’ก What it tells you:

  • People are really concerned about whether they need experience

  • โ€œRefundsโ€ and โ€œwhatโ€™s includedโ€ are also top of mind

  • These insights donโ€™t just reflect the users who clickedโ€”if these are common concerns, chances are others are wondering too and never made it to the FAQ

  • Might be worth pulling these answers up into higher-visibility areas like product pages, landing pages, or email sequencesโ€”before someone hits a roadblock and leaves


Getting Started ๐Ÿงฐ

Letโ€™s walk you through how to set up click tracking in Google Tag Manager (GTM), send that data to Google Analytics 4 (GA4), and report on it in Looker Studio so you can know these insights.

๐ŸŽฏ Yes, youโ€™re about to turn your FAQ section into an insights machine.

Before diving in, make sure you have:


Step 1: Enable click variables in GTM

Go to your GTM workspace โ†’ Variables โ†’ Configure.

Scroll down and check these boxes:

  • Click Classes

  • Click Element

  • Click ID

  • Click Target

  • Click Text โ† this is the MVP for accordion tracking.

These variables let you capture what people actually clicked.

 

Step 2: Create an FAQ tag in GTM

Go to Tags โ†’ New:

  • Tag Type: GA4 Event

  • Measurement ID: [your GA4 ID] - hereโ€™s an article on where to find your GA4 ID

  • Event Name: GA4 - Custom Event - FAQs (this can really be whatever you want, it only shows up in your GTM tags list)

You will also want to add a parameter that captures the click text data and sends it along with the fired event.

๐ŸŽ‰ This will send the clicked title to GA4.

 

Step 3: Create a trigger

Now go to Triggers โ†’ New OR just click the trigger section in your tag

  • Trigger type: Clicks > All Elements (if your accordions arenโ€™t actual links, which they normally arenโ€™t, theyโ€™re just text, i.e. an element)

  • Choose โ€œsome clicksโ€ and not โ€œall clicksโ€:

  • For the trigger fire conditions, this can be tricky to explain as it depends on how your page and table is set up. You will need to follow these exploration steps to investigate whatโ€™s available on your end, our set up may not necessarily work for you.

Hereโ€™s what we did to find what could work for us.

We used GTMโ€™s preview mode to test which values appear when you click the accordion. Thatโ€™s how you know which condition to use. So open up GTM in another tab. Click the โ€œPreviewโ€ button:

This will open up a window in a sister tool called โ€œtag assistantโ€. It should automatically insert your siteโ€™s URL. If not, add it in:

Click connect.

This will open a new window with your site - DO NOT CLOSE THIS NEW WINDOW. These windows are connected for data tracking purposes.

Click continue on the tag assistant window.

Now navigate to the page on your site that features the FAQ, or one of the pages. Start clicking a few questions. These actions should show up as a โ€œclickโ€ in the summary of GTM.

Now click on one of the click tabs and navigate to the โ€œvariablesโ€ tab.

Now we can see that GTM is picking up on a โ€œclick classesโ€ with the value of โ€œfaq-title-wrapperโ€. Itโ€™s also good to double check that the click text appears as well - which will be what demonstrates the text of the question in your report later.

Now letโ€™s click on a different โ€œclickโ€ in the summary to see if itโ€™s the same thing. The 3 I had selected turned out to be the same, but I know this is often not the case, so i clicked on a bunch of the questions in our table, and found one that was different:

This is important because sometimes depending on WHERE you click (i.e. the text or right above it), the data could be different. Maybe when the click class value is โ€œfaq-title-wrapperโ€, the click is more on the white box than the text. And when the click class value is โ€œfaq-questionโ€, itโ€™s a click on the actual question text. Either way, we want BOTH click scenarios to be included.

Now that weโ€™re equipped with this information, we can head back to the GTM trigger and add the following to make sure it includes variations of the faq class:

  • Trigger conditions:

  • {{Click Classes}}, contains, faq

 

Step 4: test & publish

Before hitting publish, make sure your tag and trigger are firing correctly.

Hereโ€™s how:

1. In GTM, click Preview in the top right corner.

2. Enter your site URL and click Connectโ€”this opens your site in debug mode. It will open up another window with your siteโ€™s front-end view as well. Keep both open.

3. Find the page that has the FAQ and click on a text to expand the accordion.

4. In the debug panel, look under Tags Fired โ€œsummary pannelโ€ and confirm your GA4 event is showing up:

Once itโ€™s working:

โœ… Hit Submit in GTM to publish your changes.

Youโ€™re now collecting FAQ data in GA4.

 

Step 5: register the custom dimension in GA4

Hereโ€™s the part most tutorials skip for the following reporting stage: if you want to see the accordion title that was clicked in GA4 or Looker Studio, youโ€™ll need to register a custom dimension.

Yeah, GA4 calls them โ€œCustom Definitionsโ€ even though youโ€™re creating a โ€œdimensionโ€ in Looker Studio and a "parameterโ€ in GTM. Classic Google chaos. But weโ€™re here to make it work.

In GA4:

1. Go to Admin โ†’ Custom definitions

2. Click Create custom dimension

  • Dimension name: Click Text (or whatever makes sense to you)

    1. Scope: Event

    2. Event parameter: click_text โ† must match the parameter name used in your GTM tag

๐Ÿง  Why this matters: Without this step, Looker Studio wonโ€™t know how to display the question titles in your report. This custom dimension unlocks that visibility.

๐Ÿ’ก If your tagโ€™s already been firing without these set up, GA4 wonโ€™t backfill that data into your reports. Even if the parameter was collected, it wonโ€™t show up until you register it as a custom dimension. So yeah... donโ€™t skip this step.

 

Step 6: Report on FAQ clicks in Looker Studio

Hereโ€™s where the fun begins.

You can set up a visual report showing:

  • Which accordion items got the most clicks

  • How those interactions trend over time

  • What sections are most useful to visitors

Basic table setup:

  • Dimension: Click Text

  • Metric: Event count or Users

  • Filter: include the event name you gave your tag in GTM with this logic

*Now Looker Studio actually picks up on your events and gives you a list of what they recognize which is super helpful.

๐Ÿช„ Bonus tip: Add a second metric for โ€œevent countโ€ showing % of total clicks to help contextualize the data and add a coloured heat map for enhanced design.

Hereโ€™s how:

Add another โ€œevent countโ€ - yes, the same metric

Then hover over the โ€œAUTโ€ to the left of the metric name, and click the pencil icon:

Rename the โ€œdisplay nameโ€ to % of total and choose the percent of total field under โ€œcomparison calculationโ€

This will now contextualize the number as a % of your total events.

Lastly, to add the colour gradient, head to the โ€œstyleโ€ panel under the edit section:

Head to where it says โ€œmetric #2โ€ and select the drop down that says number:

Choose heatmap and the colour of your choice:

In this case the colour contrast isnโ€™t all that interesting because the data is low, but oftentimes the colour disparity highlights an interesting change.


Why this matters

Accordion click tracking isnโ€™t just โ€œcool to know.โ€

It tells you:

  • Which sections are grabbing attention

  • What info people are hunting for before converting

  • What to prioritize in copy updates or sales pages

No more guessing whatโ€™s getting read. With one click, youโ€™ve got insight. Tracking accordion clicks is a small setup with a big payoff. You get UX feedback, conversion clues, and next-step ideas.

Need help setting it up?

๐Ÿ’ฌ We offer done-for-you services, 1:1 coaching, and soon: a full course on marketing analytics.

Previous
Previous

How to track your website video views and report the data

Next
Next

How to track website scroll depth with GTM, GA4, and Looker Studio