FROM CACHE - en_header

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"...?

 

Replies 2 (2)
Jason
Shopify Expert
10915 192 2190

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

★ I jump on these forums in my free time to help and share some insights. Not looking to be hired, and not looking for work. http://freakdesign.com.au ★
hosoya919
New Member
6 0 0

Dear, Jason.

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

Thank you!