Community discussions

MikroTik App
 
btanuri
just joined
Topic Author
Posts: 3
Joined: Tue May 27, 2014 8:25 pm

Hotspot and Google Analytics

Tue May 27, 2014 8:37 pm

I have a company which puts hotspots and controls the Internet in hotels.

When the client connects to the network my system opens a login and password to allow access to the internet and I need to track with Google Analytics the login page, which does have limited internet access. I need a way to allow only the google analytics without having to release all google services.

I already try to put *. google-analytics.com and www.google-analytics.com * and * still could not allow access to GA

Thanks!
 
User avatar
scotthammersley
Member Candidate
Member Candidate
Posts: 230
Joined: Fri Feb 22, 2013 7:16 pm
Location: Jackson, MS
Contact:

Re: Hotspot and Google Analytics

Wed May 28, 2014 9:59 pm

Correct me if I am wrong, but the google analytics scriptlet is Java based, I am not sure RouterOS can support. Even if you allowed it through the walled garden I think you would still run into problems.

Someone please correct me if different.
 
tiernano
Frequent Visitor
Frequent Visitor
Posts: 85
Joined: Fri Jul 20, 2012 1:51 pm

Re: Hotspot and Google Analytics

Fri May 30, 2014 4:42 pm

@scotthammersley its javascript based, not java...

btanuri: had a look at the JS File, and it requires https://www.google.com/analytics/web/in ... /inpage.js also.
 
whittle
just joined
Posts: 8
Joined: Tue Nov 01, 2016 8:31 pm

Re: Hotspot and Google Analytics

Mon Dec 19, 2016 3:53 am

I have the same problem.
What is in the wallgarden?
 
estar
Frequent Visitor
Frequent Visitor
Posts: 50
Joined: Wed Dec 07, 2016 9:26 pm

Re: Hotspot and Google Analytics

Mon Dec 19, 2016 1:14 pm

Often these sites use more urls than you think like with paypal. You may need to look at the traffic and check if it's trying to access more urls than you have allowed in walled garden?
 
whittle
just joined
Posts: 8
Joined: Tue Nov 01, 2016 8:31 pm

Re: Hotspot and Google Analytics

Tue Dec 20, 2016 11:37 am

How do I view traffic?
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26968
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia
Contact:

Re: Hotspot and Google Analytics

Tue Dec 20, 2016 11:42 am

For example, this forum also uses a lot of URLs outside the mikrotik.com domain:
screen.jpg
You do not have the required permissions to view the files attached to this post.
 
whittle
just joined
Posts: 8
Joined: Tue Nov 01, 2016 8:31 pm

Re: Hotspot and Google Analytics

Wed Dec 21, 2016 9:37 pm

I've already tried:
/ip hotspot walled-garden

add dst-host=www.google-analytics.com dst-port=80,443 server=HotSpot
add dst-host=gstatic.com dst-port=80,443 server=HotSpot
add dst-host=googleapis.com dst-port=80,443 server=HotSpot

I still can not do it.