How to get "UserAgent"?

hosoya919
New Member
6 0 0

Hello there.
I'm creating my shop by Shopify.

But, I don't know how to get "User Agent" in *.liquid file...

For example, I want to get this strings.
============================================================
Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; NP06; rv:11.0) like Gecko
============================================================

 

Will you tell me how to get "User Agent" ?

Or, can't I get "User Agent"...?

 

0 Likes
Jason
Shopify Expert
10402 163 2045

That info is not avaialble in Liquid. You'd need to do browser sniffing with JS instead.

I jump on these forums to help and share some insights. Not looking to be hired, and not looking for work.

Don't hand out staff invites or give admin password to forum members unless absolutely needed. In most cases the help you need can be handled without that.


★ http://freakdesign.com.au ★
hosoya919
New Member
6 0 0

Dear, Jason.

Oh..
I see. I look for other way.

Thank you!

 

0 Likes