Rich-text Reply

Experiment: adding a banner via meta tags

ekane 07-06-16

Experiment: adding a banner via meta tags

Hi guys,

 

We'd like to test 2 versions for mobile pages:
1) original page
2) page with a banner that invites users to download a mobile app
A banner is added via meta tags. e.g.
<meta name="apple-itunes-app" content="app-id=111111111>

 

Using jquery like this in Variation code is not working and causes errors:
$('head').append(<meta name="apple-itunes-app" content="app-id=111111111"/>);

 

Could you suggest a code that would work for this purpose?
Thank you in advance

Level 1

Mario 07-07-16
 

Re: Experiment: adding a banner via meta tags

Hi there,

Thanks for reaching out to the community!

Try using:
$('head').append('<meta name=\"apple-itunes-app\" content=\"app-id=111111111\">');

Best,
Mario
Technical Support Engineer
EMEA | Amsterdam
Optimizely
ekane 07-11-16
 

Re: Experiment: adding a banner via meta tags

Hi Mario,

 

Thanks for reply! 

 

Do you know by any chance if it's possible to add banners this way with Optimizely? Stumpled upon this discussion, it says native apple banners can't be added if it's done asynchronically:

http://stackoverflow.com/questions/31289530/load-ios-smart-app-banner-through-javascript

http://openradar.appspot.com/21871593

 

Thanks in advance

Level 1
Mario 07-12-16
 

Re: Experiment: adding a banner via meta tags

Hi there,

Unfortunately, I'm not familiar with apple banners.

Best,
Mario
Technical Support Engineer
EMEA | Amsterdam
Optimizely