Google Analytics GIF request not sent

前端 未结 2 1951
南方客
南方客 2020-12-01 14:27

I\'m having some troubles setting up Google Analytics. I downloaded the Google Analytics Debugging extension for Chrome and if I take a look at the console, the __utm.gif re

相关标签:
2条回答
  • 2020-12-01 14:48

    Are you testing your site on localhost or an intranet? If so, you may need to add

    _gaq.push(['_setDomainName', 'none']);
    

    before _trackPageview

    See Google Analytics on Intranets and Development Servers for more info...

    If you’re using Google Analytics on a site with a URL like http://intranet/ or something like http://mydevserver:12345 it won’t work.

    Specifically, the Google Analytics JS code will not send the tracking hit (__utm.gif) to the GA servers.

    I don’t really know the specifics, but I’m guessing that the domain hashing code looks for at least one period in the hostname and won’t work if it doesn’t find one.

    0 讨论(0)
  • 2020-12-01 14:59

    If you are not receiving the Tracking beacon sent! message then it could be one of the following:

    • A problem with Cookie settings in your browser (however unlikely in your case)
    • An issue with your proxy/firewall (can you check fiddler or your Network tab and see if any of your resources were 404'd?)
    • A javascript error (anything else at all in your console?)

    Hope this helps you debug your situation. I'll update this answer if you provide any more information.

    UPDATE

    It may help to make sure that the issue is with the Chrome Analytics debugger plugin versus your analytics setup. To do this, open something like Fiddler or in Chrome under Resources - Frames - (page) - Images. You should see the request for __utm.gif there. If you do not, its an issue with your Analytics setup. If you do, its just an issue with the Chrome Analytics debugger.

    To answer your question though, I've only seen something similar happen one other time and that was on a site with Google Ads. I received an Unsafe Javascript attempt to access frame with URL... error.

    0 讨论(0)
提交回复
热议问题