question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Something happened and gtag.js couldn't be loaded

See original GitHub issue

Description

“gtag.js couldn’t be loaded”

image

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.

  1. Operating system: Mac OS 10.15.2 (19C57)
  2. 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:closed
  • Created 4 years ago
  • Comments:18 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
all-i-do-is-wynn2commented, May 20, 2020

@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.

1reaction
ryexleycommented, May 15, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found