Include Tracking JS Code Correctly
-
Hello guys,
I try to include a js snippet in the script section, so that it only gets loaded when the user agrees.
The original snippet is
<script defer type="text/javascript" src="https://api.pirsch.io/pirsch.js" id="pirschjs" data-code="myid"></script>
I know that one has to remove the script tags, as Complianz puts their own aroud it, so I did that and I put another ; after defer
defer; type="text/javascript" src="https://api.pirsch.io/pirsch.js" id="pirschjs" data-code="myid">
This results in
<!-- Script Center statistics script Complianz GDPR/CCPA --> <script type="text/plain" data-category="statistics"> defer; type="text/javascript" src="https://api.pirsch.io/pirsch.js" id="pirschjs" data-code="myid" </script>
and does not work. Could you give me a hint what to do next? That would be much appreciated!
Thanks a lot!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Include Tracking JS Code Correctly’ is closed to new replies.