Google Analytics vistors with javascript disabled

3,032 views
Skip to first unread message

Camilo de Barros

unread,
Oct 9, 2015, 3:49:41 AM10/9/15
to google-analytics-measurement-protocol
Hi

Is it possible, and if so how do I do it, to get information in Google Analytics regarding  visitors who DO NOT have javascript enabled?

Thank you

Philip Walton

unread,
Oct 9, 2015, 1:38:50 PM10/9/15
to Camilo de Barros, google-analytics-measurement-protocol
You can do it, you just won't be able to get that much information about them.

The trick is to use a <noscript> tag, and put an image request to the Measurement Protocol inside that tag. Here's an example:

<!-- Google Analytics -->
<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','//www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-XXXXX-Y', 'auto');
ga('send', 'pageview');
</script>
<!-- End Google Analytics -->

<!-- JavaScript disabled fallback -->
<noscript>
</noscript>
<!-- End JavaScript disabled fallback -->

You can look at the hit I've used in the Hit Builder tool. As you can see I've set the &dl and &dt parameters, so you'd have to have the ability to set those programmatically on all of your pages.

I hope that helps.












--
You received this message because you are subscribed to the Google Groups "google-analytics-measurement-protocol" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-analytics-measure...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-analytics-measurement-protocol/a1a20f85-0cb4-42ca-92c9-770642d1f32f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Camilo de Barros

unread,
Oct 9, 2015, 2:27:29 PM10/9/15
to google-analytics-measurement-protocol, burr...@gmail.com
Hi Thanks



I'm not very good with scripts...

I take it, all I have to do is to add this bit below what I already have in the pages, right?
On Fri, Oct 9, 2015 at 12:49 AM, Camilo de Barros <burr...@gmail.com> wrote:
Hi

Is it possible, and if so how do I do it, to get information in Google Analytics regarding  visitors who DO NOT have javascript enabled?

Thank you

--
You received this message because you are subscribed to the Google Groups "google-analytics-measurement-protocol" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-analytics-measurement-protocol+unsubscribe@googlegroups.com.

Philip Walton

unread,
Oct 9, 2015, 2:34:39 PM10/9/15
to Camilo de Barros, google-analytics-measurement-protocol
Yes, but do not just copy and paste that hit. That's just an example, you're going to need to customize the hit you use to your site, and it will need to be different on each page.

On Fri, Oct 9, 2015 at 11:27 AM, Camilo de Barros <burr...@gmail.com> wrote:
Hi Thanks



I'm not very good with scripts...

I take it, all I have to do is to add this bit below what I already have in the pages, right?

On Fri, Oct 9, 2015 at 12:49 AM, Camilo de Barros <burr...@gmail.com> wrote:
Hi

Is it possible, and if so how do I do it, to get information in Google Analytics regarding  visitors who DO NOT have javascript enabled?

Thank you

--
You received this message because you are subscribed to the Google Groups "google-analytics-measurement-protocol" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-analytics-measure...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "google-analytics-measurement-protocol" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-analytics-measure...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-analytics-measurement-protocol/1d8793a8-ff48-4c0a-9545-b8cd77fefd65%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages