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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

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

adwait_krishna
Level 2
Level 2

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

1 Accepted Solution
Rahsing
Correct answer by
Level 8
Level 8

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

View solution in original post

1 Reply
Rahsing
Correct answer by
Level 8
Level 8

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

View solution in original post