How do you track interactions with an accordion accurately
I am doing a test with experiences A-E and want to monitor interaction with an accordion.
I am using dd-data tracking in the class of the element:
E.G dd-data-link
data-dd-link="clicked on accordion"
data-dd-loc="final details page"
data-dd-group="motor"
This will show in the data layer for analytics as a P37 tag
I want to be able to filter out the multiple clicks from some customers so I can report on of all the customers who visited the page X% opened the accordion
I don't want to dilute the number by having accordion closes count as an instance when its clicked & inflate the interactions to look higher than they are.
I also don't want a customer clicking to open and close this element 10 times look like 10 possible opens when 5 are closes.
How would you suggest going about this?
Many thanks in advance