Google PageSpeed Insights show unidentified scripts in results - pagespeed

I am testing my home page (http://stayuncle.com/home) speed at Google PageSpeed Insights. In result, I am getting few unidentified java script. I have no idea how they get into the results.
Can someone help me to understand how they get into result?

If you open up a network tab and view the results when the page loads you will see that those scripts load with the page. This script isn't coming from Google PageSpeed, but rather from your own site. It seems to be coming from a metrics script and is pushing mixpanel results.
This is the URL inside the script.
http://popcornmetrics.com/legal
Unfortunately, I am not able to see what initiated the script. You might want to go through each of your JavaScript files and check if it isn't loaded from there!

What you're seeing is PopcornMetrics script and library installed in your website (http://stayuncle.com/home). Our new library has a minified and gzipped version which will show better results in Google PageSpeed.

Related

Google Pagespeed Insights (Lighthouse) is telling that I'm not using jquery

On the report of Google Pagespeed Insights on my website I get this suggestion:
When I use the Coverage tab on Chrome Dev tools, just 30% of the jquery.min.js file is not used
Therefore I have the following questions:
If the file is used, why am I getting this suggestion? A bug?
Am I supposed to split the jquery file in two, and load initially just the used part? I've never seen that.

sitemap_7.php file found via Google Fetch, can't find/access in browser/FTP/SSH

I'm pulling my hair out right now and I can't seem to narrow down this hack.
Google Fetch & Render inside Webmaster Tools is finding a /sitemap_7.php file on our server that just isn't there -- in either the files via the browser/ftp/ssh.
http://www.designbeeadvertising.com/sitemap_7.php
I've scanned the site in every way I can. I just can't find the file.
Can anyone help?

Google Analytics Receiving Data -- but no analytics in view source

My client created a website and a google analytics account. The report indicates that the account is receiving data -- and yet, when we do a view-source of the pages of the site, there is definitely absolutely no analytics code there. How is this posssible?
It is possible that the Analytics code is added via Javascript, not appearing in the "View Source" page. It is also possible for it not to appear in the inspector either.
I do not know how this happens, but I have encountered scripts that exist and run although they are not displayed in either the source page or the live DOM inspector (in Google Chrome). This happened to me while loading a PHP template containing Javascript through an Ajax request.
If you have access to the source code of your website, search the entire project for for the Analytics ID (Here's how to find it: https://support.google.com/analytics/answer/1032385?hl=en), and you'll locate your tracking code.
If your project is running on a Linux server, here's a post about how to quickly find a keyword (like the Analytics ID) in a folder: How do I find all files containing specific text on Linux?

Tracking File Downloads with Google Analytics

I have an html file that gets loaded when a user connects a flash drive to their PC. That HTML contains a direct link to a PDF on our server. (They don't want to put the PDF on the drive for some reason) Anyway, I'm trying to figure out how to track how many times this PDF is accessed from one of these drives.
Since the user is being taken directly to the file and not a landing page, is there a way I can attach analytics to the link that directs the user to the file? I was thinking a Virtual Page View would work but I don't understand exactly how GA would be getting that data.
Can anyone help demystify this?
GA needs to run javascript. PDFs will not invoke a call to GA when hit directly from search results, emails, or flash drives.
You might be able to track it by creating a rewrite rule on your server to a page that runs the GA code then loads the PDF on that page.
I had a similar feature on my site and it worked well except that while tracking the PDFs, the page that loaded the PDF was inflating my pageviews numbers. I didn't want PDF's to be mixed in with pageviews because it confused the client who had been used to separating the two. I created a filter for the PDF 'calling' page and the pageview number settled back down.
I ended up removing this method and falling back to the server logs for PDF downloads and GA for everything else.
GA is a javascript tracker. Plain and simple.
The issue is not the JavaScript, since you can include that locally, but the fact that GA won't work on HTML loaded from a filesystem.
The landing page can be built so that it automatically triggers the download and GA while that happens. Pageviews won't be an issue, since downloads should be tracked as events anyway.
You can attach a javascript function to the link and have it track the page view with Google Analytics
Check this out for more.
It's an easy way to track any file download on a website.

Can I use google analytics on vkontakte?

I want to use Google Analytics on my Vkontakte application (written with Flex). Vkontakte does not support naturally in Google Analytics (not as Facebook) which means I can't even put the Google Analytics JS at the bottom of the page (or even use JS for that matter). What I can use is the AS3 library of Google Analytics, but for some reason it reports of failed gif requests every time I use it to report on an event.
Is it even possible to use Google Analytics on the described environment?
If so, what could be the reason of the failed gif requests? Is it debugable?
Update #1:
After debugging the "Google Analytics for flex" source code, I got this error: Error #2035: URL Not Found.
Update #2:
It turns out to be a known bug as suggested here. It works perfectly on IE.
Update #3:
It works on FF when I disable the "ABP Tracking Filter (by rick752)" filter at the "AdBlock Plus" extension.
It's possible, the problems I've experienced were due to FF problem as stated in the question.
One potentially relevant way to debug this: install a network monitor like Fiddler, and look at the requests going over the wire. Do you see the right GIF get downloaded? If so, you're good. If not, you'll see what's going on on the network.
Here's some info from Google on debugging the gif requests. What do you mean when you say it failed?

Resources