We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does this module automatically set the script to use async attribute? How can I change to defer?
async
defer
The text was updated successfully, but these errors were encountered:
We can use setTimeout, but I am not sure is it good idea 🤔
setTimeout
setTimeout(() => { TagManager.initialize({ gtmId: process.env.NEXT_PUBLIC_GTM_ID }); }, 4000);
Sorry, something went wrong.
You can instead install react-gtm-module-defer and then in your code import TagManager from 'react-gtm-module-defer'. That will change async to defer.
react-gtm-module-defer
import TagManager from 'react-gtm-module-defer'
No branches or pull requests
Does this module automatically set the script to use
async
attribute?How can I change to
defer
?The text was updated successfully, but these errors were encountered: