- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Experiment: adding a banner via meta tags
Experiment: adding a banner via meta tags
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
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
Re: Experiment: adding a banner via meta tags
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Thanks for reaching out to the community!
Try using:
$('head').append('<meta name=\"apple-itunes-app\" content=\"app-id=111111111\">');
Best,
Mario
EMEA | Amsterdam
Re: Experiment: adding a banner via meta tags
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
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
Re: Experiment: adding a banner via meta tags
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Unfortunately, I'm not familiar with apple banners.
Best,
Mario
EMEA | Amsterdam