DTM: Non-Sequential HTML tag

Avatar

Avatar
Validate 1
Level 2
Ridder_M
Level 2

Likes

3 likes

Total Posts

20 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 2
Ridder_M
Level 2

Likes

3 likes

Total Posts

20 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile
Ridder_M
Level 2

15-10-2015

Hello,

I'm using a Non-Sequential HTML Javascript/Third Party tag, where I'm using the following script to pass data to a 3rd party tag.

<script>x = _satellite.getVar('Sub-Total');</script>

The problem that I have is that no data is passed to "x".

I have also tried the following:

<script>var x = $('td[data-hook="order_item_total"]').text().substring(1);</script>

In this case I'm getting $ is undefined. Note, both methods work when I test it in the Javascript console and if I use a Non-Sequential Javascript tag. What do I need to add to make either of these work? Your help is greatly appreciated.

Thanks,

Ridder

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Contributor
Level 4
mikethompson
Level 4

Likes

62 likes

Total Posts

102 posts

Correct reply

14 solutions
Top badges earned
Contributor
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile

Avatar
Contributor
Level 4
mikethompson
Level 4

Likes

62 likes

Total Posts

102 posts

Correct reply

14 solutions
Top badges earned
Contributor
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile
mikethompson
Level 4

15-10-2015

Your non-sequential HTML tag is probably going into an iframe, so you might be seeing some issues around that.

For the first case, try referencing your variable as %Sub-Total% rather than using the getVar function.

Answers (0)