Question

Track child elements with similar classes (not unique)


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!


4 replies

Userlevel 4
Badge +3

@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

Userlevel 4
Badge +3
  1. Multiple Grouping By - not a feature now, unfortunately. Sounds like CSV might be a good move for that. But note I don’t think (maybe I’m wrong) you can download as a CSV right from Metrics but you can add a Metric to a Dashboard and then download the card as a CSV so you’re good
  2. Interactions in Child Elements are tracked in Parent Elements, correct. The engagement metrics are all nested and will roll up to the largest container. So buttons and text inside them are tracked by the parent container, yes.

Best of luck!

Userlevel 5
Badge

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!

Reply