@priscilla.langworth
To not use jQuery with Google Tag Manager, you can follow these steps:
- Remove any existing jQuery library loading code from your website or templates. This can be typically found in the tag or just before the closing tag.
- Disable or remove any scripts or tags in Google Tag Manager that rely on jQuery. This can include custom HTML tags, custom JavaScript variables, or custom templates that use jQuery.
- Review and update any existing JavaScript code that relies on jQuery and modify it to use plain JavaScript instead. Replace jQuery methods and functions with their equivalent native JavaScript equivalents. For example, use document.querySelector() instead of $("selector").
- Test your website thoroughly to ensure that it functions as expected without jQuery. Check for any errors or issues in the browser console and fix them accordingly.
- Once your website is confirmed to be working without jQuery, republish or update your Google Tag Manager container to reflect the changes.
By following these steps, you can remove the dependency on jQuery and use plain JavaScript instead in conjunction with Google Tag Manager.