Track child elements with similar classes (not unique)
New
If I have a parent container (.container), with 4 boxes (.box) - how can I capture the engagements of each box element, without having to create a separate card/segment for each box?
The box elements are not clickable and are just text with padding.
I’m interested in capturing clicks made on the entire box, not just the text within each box if that makes sense.
I see that if I track the parent container, I can break down clicks by text. I assume that doesn’t include clicks on the padding around the text as well?
Hope this makes sense, and thank you!
0
Comments
4 comments
@smallchonker hey there - I think I might have an idea for you: could you create a Metric of users who click CSS is .container and then Group By Element / CSS Selector?
You can use the Dimensionality View to see clicks per each .box and at which rates. If you wanted to see engagement on the Text areas you can change your Group By to be Text:

And finally, if you want to see just the rolled up version of all the engagement to the container, just remove your Group By filter.
Is that solving for your use case? Keep us posted! 🚀
@smallchonker hey there - I think I might have an idea for you: could you create a Metric of users who click CSS is .container and then Group By Element / CSS Selector?
You can use the Dimensionality View to see clicks per each .box and at which rates. If you wanted to see engagement on the Text areas you can change your Group By to be Text:
And finally, if you want to see just the rolled up version of all the engagement to the container, just remove your Group By filter.
Is that solving for your use case? Keep us posted! 🚀
Hello! Thanks for the response. Yes this helps! but… I do have two follow up questions :)
I’m working with a CMS, and this container lives across soo many pages.
Is there a way to group by multiple dimensions (url, and text/css elements together for example)? Ultimately I will download it into a csv to make a custom report.
If grouping by multiple dimensions is not possible, what is the best way to accomplish something close to that?
And lastly, just to confirm -- interactions on child elements are tracked by the parent element right?
Buttons, and text inside a container are tracked by the parent container when those elements are engaged with?
Thanks again
Best of luck!
Hey everyone! 😊 Thanks so much for your question @smallchonker, and for your fantastic insight @stevenshyne!
Jumping in here to let you know that I submitted a feedback request on your behalf for the ability to group by multiple dimensions/filters @smallchonker.
Don’t hesitate to reach out should you have any more questions!
Please sign in to leave a comment.