How to fetch dynamic value in 3rd Party Tags in DTM ?

Avatar

Avatar
Validate 1
Level 1
adwait_krishna
Level 1

Likes

0 likes

Total Posts

7 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
adwait_krishna
Level 1

Likes

0 likes

Total Posts

7 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile
adwait_krishna
Level 1

15-10-2015

Hi All,

We have some code snippet which we want to place on the page and I can use 'Javascript/Third Party Tags' to do that. 

But the challenge is, we have some fields in the snippet which requires data to be picked up from the page dynamically. Please see below one sample code snippet:

<script>
demo.identify({
customer_id:'11111', // TODO: Replace with your customer identifier
email: 'johndoe@somedomain.com', // TODO: Replace with your customer's email address
joined_at: '2014-08-24’, // TODO: Replace with your customer's join date
firstname: 'John', // TODO: Replace with your customer's firstname if available
lastname: 'Doe' // TODO: Replace with your customer's lastname if available
});
</script> 

 

These all fields needs to be populated from the page dynamically. The page has these details available. 

Please suggest, how can the data be picked from and then how these picked data be fetched here in the snippet ?

 

Thanks,

Adwait

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,

Have you tried using direct call rules for this?

Here's some documentation  and a video to give you some idea about them.

Kind Regards

Rahul

Answers (0)