unexpected token < (line: 1, col:1)

Avatar

Avatar
Validate 10
Level 2
roberty10279373
Level 2

Likes

4 likes

Total Posts

35 posts

Correct reply

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

Avatar
Validate 10
Level 2
roberty10279373
Level 2

Likes

4 likes

Total Posts

35 posts

Correct reply

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

18-10-2017

I tried posting a non-sequential tag on DTM but got the unexpected token error.  Here's the non-sequential javascript:

<script async type="text/javascript" src="https://cdn.creditcards.com/shared/helix/0.1.3/helix-qa.min.js"></script>

Add Comment

-Robert

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1000
Community Manager
jantzen_belliston-Adobe
Community Manager

Likes

339 likes

Total Posts

2,340 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,340 posts

Correct reply

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

18-10-2017

Hi Robert,

That is because your tag isn't actually JavaScript. Anytime you see opening and closing tags (<script> and </script>), you're actually looking at a HTML tag instead. In your case, the HTML tag is calling a javascript file at the URL. Try deploying the tag as synchronous HTML instead.

Cheers,
Jantzen

Answers (0)