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

SOLVED

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

roberty10279373
Level 3
Level 3

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

1 Accepted Solution
jantzen_belliston-Adobe
Correct answer by
Community Manager
Community Manager

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

View solution in original post

1 Reply
jantzen_belliston-Adobe
Correct answer by
Community Manager
Community Manager

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

View solution in original post