- Issue created by @bhumblebee
Hello,
I have set up tether_stats on my site and the tracking is working well. Thank you for this great module. I am trying to set up link tracking and impression tracking in a view, but the tags get altered by the system, so it doesn't work. I put in the following wrapper DIV in a custom text field, for example:
<div class="tether_stats-track-impress" data-entity_type="node" data-entity_id="{{ nid }}" data-derivative="img_impression">
{{ field_image }}
</div>
but then when I look at the source code it looks like this:
<div class="tether_stats-track-impress" type="node" id="21" data-derivative="160_ad_impression">
<img loading="lazy" src="/sites/default/files/styles/medium/public/2025-01/kickboxing.jpg.webp?itok=ng-cUfHE" width="160" height="160" alt="Kickboxing" class="image-style-medium">
</div>
As you can see, data-entity_type and data-entity_id tags get changed to type and id respectively, so the impression tracking doesn't work. Can anyone here point me in the direction of figuring out how to stop it from changing these tags? Any help appreciated!
Active
2.0
Documentation