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.
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.
Could you share the site URL?
This sounds like a problem with a tag or rule implemented through DTM, not the DTM script itself.
In any case, you will need to provide more details for what rule(s) trigger on those URLs, or provide an example URL for us to look at.
Continuing on with this question.
The Uncaught SyntaxError: Unexpected token > seems to be related to a page load rule associated with a tracking pixel to fire on "alexa-skills-kit" URL's.
Opening up the console, that The Uncaught SyntaxError: Unexpected token > links to the footer code
Does placing the footer code more to the bottom of the page address this issue? (see page source code)