Something happened and gtag.js couldn't be loaded
See original GitHub issueDescription
“gtag.js couldn’t be loaded”

Expected behavior
Is should load the gtag.js library.
Actual behavior
“gtag.js couldn’t be loaded”
Environment
Using vue-gtag version 1.1.2.
- Operating system: Mac OS 10.15.2 (19C57)
- Browser and version: Google Chrome 79.0.3945.130
Reproducible Demo
Created empty vue project with vue create, added vue-gtag by using yarn add vue-gtag
main.ts
Vue.use(VueGtag, {
config: { id: 'GTM-XXXXXX' },
});
Issue Analytics
- State:
- Created 4 years ago
- Comments:18 (8 by maintainers)
Top Results From Across the Web
vue-gtag: `gtag.js couldn't be loaded` - Stack Overflow
I am new to javascript frameworks in general and trying to learn vue. I am trying to use google analytics for data collection...
Read more >GoogleAnalytics not being added · Issue #143 - GitHub
When I use the "Tag Assistant" plugin, it says that the gtag.js is set, but the analytics is not added. I checked the...
Read more >[GA4] Troubleshoot tag setup on your website - Analytics Help
The Google tag ID is incorrect · Click Data Streams and then select the web data stream for the website. · In the...
Read more >12 Ways to Fix the "The Media Could Not Be Loaded" Error in ...
Here, we have compiled a list of fixes you can use to resolve the issue if you are experiencing the same problem. 1....
Read more >new GTAG.js Analytics code (replaces Analytics.js code)
Global site tag (gtag.js) - Google Analytics --> <script async ... is simply a wrapper for analytics.js (loading gtag.js literally will load analytics.js)....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@MatteoGabriele - GTM ID does work. As a data analyst, if you have the “Preview” panel open at the bottom of the screen, it will throw the error in the console. Tell others to make sure that they close the Preview panel.
I was actually able to get it to load. My issue, having encountered the same error, was that I had not “published” the tag manager workspace related to the GTM ID that I was using. Once I published it, it started loading fine.