I experienced something today that would confirm it does affect SEO.
I just received a warning from the Google Search Console about increasing 404 errors, and almost all URL in error are in that form: /some-path/some-page/$%7Bconsent.infoURL%7D
.
Once URL decoded, we can see that ${consent.infoURL}
is a variable I use in a template tag, on a href
attribute:
<template data-template="cookie-notice">
`<div data-cookie-notice class="cookie-notice" role="dialog">
<span class="cookie-notice-caption">${consent.captionText}</span>
<a class="cookie-notice-link" href="${consent.infoURL}">${consent.linkText}</a>
<button data-button-consent type="button" class="cookie-notice-button">${consent.buttonText}</a>
</div>`
</template>
So Google Bot indeed follows links in template
tags.