Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Custome DTM Condition

Avatar

Avatar
Validate 1
Level 1
lokendras118723
Level 1

Likes

2 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
lokendras118723
Level 1

Likes

2 likes

Total Posts

5 posts

Correct Reply

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

24-10-2017

Hi,

Previously my site was getting tracked through Legacy code and now all legacy code has been placed in s code through DTM. Now i want to create a condition on pagename (For Example if pagename is equal to abc)  to get fired some script. I have tried both option Data element and variable set, both are not working.

Please help me in writing custom code.

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 50
Employee
Kaushalendra
Employee

Likes

65 likes

Total Posts

142 posts

Correct Reply

69 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Boost 50
Employee
Kaushalendra
Employee

Likes

65 likes

Total Posts

142 posts

Correct Reply

69 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 10
View profile
Kaushalendra
Employee

24-10-2017

Hi lokendras11872334​,

You can create a Page Load Rule under which you can add Third Party Tags for your script and condition for the rule should be based on the way pageName is being populated.

If there is a Data Element which is populating the pageName, check for the Data Elements value in condition. If this doesn't work (rule doesn't fire), it means that the data element is not populated by the time rule condition is checked and hence you need to trigger rule lower in load order.

If pageName is being populated through custom script or an object on page, you can use the same object in rule condition as custom script.

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1000
Community Manager
jantzen_belliston-Adobe
Community Manager

Likes

339 likes

Total Posts

2,331 posts

Correct Reply

819 solutions
Top badges earned
Validate 1000
Springboard
Validate 500
Validate 250
Validate 100
View profile

Avatar
Validate 1000
Community Manager
jantzen_belliston-Adobe
Community Manager

Likes

339 likes

Total Posts

2,331 posts

Correct Reply

819 solutions
Top badges earned
Validate 1000
Springboard
Validate 500
Validate 250
Validate 100
View profile
jantzen_belliston-Adobe
Community Manager

17-11-2017

lokendras11872334,

Does the previous reply answer your question? If so, would you mind marking it as the correct answer?

Cheers,
Jantzen