Meta property al android url content

Meta property al android url content

На данный момент для атрибуции установок мобильных приложений существуют два подхода:

    Получение идентификатора устройства от рекламной сети (например idfa для ios) на котором пользователь кликнул на объявление

  • Fingerprinting, т.е. связывание клика по рекламному объявлению и факта установки на основе параметров устройства
  • В существующих системах мобильной атрибуции используются либо оба из этих подходов, либо только связывание по идентификатору, но с появлением ios 14, для устройств apple возможность атрибутирования по idfa пропадет, и так или иначе, задача атрибуции установок будет решаться через fingerprint.

    В этой статье, я рассмотрю возможность атрибуции и решению других задач на базе dynamic links от firebase. Так как firebase или app+web, позволяет также решить любые задачи по мобильной/веб аналитике и автоматизации маркетинга, dynamic links позволяет построить полноценную систему аналитики, без использования других сервисов.

    В этой части, все довольно просто, google составил прекрасную документацию, от себя, хочу добавить, что реализации есть и для Cordova, на которой в последнее время все больше приложений.

    Базово, dynamic links позволяют просто открыть ваше приложение по ссылке с сохранением параметров utm_source, utm_medium и utm_campaign, но также, есть возможность, используя Universal links для ios или App links для android, открывать конкретный экран приложения. Особенно полезно, это будет для ремаркетинговых кампаний, включая пуш уведомления.

    В консоли firebase добавляем домен, на котором будут отображаться наши ссылки:

    Существует четыре способа создать ссылку:

    — из firebase console. Этот способ подойдет, для создания тестовых или статичных ссылок. Из плюсов этого метода, при использовании этих ссылок у вас будет статистика по использованию прямо в консоли.

    — собрать ссылку в ручную. В реальной работе это самый удобный способ, который позволяет быстро собрать нужную ссылку по шаблону и автоматизировать их создание:

    А также, используя rest api, вы можете сделать из этой длинной ссылки короткую.

    — создать ссылку в приложении. Этот способ классно подойдёт для создания реферальной программы, где в utm_campaign, можно передать user_pseudo_id или user_id пользователя, который создает такую ссылку

    Отладка ссылок

    Если вы добавите к вашей ссылке параметр ?d=1 или &d=1, то увидите весь сценарий ее открытия, а также, возможные ошибки, если они есть.

    Чтобы упросить создание ссылок через REST API, я написал небольшое расширение на google scripts, которое генерирует их автоматически.

    Для установки, создайте новый google sheets, зайдите в раздел Tools -> Script Editor и вставьте код из этого репозитория: https://github.com/snegireff/firebase_dynamic_links_generator

    В коде, необходимо поменять:

    sheet.getRange(‘A2’).setValue — просто тестовый url (указать ваш домен вебсайта)
    Firebase_url — ваш домен для коротких ссылок
    Apn — The package name of the Android app
    Afl — The link to open when the app isn’t installed (обычно урл на store android)
    Ibi — The bundle ID of the iOS app to use to open the link.
    Ifl — The link to open when the app isn’t installed. (обычно урл на store ios)
    Api_key — можно взять в fibase console в разделе settings

    После чего, вызывать функцию onOpen:

    Источник

    Возможен ли технически deeplinking сегодня, с поддержкой Safari и Default Android Browser?

    Клиент попросил разместить на сайте 3 иконки: вконтакте, facebook, twitter. Каждая иконка ведет на его страничку в социалках. Также он попросил открывать соответствующее приложение, если оно установлено у пользователя.

    Я использовал этот сервис для генерации deeplinks, deep-link.js для обработки ссылок на странице (работает на основе задержки — если не открылся native app, открывает fallback url). У меня получилось вот что ($id — это username / id):

      twitter twitter://user?screen_name=$id
      IOS Safari (app installed): открывается приложение
      IOS Safari (app not installed): ругается, что адрес недействителен, открывается fallback url
      IOS Chrome (app installed): открывается приложение
      IOS Chrome (app not installed): открывается fallback url
      Android Default (app installed): открывается приложение
      Android Default (app not installed): страница twitter://. недоступна
    Читайте также:  Tails nightmare 2 android

    facebook ios: fb://profile/$id, android: fb://page/$id
    IOS Safari (app installed): открывается приложение
    IOS Safari (app not installed): ругается, что адрес недействителен, открывается fallback url
    IOS Chrome (app installed): открывается приложение
    IOS Chrome (app not installed): открывается fallback url
    Android Default (app installed): открывается приложение
    Android Default (app not installed): страница fb:// недоступна
    Android Chrome (app installed): открывается приложение
    Android Chrome (app not installed): открывается fallback url

    vk ios: vk://vk.com/$id, android: https://vk.com/$id
    IOS Safari (app installed): открывается приложение
    IOS Safari (app not installed): ругается, что адрес недействителен, открывается fallback url
    IOS Chrome (app installed): открывается приложение
    IOS Chrome (app not installed): открывается fallback url
    Android Default/Chrome (app installed): предлагается выбор, как открыть ссылку: приложение или браузер
    Android Default/Chrome (app not installed): открывается fallback url

    Как можно обойти поведение стандартного браузера Android и Safari, чтобы он не плевался ошибками?

    P.S. Также пробовал указывать App Links, не помогло:

    Пробовал использовать iframe для iOS, чтобы убрать назойливые сообщения Safari о неподдерживаемых протоколах неустановленных приложений.. но не помогло.

    Насколько я понял, intent-filter может быть использован только в нативных приложениях, а не в веб-страницах, поэтому он тут тоже не подходит.

    В итоге, если учесть что на ios почти все пользователи используют Safari (ибо для всех конкурентов яблоки отключают аппаратное ускорение), а на android — дефолтное непонятно что (в нечастых случаях хром), то этот deep linking ни у кого работать не будет.

    Может быть кто-нибудь сможет показать какой-либо сайт, где deep linking действительно нормально работает? Ну посмотреть хоть что к чему.

    Источник

    machito / social-meta-tags.html

    This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters

    meta property =» og:site_name » content =» YouTube » >
    meta property =» og:url » content =» https://www.youtube.com/watch?v=Gb9E60E3duU » >
    meta property =» og:title » content =» #6: IBM Head of Design, Phil Gilbert, wields $100M and 1,300 designers to bring design back to IBM » >
    meta property =» og:image » content =» https://i.ytimg.com/vi/Gb9E60E3duU/hqdefault.jpg » >
    meta property =» og:description » content =» Phil Gilbert is the GM and Head of Design at IBM. In this episode, he discusses creating IBM’s proprietary design thinking methodology, their own design scho. » >
    meta property =» al:ios:app_store_id » content =» 544007664 » >
    meta property =» al:ios:app_name » content =» YouTube » >
    meta property =» al:ios:url » content =» vnd.youtube://www.youtube.com/watch?v=Gb9E60E3duU&feature=applinks » >
    meta property =» al:android:url » content =» vnd.youtube://www.youtube.com/watch?v=Gb9E60E3duU&feature=applinks » >
    meta property =» al:android:app_name » content =» YouTube » >
    meta property =» al:android:package » content =» com.google.android.youtube » >
    meta property =» al:web:url » content =» https://www.youtube.com/watch?v=Gb9E60E3duU&feature=applinks » >
    meta property =» og:type » content =» video » >
    meta property =» og:video:url » content =» https://www.youtube.com/embed/Gb9E60E3duU » >
    meta property =» og:video:secure_url » content =» https://www.youtube.com/embed/Gb9E60E3duU » >
    meta property =» og:video:type » content =» text/html » >
    meta property =» og:video:width » content =» 1280 » >
    meta property =» og:video:height » content =» 720 » >
    meta property =» og:video:url » content =» http://www.youtube.com/v/Gb9E60E3duU?version=3&autohide=1 » >
    meta property =» og:video:secure_url » content =» https://www.youtube.com/v/Gb9E60E3duU?version=3&autohide=1 » >
    meta property =» og:video:type » content =» application/x-shockwave-flash » >
    meta property =» og:video:width » content =» 1280 » >
    meta property =» og:video:height » content =» 720 » >
    meta property =» og:video:tag » content =» phil gilbert » >
    meta property =» og:video:tag » content =» ibm » >
    meta property =» og:video:tag » content =» design » >
    meta property =» og:video:tag » content =» design thinking » >
    meta property =» og:video:tag » content =» process » >
    meta property =» og:video:tag » content =» strategy » >
    meta property =» og:video:tag » content =» leadership » >
    meta property =» og:video:tag » content =» ui » >
    meta property =» og:video:tag » content =» ux » >
    meta property =» og:video:tag » content =» business » >
    meta property =» og:video:tag » content =» high resolution » >
    meta property =» og:video:tag » content =» podcast » >
    meta property =» og:video:tag » content =» education » >
    meta property =» og:video:tag » content =» startup » >
    meta property =» og:video:tag » content =» startups » >
    meta property =» og:video:tag » content =» ai » >
    meta property =» og:video:tag » content =» watson » >
    meta property =» og:video:tag » content =» vr » >
    meta property =» og:video:tag » content =» ar » >
    meta property =» og:video:tag » content =» jared erondu » >
    meta property =» og:video:tag » content =» bobby ghoshal » >
    meta property =» fb:app_id » content =» 87741124305 » >
    meta name =» twitter:card » content =» player » >
    meta name =» twitter:site » content =» @youtube » >
    meta name =» twitter:url » content =» https://www.youtube.com/watch?v=Gb9E60E3duU » >
    meta name =» twitter:title » content =» #6: IBM Head of Design, Phil Gilbert, wields $100M and 1,300 designers to bring design back to IBM » >
    meta name =» twitter:description » content =» Phil Gilbert is the GM and Head of Design at IBM. In this episode, he discusses creating IBM’s proprietary design thinking methodology, their own design scho. » >
    meta name =» twitter:image » content =» https://i.ytimg.com/vi/Gb9E60E3duU/hqdefault.jpg » >
    meta name =» twitter:app:name:iphone » content =» YouTube » >
    meta name =» twitter:app:id:iphone » content =» 544007664 » >
    meta name =» twitter:app:name:ipad » content =» YouTube » >
    meta name =» twitter:app:id:ipad » content =» 544007664 » >
    meta name =» twitter:app:url:iphone » content =» vnd.youtube://www.youtube.com/watch?v=Gb9E60E3duU&feature=applinks » >
    meta name =» twitter:app:url:ipad » content =» vnd.youtube://www.youtube.com/watch?v=Gb9E60E3duU&feature=applinks » >
    meta name =» twitter:app:name:googleplay » content =» YouTube » >
    meta name =» twitter:app:id:googleplay » content =» com.google.android.youtube » >
    meta name =» twitter:app:url:googleplay » content =» https://www.youtube.com/watch?v=Gb9E60E3duU » >
    meta name =» twitter:player » content =» https://www.youtube.com/embed/Gb9E60E3duU » >
    meta name =» twitter:player:width » content =» 1280 » >
    meta name =» twitter:player:height » content =» 720 » >
    Читайте также:  Менеджер формулы 1 для андроид

    You can’t perform that action at this time.

    You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.

    Источник

    Content Metadata Reference

    Publishing App Link metadata is as simple as adding a few lines to the tag in the HTML for your content. Apps that link to your content can then use this metadata to deep-link into your app, take users to an app store to download the app, or take them directly to the web to view the content. This allows developers to provide the best possible experience for their users when linking to their content.

    App Links are specified using the tags defined in the registry below. Each target platform requires a different set of metadata in order to provide enough context for one app to deep-link into another.

    A simple web page that provides App Link metadata might look like this, in a file called documentation.html :

    Platform Metadata Schema

    The following tags can be used to define App Link metadata for your site. Each device type can be specified multiple times to accommodate multiple values, allowing you to provide a fallback list of apps to search for when navigating (e.g. if both a free and paid version of an app is available, or if multiple versions of the app exist that handle different deep-links).

    Your app may also define a single fallback URL to be loaded in a web browser if your app is not installed. If your app has no equivalent web content, you may specify al:web:should_fallback as false to indicate that other apps should not attempt to fall back to displaying your content in a web browser.

    Читайте также:  Андроид разработка с чего начать 2021

    Device Type: iOS

    Property Example Content Description Required (Y/N) al:ios:url applinks://docs A custom scheme for the iOS app. The scheme part of the URI may not contain underscores. (In this example, applinks: would be valid, app_links: would not.) Y al:ios:app_store_id 12345 The app ID for the App Store N al:ios:app_name App Links The name of the app (suitable for display) N

    Device Type: iPhone

    Property Example Content Description Required (Y/N) al:iphone:url applinks://docs A custom scheme for the iPhone app Y al:iphone:app_store_id 12345 The app ID for the App Store N al:iphone:app_name App Links The name of the app (suitable for display) N

    Device Type: iPad

    Property Example Content Description Required (Y/N) al:ipad:url applinks://docs A custom scheme for the iPad app Y al:ipad:app_store_id 12345 The app ID for the App Store N al:ipad:app_name App Links The name of the app (suitable for display) N

    Device Type: Android

    Property Example Content Description Required (Y/N) al:android:url applinks://docs A custom scheme for the Android app N al:android:package org.applinks A fully-qualified package name for intent generation Y al:android:class org.applinks.DocsActivity A fully-qualified Activity class name for intent generation N al:android:app_name App Links The name of the app (suitable for display) N

    Device Type: Windows Phone

    Property Example Content Description Required (Y/N) al:windows_phone:url applinks://docs A custom scheme for the Windows Phone app Y al:windows_phone:app_id a14e93aa-27c7-df11-a844-00237de2db9f The app ID (a GUID) for app store N al:windows_phone:app_name App Links The name of the app (suitable for display) N

    Device Type: Windows

    Property Example Content Description Required (Y/N) al:windows:url applinks://docs A custom scheme for the Windows app Y al:windows:app_id a14e93aa-27c7-df11-a844-00237de2db9f The app ID (a GUID) for app store N al:windows:app_name App Links The name of the app (suitable for display) N

    Device Type: Universal Windows

    Property Example Content Description Required (Y/N) al:windows_universal:url applinks://docs A custom scheme for the Windows Universal app Y al:windows_universal:app_id a14e93aa-27c7-df11-a844-00237de2db9f The app ID (a GUID) for app store N al:windows_universal:app_name App Links The name of the app (suitable for display) N

    Web Fallback

    Property Example Content Description Required (Y/N) al:web:url http://applinks.org/documentation The web URL; defaults to the URL for the content that contains this tag N al:web:should_fallback false Indicates if the web URL should be used as a fallback; defaults to true N

    When crawling URLs for App Link metadata, developers should send a request with al as one of the prefix values for the Prefer-Html-Meta-Tags header. Your server may choose to limit its response to only include HTML containing the tags above, and can use this as a signal to return these tags even when the response type for the given location would otherwise be something other than text/html .:

    Examples

    A few examples of common cases when specifying App Link metadata follows.

    An app that is only available on iOS and on the web:

    An app that has multiple versions on iOS, where apps following a link should attempt to use the latest version available on the device:

    An app with an iPad and iPhone version:

    An app that has no web content, but has apps on iOS and Android:

    A shared link for an app whose web content may be found at another URL:

    Источник

    Оцените статью