Google Remarketing Code - Non-Sequential Javascript error | Community
Skip to main content
May 16, 2017
Solved

Google Remarketing Code - Non-Sequential Javascript error

  • May 16, 2017
  • 3 replies
  • 2783 views

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)

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by jantzen_b

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

3 replies

andrew_r-GrfLbX
May 16, 2017

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.

May 16, 2017

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

jantzen_b
Adobe Employee
jantzen_bAdobe EmployeeAccepted solution
Adobe Employee
May 16, 2017

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