Expand my Community achievements bar.

Help shape the future of AI assistance by participating in this quick card sorting activity. Your input will help create a more effective system that better serves your needs and those of your colleagues.
SOLVED

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

Avatar

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

Avatar

Correct answer by
Level 10

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

Avatar

Correct answer by
Level 10

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