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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Google Remarketing Code - Non-Sequential Javascript error

roberts58283265
Level 1
Level 1

Hello,

Has anyone had issues with trying to add google remarketing codes as non-sequential js?  I keep getting the error Unexpected token < (line: 1; col:1)

1 Accepted Solution
jantzen_belliston-Adobe
Correct answer by
Level 10
Level 10

Robert,

There is a great article by Jennifer Kunz that goes over converting various marketing pixels from HTML to JS. Have a look at the link below:

https://www.digitaldatatactics.com/index.php/2016/07/06/dtm-third-party/

Thanks,
Jantzen

View solution in original post

3 Replies
andrew_r-GrfLbX
Level 7
Level 7

You have HTML in your tag and it can only contain pure JS, you need to remove all HTML before you can use your tag, otherwise you can change the type to an HTML tag however it's better for performance if you use pure JS.

roberts58283265
Level 1
Level 1

I pulled the code directly from Adwords.  How do I convert to only .js?

jantzen_belliston-Adobe
Correct answer by
Level 10
Level 10

Robert,

There is a great article by Jennifer Kunz that goes over converting various marketing pixels from HTML to JS. Have a look at the link below:

https://www.digitaldatatactics.com/index.php/2016/07/06/dtm-third-party/

Thanks,
Jantzen

View solution in original post