AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

Analytics
1.9K members online now
1.9K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
 
Guide Me
star_border
Reply

An error occured while the tag was fired: net::ERR_CONNECTION_REFUSED

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

We recently converted our website http://2minuteexplainer.com to WordPress.

Now we see the following error reported by Google Tag Assistant:

An error occured while the tag was fired: net::ERR_CONNECTION_REFUSED

 

The script is all correct and in the right place as far as I can tell. Can anyone suggest a good way to troubleshoot?

 

Thanks,

Bruce

 

1 Expert replyverified_user
1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by topic author Bruce M
September 2016

Re: An error occured while the tag was fired: net::ERR_CONNECTION_REFUSED

Top Contributor
# 6
Top Contributor

Hi,

 

For me it's fine now in Tag Assistant:

 

bruce.png

 

Let me know if you are receiving data in GA.


Arnold Majlath, Google Analytics Top Contributor
Was my response helpful? If yes, please accept it as solution.
Circle Me On Google+ | Visit me @ Redfly Digital

View solution in original post

Re: An error occured while the tag was fired: net::ERR_CONNECTION_REFUSED

Top Contributor
# 2
Top Contributor
Hi Bruce,

I checked your site, you have your tracking code installed twice. One instance is installed through the MonsterInsights plugin and the other one appears in the body tag of your pages. You will need to remove the second instance of the code in order to resolve the issue, let me know when done and I'll check it again for you.

Arnold Majlath, Google Analytics Top Contributor
Was my response helpful? If yes, please accept it as solution.
Circle Me On Google+ | Visit me @ Redfly Digital

Re: An error occured while the tag was fired: net::ERR_CONNECTION_REFUSED

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭
Thanks so much. I disabled the script added to header php -- which makes the error go away. I reconnected MonsterInsights and enabled debug mode. But Tag Assistant detects no tags. Bleh.

Any suggested troubleshooting resources would be most appreciated.

Cheers,

Bruce

Re: An error occured while the tag was fired: net::ERR_CONNECTION_REFUSED

Top Contributor
# 4
Top Contributor
Hi Bruce,

The tracking code does not appear in the source code of your site now. Double check the MonsterInsights plugin settings, it was working the last time I checked. Please keep me updated.

Cheers

Arnold Majlath, Google Analytics Top Contributor
Was my response helpful? If yes, please accept it as solution.
Circle Me On Google+ | Visit me @ Redfly Digital

Re: An error occured while the tag was fired: net::ERR_CONNECTION_REFUSED

Visitor ✭ ✭ ✭
# 5
Visitor ✭ ✭ ✭
Oh. Sorry. I forgot to save something. So now I have the MonsterInsights tracking code in place. But Google Tag assistant is saying "HTTP response code indicates tag failed to fire: Status 404". I suspect this has something to do with htaccess rewrites and my actual settings in GA account -- in any case, I sure don't know how to fix it :-(

Cheers (sort of :-),

Bruce

Marked as Best Answer.
Solution
Accepted by topic author Bruce M
September 2016

Re: An error occured while the tag was fired: net::ERR_CONNECTION_REFUSED

Top Contributor
# 6
Top Contributor

Hi,

 

For me it's fine now in Tag Assistant:

 

bruce.png

 

Let me know if you are receiving data in GA.


Arnold Majlath, Google Analytics Top Contributor
Was my response helpful? If yes, please accept it as solution.
Circle Me On Google+ | Visit me @ Redfly Digital

Re: An error occured while the tag was fired: net::ERR_CONNECTION_REFUSED

Visitor ✭ ✭ ✭
# 7
Visitor ✭ ✭ ✭
Hey. That is so cool. Now that you mention it (this is embarrassing) I think I tied MonsterInsights to a filtered version -- and I got filtered. Thanks so much for checking this out for us.

Cheers,

Bruce


Re: An error occured while the tag was fired: net::ERR_CONNECTION_REFUSED

Visitor ✭ ✭ ✭
# 8
Visitor ✭ ✭ ✭

Hi again.

 

We recently changed primary domain name and moved website to a new hosting service. And new troubles have arisen :-(

 

I re-authenticated our Analytics tracking code for the new domain with Monster Insights. I am seeing their Javascript code in the page source at http://www.techbizvideo.com. I enabled Google Tag Asst in Incognito window. But all I can see is 

 

An error occured while the tag was fired: net::ERR_CONNECTION_REFUSED

Error while sending request: net::ERR_CONNECTION_REFUSED

Ugh.

 

What should I do next?

 

An error occured while the tag was fired: net::ERR_CONNECTION_REFUSED

Top Contributor
# 9
Top Contributor

Hi,

 

I don't see the GA tracking code on the site at all, can you please double check?


Arnold Majlath, Google Analytics Top Contributor
Was my response helpful? If yes, please accept it as solution.
Circle Me On Google+ | Visit me @ Redfly Digital

Re: An error occured while the tag was fired: net::ERR_CONNECTION_REFUSED

Visitor ✭ ✭ ✭
# 10
Visitor ✭ ✭ ✭

Thanks. I changed the plugin from Monster Insights to (also very popular) Google Analytics for WP. This script appears about line 80 of the page:

 

 

<!-- BEGIN GADWP v5.1.2.5 Universal Analytics - https://deconf.com/google-analytics-dashboard-wordpress/ -->
<-- script -- >
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-108092542-1', 'auto');
ga('send', 'pageview');
</script>
<!-- END GADWP Universal Analytics -->

 

 

The tracking code is correct. 

 

Thanks for checking.

 

Cheers,

Bruce