Viewport events in DTM

Avatar

Avatar
Validate 1
Level 1
craig_scribner1
Level 1

Likes

2 likes

Total Posts

9 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
craig_scribner1
Level 1

Likes

2 likes

Total Posts

9 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
craig_scribner1
Level 1

15-10-2015

I'm tagging a site that's almost entirely built on a single html page. So as they move through the site, I need to trigger s.t() calls based either on what they click on, or what elements become visible. 

I'm trying the 2nd route, firing a call when certain elements enter the Viewport. Hopefully that is the right approach--would a non-visible element within the viewport fire something off in DTM? If so, then I'm going about this the wrong way. But I must be doing something wrong regardless, because nothing's firing for me. 

Here's my rule: 

- Event-based Rule with these Conditions: 

-->Event Type: enters viewport (immediately)

--> Tag: <div>

--> "manually assign properties & attributes" checked

--> id = bookingSteps

And that ties to an s.t() call in Adobe Analytics. Any ideas why that wouldn't work?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 3
Level 2
shawncreed1
Level 2

Likes

3 likes

Total Posts

25 posts

Correct reply

12 solutions
Top badges earned
Boost 3
Boost 1
Affirm 5
Affirm 3
Affirm 10
View profile

Avatar
Boost 3
Level 2
shawncreed1
Level 2

Likes

3 likes

Total Posts

25 posts

Correct reply

12 solutions
Top badges earned
Boost 3
Boost 1
Affirm 5
Affirm 3
Affirm 10
View profile
shawncreed1
Level 2

15-10-2015

Craig,

Yes, non-visible elements in DTM still trigger "enters viewport", as we don't look to see if something's visible. You can use CSS selectors to help narrow the focus of what the engine matches against though.  See my earlier reply for details.

Best,
Shawn

Answers (0)