DTM | Event Based Rule

Avatar

Avatar
Validate 1
Level 1
jay_patel
Level 1

Likes

2 likes

Total Posts

10 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
jay_patel
Level 1

Likes

2 likes

Total Posts

10 posts

Correct reply

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

15-10-2015

I’m trying to setup an event (button click) based rule for a my site in DTM.

The button has the following;

·         Inner HTML - <span class="btn-value">Next</span> <i class="icon--next"></i>

·         Outer HTML - <button type="button" name="next" class="btn cta centered-mobile btn--next" id="trigger-step2" data-step="1"><span class="btn-value">Next</span><i class="icon--next"></i></button>

·         CSS selector - button.cta:nth-child(1)

I tried creating the rule based on the css selector (button.cta:nth-child(1)) & also without the CSS filter (button#trigger-step2), but neither option worked.

Could someone please provide any guidance on what I’m doing wrong?

Thanks!

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Give Back 50
Level 6
Rahsing
Level 6

Likes

17 likes

Total Posts

368 posts

Correct reply

132 solutions
Top badges earned
Give Back 50
Give Back 25
Give Back 10
Give Back 5
Give Back 3
View profile

Avatar
Give Back 50
Level 6
Rahsing
Level 6

Likes

17 likes

Total Posts

368 posts

Correct reply

132 solutions
Top badges earned
Give Back 50
Give Back 25
Give Back 10
Give Back 5
Give Back 3
View profile
Rahsing
Level 6

15-10-2015

Hi Jay,

I'm not sure why this isn't working but as an alternative, you can try using a data element for implementing this.

Here's some documentation on it.

Regards

Rahul

Answers (0)