Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Target classic- What is the cleanest way to create a mobile phones segment

gpolkin
Level 1
Level 1

I need to create a segment for "mobile phone" traffic (not tablets)

I realize this can be done in Adobe Analytics and shared via the cloud but we have not implemented the Adobe Cloud Visitor ID.  My current solution is to use an expression target using syntax provided by a co-worker with more coding skills than I possess.

Any easier ideas on how to do this in Classic?

Greg

 

 
var userAgent = user.header( 'user-agent' ) || '';
var mobileAgents = [ 'iPhone', 'Windows Phone', 'Android', 'Mobile' ];
 
for( var i = 0; i < mobileAgents.length; i ++ ) {
if( userAgent.indexOf( mobileAgents[ i ] ) > -1 ) {
return true;
}
}
 
return false;
1 Accepted Solution
Nikhil_Bisne
Correct answer by
Level 8
Level 8

HI Greg,

 

Go through this document(and its subsections). It will help answer your question. Do let us know in case any queries.

 

Thanks

Nikhil

View solution in original post

6 Replies
Nikhil_Bisne
Correct answer by
Level 8
Level 8

HI Greg,

 

Go through this document(and its subsections). It will help answer your question. Do let us know in case any queries.

 

Thanks

Nikhil

View solution in original post

xbarcelona
Level 1
Level 1

I have the same question...but the LINK you provided does not work 😞

brianh96587047
Level 2
Level 2

You can easily use the targeting widget as well as seen here:  

CCWC19
Level 1
Level 1

Hello , 

I'm trying to create a segment for "Mobile" and a segment for "Tablet". Following some of the examples given. They both record the same data.  Is this maybe because tablet are still considered mobile or vice versa ? 

Screenshot attached of both implementation of segments 

If I did configure it wrong, what is the best way to get "Tablets only"

[img]Screen Shot 2015-07-22 at 3.58.54 pm.png[/img]

[img]Screen Shot 2015-07-22 at 4.02.33 pm.png[/img]