Tawk. How to add consent to script added by plugin in footer
-
I need help. I have the Tawk plugin installed, which inserts in the footer <script id=”tawk-script” type=”text/javascript”></script> that displays the chat. I want to run the script after user give consent to cookies.
I understand well both variants that you provided here, but I have no idea how to apply them to my situation. If i was inserting plugin manually, I could apply your solution. But when it’s automatic generated…
First of all, I can’t go into the footer editor and wrap code added by plugin with
//Functional <script type="text/javascript" data-category="functional"></script>
because plugin inserts it only when the page is running. Please tell me how do I have to wrap the code inserted by the plugin with the upper code.
I also don’t know how to do the second solution – adding the code to Script Center, because the code is inserted by a plugin. I assume that this Script Center will allow me to block the plugin if I paste the script through the Center myself?
Please help. Thank you.
- The topic ‘Tawk. How to add consent to script added by plugin in footer’ is closed to new replies.