jay76
jay76

Reputation: 25

Using Adobe DTM to track CSS-based show/hide events

I'm having some trouble figuring out the best way to get ADTM to fire when I show or hide a piece of content on one of my pages. Note, I'm simply toggling the style.display, not retrieving and inserting via AJAX.

I gather that it would be some sort of Event Base Rule with a custom condition to test the style.display value, but I'm unsure of which event I should actually be using. The closest one would seem to be "element exists", but that seems to only be for testing the presence of DOM nodes.

Any help greatly appreciated.

Upvotes: 0

Views: 1340

Answers (1)

RudiShumpert
RudiShumpert

Reputation: 66

The way to do this would be to use the "Enters Viewport" option. When the item visibility is set to display and the user can see the content then this event is triggered.

-Rudi

** Great DTM Content ******* DTM Blog Posts: http://blogs.adobe.com/digitalmarketing/tag/dynamic-tag-management/
Full DTM Demo..no slides…just live demo: https://outv.omniture.com/play/?v=B5ODcybDozpBfRAARKiVrQ7V9lMtrD1C

Upvotes: 1

Related Questions