I cannot used google analytics for captive portal
-
I had add url google-analytics.com to Allowed Hostnames. some time i cannot telnet google-analytics.com port 443,but some time i can.
I think captive portal block it.
connect to google-analytics.com by https. -
I would be highly-surprised if simply adding google-analytics.com to a captive portal pass list would actually be enough to be able to use google analytics in your portal page. My guess is it would load from far more addresses than that.
I would packet capture a client and see what it's really trying to do. Or ask google what needs to be passed.
-
Thank you!
They are image I capture
https://imgur.com/a/zCtFv84
https://imgur.com/a/OAIo4ip
Pls help me! -
Not sure I can. Sorry. You might be trying to do the impossible from behind a captive portal. You'll have to wait to see if someone else chimes in.
-
This may not be what you are talking about. Here is how I use the captive portal to get a count of how many users connect to our library wireless. Setup a redirect in CP. Use the file manager in CP to save an HTML page with the GA code embedded near the top of the page. Just put whatever you want on the page itself. Every time a user accepts the Captive Portal terms ( or authenticates if that is what you are doing) it redirects to the page with the GA code and counts the login.
-
That sounds like it is post-auth so there is no need to pass the traffic to google analytics. The portal is already bypassed in that case.
-
@derelict said in I cannot used google analytics for captive portal:
That sounds like it is post-auth so there is no need to pass the traffic to google analytics. The portal is already bypassed in that case.
I dont think so. I had added domain www.google-analytics.com to Allowed Hostnames. This is domain Google's endpoint for track GA. But sometime client in private network cannot connect to https://www.google-analytics.com.
The same thing happens with the case domain ww.google.com.
I think google used many ip for www.google-analytics.com and Allowed Hostnames can not update mapping ip with domain.