Analytics
5K members online now
5K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
 
Guide Me
star_border
Reply

how to retain mobile session on javascript on webview

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

I have critical problem.. please help me.  

My app ( both android and ios ) has webView to browse some my webpage. 

On webView, User can move other my webpages which have javascript ga tracker has same tracking ID with mobile.

The problem is javascript ga tracker generate new session on webpage. 

Can I get mobile sessionID and send it to my webpage ( or webview ) ?

Or How can I retain mobile session on webpage in my webview?

Thanks for your reading. Help me. 

 

1 Expert replyverified_user

how to retain mobile session on javascript on webview

Top Contributor
# 2
Top Contributor

Webviews will generate new user id unless you tell the app opening the webview to include a client and user ID derived from the one in the app.

Check the Related Resources section here:

https://support.google.com/analytics/answer/3123662?hl=en#RelatedResources

 

VP & Chief Evangelist at Hub'Scan | Contact me
Level 80 Digital Analytics Warrior, KPI Therapist and Keeper of the One True Tagging Plan