Uncaught SyntaxError: Unexpected token >

zachh54251853

13-10-2017

We're seeing the error above on all of our pages that contains "alexa-skills-kit" anywhere in the last part of the URI (after the last / ). Does Adobe Analytics have any special requirements when it comes to the URL? We're not seeing this issue on any other pages, and they all use the same script information. The error is located on the Footer line below.

Header:

    <script src="//assets.adobedtm.com/2c02c31d2aed638ba6c6ca977df6b73f9ff514c3/satelliteLib-38635b7dc936a1789c429e0c77550bc7a78f33af.js"></script>

    <script src="https://assets.adobedtm.com/2c02c31d2aed638ba6c6ca977df6b73f9ff514c3/s-code-contents-373b2dd14221c28..."></script>

Footer: <script type="text/javascript">_satellite.pageBottom();</script>

View Entire Topic

joshd7227840

MVP

18-04-2018

So it's kind of hard to give a definitive answer to this because of the way DTM digests and (dynamically) outputs tags, and this is all I have to go by (vs. being able to see the tag within the DTM interface), but it looks to me like there is a difference in formatting in the prod version vs. staging (unpublished) version of a tag in a rule named ""Amazon Pixel - Alexa" (the last rule to trigger before the error, according to DTM notifications). Namely, looks like there is a loss in line breaks which may be causing issues. My guess is since the line breaks are missing, perhaps there is a comment line (// some comment) that's effectively commenting out parts of the code, being all on one line w/out line breaks.

As a first level of effort, can you try disabling this rule (unpublished) to see if the error goes away?

But overall, I do not see the error in prod mode; only stage mode. So it is something unpublished that's the culprit.