Add Deep Links to Messages

You can add deep links to messages after you have set up your account with Branch.io and enabled deep linking in Bronto's settings, including adding the deep linking tracking domain.

Email Message Editor

In the Email Message Editor, you can add a deep link when you add a Text element, an Image element, or a Button element.

To add a deep link to these elements, check the Create Deep Link for Mobile Apps box when you create a link. You can make deep links for static and dynamic content.

HTML

You can add deep links with HTML by adding deeplink="true" to the link in your message.

For example: <a href= "links.example.com" deeplink="true">Link Text</a>

API

To use the deep linking feature through the API, use the addMessages SOAP call. For links in a message to be deep links, you need to modify the messages you send to include the deep linking indicator. In any anchor tag, you need to add the attribute deeplink=”true” in the message html content.

For example:
<?php
/**
* This script will add an HTML message with some basic HTML content.
*
* @copyright  Copyright (c) 2011 Bronto Software (http://www.bronto.com)
***/
$client = new SoapClient('https://api.bronto.com/v4?wsdl', array('trace' => 1,
    'features' => SOAP_SINGLE_ELEMENT_ARRAYS));

try {
    // Add in a valid API token
    __    $token = "ADD API TOKEN HERE";

    print "logging in\n";
    $sessionId = $client->login(array('apiToken' => $token))->return;

    $session_header = new SoapHeader("http://api.bronto.com/v4",
        'sessionHeader',
        array('sessionId' => $sessionId));
    $client->__setSoapHeaders(array($session_header));

    // Be sure to replace the example subject and content
    __    $MessageContentObject = array('type' => 'html',
        'subject' => 'Example Subject Line',
        'content' => '<h1>Title of Page</h1> A link to our <a href="mysite.com/about" deeplink="true">About us</a> page. <p>Example description.</p>'
    **    );
    // Give the message a valid name
    __    $message = array('name' => 'Example Message Name',
        'content' => $MessageContentObject
    );

    print "Adding the message\n";
    $write_result = $client->addMessages(array($message)
    )->return;

    if ($write_result->errors) {
        print "There was a problem adding the message:\n";
        print_r($write_result->results);
    } else {
        print "The message has been created.  Id: " . $write_result->results[0]->id . "\n";
    }

} catch (Exception $e) {
    print "uncaught exception\n";
    print_r($e);
}
?>