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

roberty10279373

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)

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)