Re: How we can add the functionality through tealium under which I can pass the iphone model number?

Gold Contributor
Gold Contributor

Hi @roshan_gonsalko,

 

Thanks for your input.

 

Will you be able to tell me how frequently that library gets updated?

4 REPLIES 4

Re: How we can add the functionality through tealium under which I can pass the iphone model number?

Gold Contributor
Gold Contributor

I want to see the data in google analytics for iphone model number like iphone5 or iphone 6 etc.

 

Currently google analytics doesn't show this data and all i can see is iPhone, iPad but i want more specific model number too.

 

If i have to add some extension in tealium so that this data can be passed to GA in a custom variable then can that be done? if Yes then How?

 

Thanks,

Shailesh Gaikwad

Re: How we can add the functionality through tealium under which I can pass the iphone model number?

Employee Emeritus
Hi Shailesh,

Thank for your question. You'd need to run some custom javascript to do this (we don't have any code which can do this I'm afraid) but searching on the internet you could run this code in a pre-loader scoped extension?

https://github.com/darcyclarke/Detect.js/blob/master/detect.js

then, you could run the following code in an 'all tags' extension:

https://github.com/darcyclarke/Detect.js/tree/master (see 'Example Use').

The two pieces of code you'd end up with would be:

pre-loader
http://codeshare.io/nmhsa

all tags extension
http://codeshare.io/4ihvV

However, bear in mind that the detect.js library may get out of date so you may need to keep on updating the code.

There is a way to call it directly but you would most likely need utag.sync.js implemented on your site. Do you have this at all?

Re: How we can add the functionality through tealium under which I can pass the iphone model number?

Silver Contributor
Silver Contributor

@shailesh_gaikwa
Having a quick google around I did find: www.handsetdetection.com
It's just a JS tag away from what you want. It's a paid solution and looks to be regularly updated (They've already got the 6s models listed).

Re: How we can add the functionality through tealium under which I can pass the iphone model number?

Employee Emeritus
Sorry @shailesh_gaikwa - we don't own this library so I'm not sure. You could get in touch with them?
Public