Closed yooouuri closed 4 years ago
you are most likely using a browser with ad blockers or an extension to block ads.
Do not have any adblockers...
Can I use this library with a https://tagmanager.google.com/ account?
@yooouuri can you try on a private window?
@MatteoGabriele private window (Chrome and Safari) same error...
I am using a https://tagmanager.google.com/ account, is it possible to use it?
now that I see your http request, I think you are passing the wrong ID. you can use Google Analytics, Google Ads, and Google Marketing Platform.
Ah I need to use the https://tagmanager.google.com/ account.
Thanks for helping.
@yooouuri no worries! cheers
So what was the solution here? Does this lib not work with GTM-XXXXXXX
accounts? @yooouuri did you have to use something other than vue-gtag
?
@ryexley I don't think that was made to accept GTM ids
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.
ah! good to know :)
@ryexley - did you have to make any changes to the code? Our container is published and I am getting this error.
@all-i-do-is-wynn2 yes and no. We ultimately ended up moving away from using vue-gtag and just went with a custom implementation as we didn't really need the full integration with Vue. I'm sure that doesn't help you much though, sorry.
@ryexley - thank you for the insight and the quick response!
@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.
Thanks a lot! Your comment here will help other people struggling with this one
@MatteoGabriele Hello, my Google Optimize and GTag are both blocked by ad blocker. I do see you mentioned ad blocker, is there anyway to work around ad blockers?
@MatteoGabriele Hello, my Google Optimize and GTag are both blocked by ad blocker. I do see you mentioned ad blocker, is there anyway to work around ad blockers?
I hope not 🤣
Description
"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.
Reproducible Demo
Created empty vue project with
vue create
, added vue-gtag by usingyarn add vue-gtag
main.ts